che-server/dockerfiles/dir
Tyler Jewell 2d3e371c45 Customize image names during image build (#4336)
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>
2017-03-10 13:41:45 +01:00
..
.require Customize image names during image build (#4336) 2017-03-10 13:41:45 +01:00
Dockerfile Customize image names during image build (#4336) 2017-03-10 13:41:45 +01:00
README.md Move eclipse/che-dockerfiles che-* images to this repository in /dockerfiles folder 2016-12-01 06:10:34 -07:00
build.sh Customize image names during image build (#4336) 2017-03-10 13:41:45 +01:00

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