Commit Graph

10 Commits (9abfec7c5fbf964ccae93eb4e4487efb54db59ff)

Author SHA1 Message Date
Florent BENOIT 15565173d8 Adds a check for linuxkit in addition to moby to detect if we're running docker4mac or docker4windows (else it will flag it as being 'native')
The change has been introduced with latest versions of Docker
issue is #7282

Change-Id: Id71fed460ae55ff6a1a5c34b6771f898872c91b1
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-11-14 09:30:30 +01:00
Sergii Kabashniuk ee01b2998f Multi-user Eclipse Che (#6441)
Multi-user Eclipse Che (#6441)
#### How to run it.
```docker run -it -e CHE_MULTIUSER=true -e CHE_HOST=<your ip> -e CHE_KEYCLOAK_AUTH-SERVER-URL=http://<your ip>:5050/auth -v /var/run/docker.sock:/var/run/docker.sock -v ~/.che-multiuser:/data eclipse/che:nightly start --skip:pull --skip:nightly```
#### How to manage it
 - Keycloak configured with two realms. ```Master``` and ```che```. Also we have one user admin/admin in both realm. Admin user in master realm is  - super admin. 
-  Eclipse Che configured for che realm
- We enabled user registration in ```Che``` realm
#### Known limitation
 - swagger would not work. We need to upgrade a version. to support openid authentification https://github.com/eclipse/che/issues/6015
- It's working on local docker. We are going to provide scalable version based on OpenShift on next versions.
- Invitation of non-existent users to Eclipse Che organization https://github.com/eclipse/che/issues/6335
#### How to run it when it is in a branch


To run an multiuser Che version, the following steps are required after building the branch:
 - Rebuild init, cli and che images (in the given sequence). To do that, proceed to folder _dockerfiles/<image_name>_ and run _build.sh_
 - Run Che in a  usual way using cli, with additional parameters:  `-e CHE_MULTIUSER=true` and `--skip:pull --skip:nightly`  
   Full command example:
   `docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/user/.che:/data -e CHE_MULTIUSER=true eclipse/che-cli:nightly start --skip:pull --skip:nightly`
 - MacOS users may need to edit _che.env_ file in the data folder, changing `CHE_HOST` and `CHE_KEYCLOAK_AUTH__SERVER__URL` values to their specific IP.
 
When start is succeeded, the following docker containers should be created:  
 - che, exposing 8080 port;
 - che_keycloak, exposing 5050 port;  
 - che_postgres, exposing 5432 port;
2017-10-06 17:27:27 +03:00
Roman Iuvshyn 9e59506125 fix unbound variable in cli tests (#6431) 2017-09-26 12:05:04 +03:00
David Festal 839944884f Allow overriding the images used by the CLI (#6379)
* Allow overriding the used images (IMAGE_INIT, ...) when using the CLI

Signed-off-by: David Festal <dfestal@redhat.com>

* fix bad formatting

Signed-off-by: David Festal <dfestal@redhat.com>

* clean in www.shellcheck.net

Signed-off-by: David Festal <dfestal@redhat.com>

* Add tests

Signed-off-by: David Festal <dfestal@redhat.com>

* Fix a mistake

Signed-off-by: David Festal <dfestal@redhat.com>
2017-09-26 10:35:00 +02:00
Roman Iuvshyn 66d6f9476a fix docker images build (#6372)
* fix docker images build
2017-09-21 11:13:26 +03:00
Roman Iuvshyn 05f5921aad CLI tests, exit if any test failed to prevent pushing images (#6131)
Signed-off-by: Roman Iuvshyn <riuvshyn@redhat.com>
2017-09-05 10:34:14 +03:00
Roman Iuvshyn 57106827fb enable and fix existing and add some more tests CLI tests. (#5304)
* enable, fix and add more CLI tests.
2017-06-14 12:46:07 +03:00
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
Florent BENOIT 5554345aae [cli] Fix cli tests by reworking how integration tests are launched (#3991)
* 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>
2017-02-02 09:43:48 +01:00
Marián Labuda daf134ec93 Moved functional tests to cli dir to avoid circular dep (fixes #3882) (#3899)
Signed-off-by: Marian Labuda <mlabuda@redhat.com>
2017-01-25 23:29:14 +01:00