The build scripts have been modified to generate images of the format $ORGANIZATION/$PREFIX-$NAME:$TAG. The default organization is eclipse, the default tag is nightly, and the default prefix is che. You can proivde --organization:<org>, --prefix:<prefix>, or --tag:<tag> on the command line to customize the images that are generated. There is a new build-che.sh script which builds the minimum set of images to generate a new Che server, the CLI, and unit tests for these custom image names. If you build the CLI image, we overwrite /dockerfiles/cli/version/$TAG/images file to include the customized names that have been provided before this image is built, so the registry within the Docker image is accurate. Signed-off-by: Florent BENOIT <fbenoit@codenvy.com> |
||
|---|---|---|
| .. | ||
| .require | ||
| Dockerfile | ||
| README.md | ||
| build.sh | ||
README.md
Creating an Eclipse Che instance from a local directory
Build Docker container
$ build.sh (on Unix)
> build.bat (on Windows)
Run container
Check no docker Eclipse Che container is alive and kill it if any
$ docker ps -a
Clone a folder
$ git clone https://github.com/che-samples/web-java-spring-petclinic
Go into this checkout directory
$ cd web-java-spring-petclinic
Run script
docker run -v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD":"$PWD" --rm eclipse/che-file \
$PWD <init|up>
note: if Eclipse Che is already started, it does not handle yet this state