37. Che dir: reproducible and portable
developer workspaces
SETUP
- Docker
- Eclipse Che CLI
CLONE
WORK
$ git clone https://github.com/che-samples/web-java-spring-petclinic
$ docker run eclipse/che dir up
39. Che dir: reproducible and portable
developer workspaces
# Defines name of the workspace
workspace.name = “happy”
# Define the Docker image to use to power the workspace's runtime
# This must conform to a Che recipe type:
workspace.runtime.image.location="codenvy/alpine_jdk8"
# Defines memory allocated to the workspace's runtime
workspace.ram = 2048
# Commands are processes that users execute in the IDE.
# Commands will appear in the drop down on the tool bar.
workspace.commands[0].name = "my-first-command"
workspace.commands[0].type = "mvn"
workspace.commands[0].commandLine = "mvn clean install -f ${current.project.path}"
workspace.commands[0].attributes.previewUrl = "http://${server.port.8080}/${current.project.relpath}"
# A command that will be executed after the workspace is loaded.
# Reference the name of a command defined above.
workspace.postload.actions[0].name="my-second-command"
40. Load or create new workspace
Securely onboard developer
http://url/factory?repo=a_project