Gorkem,
It looks like right now, the CHE_HOST variable is being set to the docker container IP based on the following output:
...
nightly: Pulling from eclipse/che-mount
Digest: sha256:5ec29a9e8aebedbdbda058931001e205e044a0ad20fa2efe4b440fa3ed0e8174
Status: Downloaded newer image for eclipse/che-mount:nightly
INFO: (che init): Installing configuration and bootstrap variables:
INFO: (che init): CHE_HOST=192.168.65.3
INFO: (che init): CHE_VERSION=nightly
INFO: (che init): CHE_CONFIG=/Users/mminella/Documents/che_data
INFO: (che init): CHE_INSTANCE=/Users/mminella/Documents/che_data/instance
INFO: (che init): CHE_REPO=/Users/mminella/Documents/IntelliJWorkspace/che
INFO: (che init): CHE_ASSEMBLY=/Users/mminella/Documents/che_data/instance/dev/che-tomcat
...
Obviously that won't work remotely so should I set it to be the IP of the host machine? To be specific, here's what I'm currently trying:
From the root of my project on my laptop (IP address 192.168.1.123), run:
mvn install -pl :che-ide-full,:che-ide-gwt-app -Pfast \
&& mvn -f assembly clean install -Pfast \
&& docker run --privileged --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /Users/mminella/Documents/che_data:/data -v $PWD:/repo eclipse/che:nightly restart --fast
Once it's running, from device 2 (an iPad in my case), point a browser to http://192.168.1.123:8080. The dashboard comes up fine, and the workspace creation/etc seems to work. However, once I get into the IDE, I can see that there are requests that are still pointing to localhost (by viewing developer tools).
So based on your feedback, should I set the CHE_HOST env var to 192.168.123 or something else?
Thanks,
Michael