This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "source": { | |
| "type": "dockerfile", | |
| "location": "http://beta.codenvy.com/api/recipe/recipec0v4ta2uz6jok0bn/script" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "source": { | |
| "type": "dockerfile", | |
| "content": "FROM codenvy/ubuntu_jdk8\nRUN echo hello world\nENV MYCUSTOM=VALUE" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <lifecycleMappingMetadata> | |
| <pluginExecutions> | |
| <pluginExecution> | |
| <pluginExecutionFilter> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <versionRange>1.8</versionRange> | |
| <goals> | |
| <goal>run</goal> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| db: | |
| image: codenvy/mysql // Base image | |
| environment: | |
| MYSQL_USER: petclinic | |
| MYSQL_PASSWORD: password | |
| mem_limit: 2147483648 // Memory used by the machine | |
| command: [service, mysql, start] // Execute “service mysql start” | |
| volumes_from: dev-machine // Share a volume mount from ‘dev-machine’ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clone a source code repo that you want to convert into a workspace | |
| git clone https://github.com/che-samples/web-java-spring-petclinic | |
| cd web-java-spring-petclinic | |
| # Convert it into a workspace running in a private Che server | |
| che dir up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir sync | |
| cd sync | |
| che mount |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start Che with help: | |
| docker run eclipse/che | |
| # Start Che: | |
| docker run -it -v /var/run/docker.sock:/var/run/docker.sock \ | |
| -v <LOCAL-PATH>:/data \ | |
| eclipse/che start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start Che on Windows in C:\tmp: | |
| docker run -it -v /var/run/docker.sock:/var/run/docker.sock | |
| -v /c/tmp:/data | |
| eclipse/che start | |
| # Stop Che and remove user data from disk | |
| docker run -it -v /var/run/docker.sock:/var/run/docker.sock | |
| -v /c/tmp:/data | |
| eclipse/che destroy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| db: | |
| image: codenvy/mysql // Base image | |
| environment: | |
| MYSQL_USER: petclinic | |
| MYSQL_PASSWORD: password | |
| mem_limit: 2147483648 // Memory used by the machine | |
| command: [service, mysql, start] // Execute “service mysql start” | |
| volumes_from: | |
| - dev-machine // Share a volume mount from ‘dev-machine’ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # During the stop of the workspace automatically creates a snapshot if the value is {true}, | |
| # Otherwise just stops the workspace. | |
| CHE_WORKSPACE_AUTO__SNAPSHOT=false | |
| # During the start of the workspace automatically restore it from a snapshot if the value is {true}, | |
| # Otherwise create a new workspace. | |
| CHE_WORKSPACE_AUTO__RESTORE=false |