Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: port range to open in amazon instance #1457

Closed
agnesagnes opened this issue Jun 7, 2016 · 3 comments
Closed

Question: port range to open in amazon instance #1457

agnesagnes opened this issue Jun 7, 2016 · 3 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@agnesagnes
Copy link

Hello, I have a short question:
on your website you say that we need to open ports 32768-65535.
Nethertheless I've encountered some discussions on the net that say that we only need ports 32768-32788. What is the good answer (the idea would be to expose the less ports possible)

And another question: is it possible to only open port 8080? I know it is possible locally by doing this:

Create a copy of /conf/che.properties file and modify:

machine.docker.che_api.endpoint=http://172.17.0.1:8080/ide/api

Launch Che with modified Docker command

docker run -ti
-p 8080:8080
-v /var/run/docker.sock:/var/run/docker.sock
-v /home/user/che/lib:/home/user/che/lib-copy
-v /home/user/che/workspaces:/home/user/che/workspaces
-v /home/user/che/tomcat/temp/local-storage:/home/user/che/tomcat/temp/local-storage
-v $(pwd)/che.properties:/home/user/.che/che.properties
-e CHE_DOCKER_MACHINE_HOST=172.17.0.1
codenvy/che

But this is not applicable when che must be reached by remote clients, right?

@TylerJewell
Copy link

The browser needs to get to the port of the Che server and the Docker ephemeral port range. However, the Che server and the Docker containers have additional ports that need to be opened for their communication back and forth between each other.

https://eclipse-che.readme.io/docs/networking

On the full range of Docker ports - you can open a shorter range. Docker does start from the beginning of the range. So as you open up additional servers and expose them from within the workspaces, the number of ports required increases.

@ghost
Copy link

ghost commented Jun 8, 2016

@agnesagnes this is the ephemeral port range. For a few workspace that you simultaneously run in Che, you'd need, say 30-40 ports. However, it's Docker that picks them and I cannot guarantee that it'll pick the ones from the range you have opened, but can guarantee it's the ones from the ephemeral port range.

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label Jun 8, 2016
@agnesagnes
Copy link
Author

Thank you for the answer! So for the moment I take for granted the fact that docker picks them in order. Now I have a lot of other question but I will ask them in another issue (quite related to #1475).
Thank you so much answering my dumb questions by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants