No more volumes

This commit is contained in:
WilliamMiceli
2018-06-18 16:38:35 -04:00
parent fa937b5d55
commit 619a70b99c
3 changed files with 44 additions and 52 deletions

View File

@@ -9,30 +9,11 @@
##### CLI Reference ##### CLI Reference
USAGE: USAGE:
` docker run -it --rm *<DOCKER_PARAMETERS>* eclipse/che-cli:*<version>* *[COMMAND]*` ` docker run -it --rm *<DOCKER_PARAMETERS>* eclipse/che-cli:*<version>* *[COMMAND]*`
MANDATORY DOCKER PARAMETERS:
``` -v *<LOCAL_PATH>*:/data``` Where user, instance, and log data saved
OPTIONAL DOCKER PARAMETERS:
` -e CHE_HOST=*<YOUR_HOST>*` IP address or hostname where che will serve its users
` -e CHE_PORT=*<YOUR_PORT>*` Port where che will bind itself to
` -e CHE_CONTAINER=*<YOUR_NAME>*` Prefix name for the che container
` -v *<LOCAL_PATH>*:/data/instance` Where instance, user, log data will be saved
` -v *<LOCAL_PATH>*:/data/backup` Where backup files will be saved
` -v *<LOCAL_PATH>*:/repo` che git repo - uses local binaries and manifests
` -v *<LOCAL_PATH>*:/assembly` che assembly - uses local binaries
` -v *<LOCAL_PATH>*:/sync` Where remote ws files will be copied with sync command
` -v *<LOCAL_PATH>*:/unison` Where unison profile for optimizing sync command resides
` -v *<LOCAL_PATH>*:/chedir` Soure repository to convert into workspace with Chedir utility
COMMANDS: COMMANDS:
` action *<action-name>*` Start action on che instance ` action *<action-name>*` Start action on che instance
` backup` Backups che configuration and data to /data/backup volume mount ` backup` Backups che configuration and data to /data/backup volume mount

View File

@@ -2,15 +2,19 @@ version: '2'
services: services:
che-server: che-server:
image: eclipse/che-server:latest image: eclipse/che-server:latest
container_name: eclipse-che
dns:
- 1.1.1.1
- 1.0.0.1
environment: environment:
- CHE_HOST=${HOST_IP} - CHE_HOST=${HOST_IP}
- CHE_PORT=${CHE_PORT}
labels: labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
ports: ports:
- "8080:8080" - ${CHE_PORT}":8080"
restart: on-failure restart: on-failure
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ${DATA_VOLUME}:/data:nocopy - ${STORAGE_BASE_DIR}${DATA_DIR}:/data
- ${REPO_VOLUME}:/repo:nocopy - ${STORAGE_BASE_DIR}${REPO_DIR}:/repo
volumes_driver: rancher-nfs

View File

@@ -4,38 +4,45 @@ catalog:
version: "latest" version: "latest"
description: A new awesome web IDE description: A new awesome web IDE
questions: questions:
- variable: "HOST_LABEL_KEY" - variable: "LABEL_KEY_VALUE"
label: "Host Label Key" label: "Host Label Key/Value Pair"
description: | description: |
The Label Key on the host which Eclipse Che should be deployed The Label Key/Value pair on the host which Eclipse Che should be deployed
default: "host.id" default: "host.id=0000"
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 required: true
type: string type: string
- variable: "HOST_IP" - variable: "HOST_IP"
label: "IP of the host system" label: "Host IP Address"
description: | description: |
Host IP IP of the host system
default: "10.0.0.0" default: "0.0.0.0"
required: true
type: string
- variable: "CHE_PORT"
label: "Port Number"
description: |
Port to access the web interface on
default: "8080"
required: true
type: string
- variable: "STORAGE_BASE_DIR"
label: "Base Storage Directory"
description: |
The base path of where persistent storage should be kept at.
default: "/RancherNetworkStorage/ContainerStorage/EclipseChe-SingleUser"
required: true
type: string
- variable: "DATA_DIR"
label: "Data Directory"
description: |
The directory Eclipse Che should use for it's persistent data storage
default: "/Data"
required: true
type: string
- variable: "REPO_DIR"
label: "Persistent Storage Volume"
description: |
The directory Eclipse Che should use for it's persistent repo storage
default: "/Repo"
required: true required: true
type: string type: string