question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to correctly setup Eclipse Che on Docker Cloud

See original GitHub issue

I’ve just got Che running nicely (all diagnostic tests pass) on Docker Cloud / AWS. I just wanted to check whether we should still be setting CHE_HOST or not with the below config?

Everything seems to work fine without, I just don’t want to slow anything down by external DNS or something happening where I can’t see it.

We have set CHE_DOCKER_IP_EXTERNAL to the FQDN of the container running Che.

che:
  environment:
    - CHE_DOCKER_IP_EXTERNAL=$DOCKERCLOUD_SERVICE_FQDN
    - CHE_DOCKER_SERVER__EVALUATION__STRATEGY=docker-local
#  - CHE_HOST=$DOCKERCLOUD_SERVICE_FQDN
  image: 'eclipse/che-server:5.7.2'
  ports:
    - '8080:8080'
  restart: always
  ...

Oh, and how do CHE_IP and CHE_API come into this? They don’t seem to be necessary even through we are connecting from a remote browser?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
davidwindellcommented, Apr 27, 2017

For those interested, our full stack looks roughly like this:

che-user1:
  environment:
    - CHE_DOCKER_IP_EXTERNAL=$DOCKERCLOUD_SERVICE_FQDN
    - CHE_DOCKER_SERVER__EVALUATION__STRATEGY=docker-local
    - CHE_PORT=80
    - CHE_WORKSPACE_VOLUME=/var/run/docker.sock:/var/run/docker.sock
    - VIRTUAL_HOST=$DOCKERCLOUD_SERVICE_FQDN
  expose:
    - '80'
  image: 'eclipse/che-server:5.7.2'
  restart: always
  volumes:
    - '/var/run/docker.sock:/var/run/docker.sock'
    - '/your/host/data/path:/data'
che-user2:
  ...same as "che-user1" but with a different volume mount
nginx-proxy:
  image: 'jwilder/nginx-proxy:alpine'
  ports:
    - '80:80'
  restart: always
  volumes:
    - '/var/run/docker.sock:/tmp/docker.sock:ro'

This instantly gives us multi-user single-server Che with auth handled via AWS VPC Security Groups (i.e. IP grants).

0reactions
TylerJewellcommented, Apr 24, 2017

There shouldn’t be a need to. It is not necessary here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to Eclipse Che :: Eclipse Che Documentation
Accelerate project and developer onboarding: As a zero-install development environment that runs in your browser, Eclipse Che makes it easy for anyone to...
Read more >
Code in the Cloud with Eclipse Che and Docker - InfoQ
Stevan Le Meur, Florent Benoit explain how to setup a workspace in Eclipse Che, how to create the environment using Docker, and show...
Read more >
Running Eclipse Che on Kubernetes using Docker Desktop ...
Eclipse Che will start several containers, let's ensure that docker setup has enough memory to handle that. Here I used 4GiB.
Read more >
eclipse/che - Docker Image
Eclipse Che is a next-generation cloud IDE and workspace server that can run anywhere Docker runs.
Read more >
Quick Start with Eclipse Che - Browser based IDE, running on ...
This is a browser based polyglot IDE that runs in a Docker container – either locally, on a central server or in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found