forked from eclipse-che/che
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chefile
29 lines (22 loc) · 1.6 KB
/
Chefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Runtime image to use for booting and compiling Eclipse Che
workspace.runtime.docker.image="florentbenoit/che-in-che"
# Commands that will appear on the IDE commands widget
workspace.commands[0].name="1. Build Che in Che"
workspace.commands[0].commandLine="mvn clean install -f /projects/che/assembly/assembly-main"
workspace.commands[1].name="2. Run Che in Che"
workspace.commands[1].commandLine='export CHE_VERSION="nightly" && export CHE_BIN_PATH=$(ls -d /projects/che/assembly/assembly-main/target/eclipse-che-*/eclipse-che-*); sudo docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock --env CHE_LOCAL_BINARY=${CHE_BIN_PATH/\'/projects/che\'/$(sudo docker inspect --format \'{{ range .Mounts }}{{ if eq .Destination "/projects/che" }}{{ .Source }}{{ end }}{{ end }}\' $(hostname))} --env CHE_PORT=54321 --env CHE_SERVER_CONTAINER_NAME="che-in-che-server" codenvy/che-launcher:nightly start'
workspace.commands[1].attributes={
"previewUrl": "http://localhost:54321"
}
workspace.commands[2].name="3. Stop Che in Che"
workspace.commands[2].commandLine='sudo docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock --env CHE_SERVER_CONTAINER_NAME="che-in-che-server" codenvy/che-launcher stop'
workspace.commands[3].name="** Kill Che in Che **"
workspace.commands[3].commandLine="sudo docker rm -f che-in-che-server"
# Name of the workspace
workspace.name="che"
# Memory for this workspace
workspace.ram=3092
# Optional properties to propagate to che server (or export CHE_HOST_IP variable)
#che.server.properties['CHE_HOST_IP']='123.123.123.123'
# Configure project properties
workspace.projects[0].type = "maven"