redhat-developer-tooling / openshift-vagrant

All-in-One OpenShift Enterprise Vagrant setup
37 stars 33 forks source link

Add vagrant landrush and hostmanager #41

Open cmoulliard opened 8 years ago

cmoulliard commented 8 years ago

The existing Vagrant VM Box doesn't contain a DNS server, so it is difficult to access from the local machine (MacOSX, Linux) a service exposed by a pod

Example of a REST HTTP Service exposed by a Camel Route : http://qs-camel-rest-sql.openshift.dev/ which is mapped to this address : 172.30.168.234 and port number 8181

We can't access within a browser of the local machine (MacOSX, Linux) to the service address as the traffic is not routed to this address and also because no DNS server is available.

I propose to use vagrant hostmanager & landrush (http://fabric8.io/guide/getStartedVagrant.html) to resolve this problem as done by the Fabric8 project -->

https://github.com/fabric8io/fabric8-installer/blob/master/vagrant/openshift/Vagrantfile#L282-L296

pmuir commented 8 years ago

See also https://github.com/projectatomic/adb-atomic-developer-bundle/issues/126

hferentschik commented 8 years ago

I propose to use vagrant hostmanager & landrush

We are working on getting Landrush to work (since it won't as it stands on Windows). For now we are using routes utilizing the xip.io to overcome DNS issues.

maxandersen commented 8 years ago

@cmoulliard afaik it is not solved on fabric8 either for Windows nor Mac besides the static services.

Thats why we are for now using xip.io that works on all three platforms but working on making landrush work on all three to (especially windows) so it will even work when not disconnected.

jstrachan commented 8 years ago

@maxandersen landrush works great for static and dynamic services on a Mac; but yeah it doesn't work on Windows - for windows its static services only using hostmanager

maxandersen commented 8 years ago

@jstrachan landrush failed earlier for dynamic services - but that been fixed. Anyways, we need solution for windows to push any of it hence why we use xip.io for now that works anywhere (but require net access) and @hferentschik is working on contributing ( of if necessary ) fork landrush to work on Windows.

hferentschik commented 8 years ago

Relates to issue #59