From 69d65ca46466ad0eee099a25e6d9d4b8175f5c97 Mon Sep 17 00:00:00 2001 From: William Miceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Wed, 28 Mar 2018 16:34:53 -0400 Subject: [PATCH] First try --- .../eclipse-che-single/0/docker-compose.yml | 15 ++++++++ .../eclipse-che-single/0/rancher-compose.yml | 34 +++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/templates/eclipse-che-single/0/docker-compose.yml b/templates/eclipse-che-single/0/docker-compose.yml index e69de29..715c802 100644 --- a/templates/eclipse-che-single/0/docker-compose.yml +++ b/templates/eclipse-che-single/0/docker-compose.yml @@ -0,0 +1,15 @@ +version: '2' +services: + che-server: + image: eclipse/che-server:latest + container_name: che + labels: + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE} + ports: + - "8080:8080" + restart: on-failure + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${DATA_VOLUME}:/data:nocopy + - ${REPO_VOLUME}:/repo:nocopy +volumes_driver: rancher-nfs \ No newline at end of file diff --git a/templates/eclipse-che-single/0/rancher-compose.yml b/templates/eclipse-che-single/0/rancher-compose.yml index e69de29..2c7a9f2 100644 --- a/templates/eclipse-che-single/0/rancher-compose.yml +++ b/templates/eclipse-che-single/0/rancher-compose.yml @@ -0,0 +1,34 @@ +version: '2' +catalog: + name: "Eclipse Che (Single-User)" + version: "latest" + description: A new awesome web IDE + questions: + - variable: "HOST_LABEL_KEY" + label: "Host Label Key" + description: | + The Label Key on the host which Eclipse Che should be deployed + default: "host.id" + required: true + type: string + - variable: "HOST_LABEL_VALUE" + label: "Host Label Value" + description: | + The Label Value on the host which Eclipse Che should be deployed + default: "0000" + required: true + type: string + - variable: "DATA_VOLUME" + label: "Persistent Storage Volume" + description: | + The Volume Name that Eclipse Che should use for it's persistent data storage + default: "Eclipse-Data" + required: true + type: string + - variable: "REPO_VOLUME" + label: "Persistent Storage Volume" + description: | + The Volume Name that Eclipse Che should use for it's persistent repo storage + default: "Eclipse-Repo" + required: true + type: string \ No newline at end of file