Run as different user

This commit is contained in:
WilliamMiceli
2018-06-18 17:52:20 -04:00
parent 5e7dec2320
commit 9d71e3da2e
2 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ services:
environment: environment:
- CHE_HOST=${HOST_IP} - CHE_HOST=${HOST_IP}
- CHE_PORT=${CHE_PORT} - CHE_PORT=${CHE_PORT}
- CHE_USER=${UID_GID}
labels: labels:
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
io.rancher.container.hostname_override: eclipse-che io.rancher.container.hostname_override: eclipse-che

View File

@@ -25,6 +25,13 @@ catalog:
default: "8080" default: "8080"
required: true required: true
type: string type: string
- variable: "UID_GID"
label: "UID:GID"
description: |
The User ID and Group ID that Eclipse Che should run as
default: "1000:1000"
required: true
type: string
- variable: "STORAGE_BASE_DIR" - variable: "STORAGE_BASE_DIR"
label: "Base Storage Directory" label: "Base Storage Directory"
description: | description: |