First try

This commit is contained in:
William Miceli
2018-03-28 16:34:53 -04:00
parent d02c6a1915
commit 69d65ca464
2 changed files with 49 additions and 0 deletions

View File

@@ -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

View File

@@ -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