From a3460bb91174c9cb678ee27db9501cdeafa8b8ae Mon Sep 17 00:00:00 2001 From: William Miceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Wed, 28 Mar 2018 16:52:54 -0400 Subject: [PATCH] Added HOST_IP environment variable --- templates/eclipse-che-single/0/docker-compose.yml | 2 ++ templates/eclipse-che-single/0/rancher-compose.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/templates/eclipse-che-single/0/docker-compose.yml b/templates/eclipse-che-single/0/docker-compose.yml index 715c802..9a277bf 100644 --- a/templates/eclipse-che-single/0/docker-compose.yml +++ b/templates/eclipse-che-single/0/docker-compose.yml @@ -3,6 +3,8 @@ services: che-server: image: eclipse/che-server:latest container_name: che + environment: + - CHE_HOST=${HOST_IP} labels: io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE} ports: diff --git a/templates/eclipse-che-single/0/rancher-compose.yml b/templates/eclipse-che-single/0/rancher-compose.yml index 2c7a9f2..9b0ad23 100644 --- a/templates/eclipse-che-single/0/rancher-compose.yml +++ b/templates/eclipse-che-single/0/rancher-compose.yml @@ -31,4 +31,11 @@ catalog: The Volume Name that Eclipse Che should use for it's persistent repo storage default: "Eclipse-Repo" required: true + type: string + - variable: "HOST_IP" + label: "IP of the host system" + description: | + Host IP + default: "10.0.0.0" + required: true type: string \ No newline at end of file