-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How can I provide custom che properties outside the docker? #109
Comments
Hello, Yes, this file is used by default, but in the image, we have exported CHE_LOCAL_CONF_DIR=/home/user/.che and placed properties file into that directory. So, you need to mount /home/user/.che/che.properties |
@eivantsov Thanks! |
Hi, I'm trying to change DOCKER_HOST_IP= 172.17.0.1. It is always getting this value. Is there any to change? I already tried:
docker run --rm -t -e CHE_HOST_IP="IP1" -v /var/run/docker.sock:/var/run/docker.sock eclipse/che start For both attempts above 1 and 2 don't work, number 3 work, but change only: INFO: ECLIPSE CHE: Use: http://IP1:8080 If I call "che info" I can still see old entries point to 172.17.0.1. Any clue? |
Why are you trying to change DOCKER_HOST_IP? |
I'm trying to follow https://eclipse-che.readme.io/docs/networking#native-process-for-che-native-docker-for-workspace. Make "docker-ip" and "workspace-ip" have external access and not 172.17.0.1. |
Are we looking at the same docs - I think you maybe have some old links. Are you studying this page? https://eclipse-che.readme.io/docs/networking It's not clear why you should set docker-ip to be external, that is an internal system that only Che uses. the only thing you should have to configure is CHE_HOST_IP to make workspaces externally accessible. |
From the same link, I have highlight in bold. It is saying both ip must be reachable by the browser. "The browser client initiates communication with the Che server by connecting to che-ip. This IP address must be accessible by your browser clients. Internally, Che runs on Tomcat which is bound to port 8080. This port can be altered with Configuration. When a user creates a workspace, the Che server connects to the Docker daemon at docker-ip and uses the daemon to launch a new set of containers that will power the workspace. These workspace containers will have a Docker-configured IP address, workspace-ip. The workspace-ip must also be reachable by your browser host." I'm facing same issues related others, I can't start the workspace. The ports are opened. Any idea? 2016-09-16 19:32:25,349[nio-4401-exec-1] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted. |
We hvae some posting guidelines. Please create a new GitHub issue. You need to provide a step by step set of instructions of what you configured. You need to provide all of your host, OS, docker configuration details. You should only need to:
If that doesn't work properly, then post all logs and explanation of what you see including output of chrome dev console. Thx! |
…ipse-che#109) Bumps [wiremock-jre8-standalone](https://github.com/tomakehurst/wiremock) from 2.27.2 to 2.31.0. - [Release notes](https://github.com/tomakehurst/wiremock/releases) - [Commits](wiremock/wiremock@2.27.2...2.31.0) --- updated-dependencies: - dependency-name: com.github.tomakehurst:wiremock-jre8-standalone dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
I install eclipse-che via docker, I want to provide custom properties from outside docker, which file do I need to mount?
I see there is
/home/user/che-3.13.4.2/webapps/che/WEB-INF/classes/codenvy/che.properties
inside the docker, is it correct file I need to mount with?The text was updated successfully, but these errors were encountered: