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

How can I provide custom che properties outside the docker? #109

Closed
freewind opened this issue Dec 7, 2015 · 8 comments
Closed

How can I provide custom che properties outside the docker? #109

freewind opened this issue Dec 7, 2015 · 8 comments

Comments

@freewind
Copy link

freewind commented Dec 7, 2015

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?

@ghost
Copy link

ghost commented Dec 7, 2015

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

@freewind
Copy link
Author

freewind commented Dec 7, 2015

@eivantsov Thanks!

@freewind freewind closed this as completed Dec 7, 2015
@gonella
Copy link

gonella commented Sep 16, 2016

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:

  1. Changing /home/user/.che/che.properties
    machine.docker.local_node_host=IP1

  2. Changing /home/user/che/conf/che.properties
    machine.docker.local_node_host=IP1

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
INFO: ECLIPSE CHE: API: http://IP1:8080/swagger

If I call "che info" I can still see old entries point to 172.17.0.1.

Any clue?

@TylerJewell
Copy link

Why are you trying to change DOCKER_HOST_IP?

@gonella
Copy link

gonella commented Sep 16, 2016

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.

@TylerJewell
Copy link

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.

@gonella
Copy link

gonella commented Sep 16, 2016

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.
2016-09-16 19:32:25,349[nio-4401-exec-2] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.
2016-09-16 19:33:04,899[ted-scheduler-0] [ERROR] [.w.s.WsAgentAnalyticsAddresser 37] - Failed to send agent analytics
java.net.UnknownHostException: install.codenvycorp.com

@TylerJewell
Copy link

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:

  1. Get docker installed
  2. Get the Che CLI
  3. export CHE_HOST_IP=
  4. che start

If that doesn't work properly, then post all logs and explanation of what you see including output of chrome dev console. Thx!

metlos pushed a commit to metlos/che that referenced this issue Sep 16, 2021
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants