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>
* Fix#3980 by reworking how integration tests are launched
- We used OS path mounted into container path (it makes issues as on Windows we don’t have these paths)
- Now use /dockerfiles path inside the container
- add skip check for nightlies or it was downloading new images while testing the current nightly
- add —rm for cleaning containers at the end of docker run
- introduce of some asserts instead of custom checks
- Fix windows issue (like path with spaces)
- Fix teardown of che start tests
Change-Id: I352d7c475796df641c1e34f461c55a76c897922d
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
* Fix#3941 by rewriting che-ip utility
- Rewrite che-ip with more helper functions
- introduce bats unit tests for each function
- For each “supported OS”, we have an output of “ip a show” command and then run against each of this file the tool to check if it performs as expected
./build.sh : build image + run tests (option to skip tests = —skip-tests)
./run.sh : run image
./test.sh : run the unit tests (no need to build the image first)
Change-Id: Ic92825d2b427139d52db69f0131bee21d16d3c0f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
on some OS che-ip does not work because output is different.
here I've added reg-ex `.*` which assume that scope can be differ from `global` and some extra words could appear like `dynamic`.