Commit Graph

14 Commits (2545559c300956d0ec10d17543e4db98e7d0a07d)

Author SHA1 Message Date
Mykhailo Kuznietsov 80f857bbc6
Update Keycloak to 3.4.3.Final version (#10165) 2018-07-02 09:49:54 +03:00
Max Shaposhnik 0d57c48fd5
Restore support of single-port Che mode (on docker infra) 2018-01-31 14:27:51 +02:00
Max Shaposhnik ea7e071b3a
Use same assembly for single- and multiuser Che 2017-11-07 12:27:02 +02:00
Roman Iuvshyn f03ed91b56 update kc image version (#6712)
* update kc image version
2017-10-12 22:09:14 +03:00
Roman Iuvshyn 6d40b2420a use 9.6 tag of postgresql image instead of latest (#6690) 2017-10-12 12:12:48 +03:00
Roman Iuvshyn c9a8d8f556 Update CLI version files for future release (#6635) 2017-10-09 16:40:17 +03: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
Florent BENOIT a246875dde Use of new Traefik version (before : RC1, now RC3) (#5232)
* Use of new Traefik version (before : 1.3RC1, now 1.3RC3)

Change-Id: I8b7097f60dc28bfcf2e4585d4c1e1393d53b8332
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-05-29 17:42:05 +02:00
Florent BENOIT a13068e140 Enable single port exposure on Che (#5115)
* Toggle Che single port by enabling CHE_SINGLE_PORT in the che.env file. (CHE_SINGLE_PORT=true, default is false)

By enabling single-port, all browser traffic to Che or any workspace will be routed through the value that you have set to CHE_PORT`, or 8080 if not set. Setting this property will transform the launch sequence of Che to launch a Traefik reverse proxy. The reverse proxy will act as the traffic endpoint for all browser communications. When a new workspace is started or stopped, Che will update Traefik's configuration
with rules for how browser traffic should be routed to Che or a workspace.

It’s now using an official Traefik image (before I was using a custom made image)
There is an interceptor with a kill switch. It means interceptor is applied only if plug-in is enabled (not only if plug-in is added at compilation)
It is automatically enabled when CHE_SINGLE_PORT is turned on

docker-compose file is handling if the single_port is turned on or off and then add the traefik container and redirect port only if the property is enabled. (not enabled by default)

using —debug flag when launching che is also turning on the traffic web console to view traefik routes

It is not enabled by default, so it means that without user change, there is no overhead, no useless container started, etc.

Change-Id: I12644d9202dadc0b10104f78bb055425ca6611ac
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-05-18 14:52:41 +02:00
Tyler Jewell 8287fb66d3 Refactor CLI: Faster boot, add `--help` global option, standardize command lifecycle (#4006)
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
* multi container fixup
* Update images
* add --help parameter
* move entrypoint
* remove empty
2017-02-06 07:37:08 -08:00
Florent BENOIT 606f6aff47 [cli] #3666 do not hardcode version of utilities images to nightly (#3751)
1. : we have `images-bootstrap` file inside the base image (with variable named BOOTSTRAP_IMAGE_*)  . For example BOOTSTRAP_IMAGE_ALPINE and BOOTSTRAP_IMAGE_CHEIP
2. : `images` file (with variable named IMAGE_*) (we have this file currently)
3. : `images-utilities` file (with variable named UTILITY_IMAGE_*) inside the base image For example UTILITY_IMAGE_CHEDIR

then we can apply the required policies
1. all images of images-bootstrap are loaded when we bootstrap cli
2. all images of images are loaded after bootstrap
3. all utilities images are pulled when one of them is asked


- removes all previous calls to the get_image_manifest as it’s performed by cli once. (In the past it was in another docker image but now it’s a local file parsing)
- update offline and rmi commands

* Update log (turn into log when it’s not needed for user)

Linked to #3666 and #3667

Change-Id: I83fc64c019f3d6deef3118e75a83693bb3d82175
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-22 14:47:28 +01:00
Roman Iuvshin 2b670fbcb0 RELEASE: set tags for release (#3632) 2017-01-06 12:31:04 +02:00
Tyler Jewell e7f56ac457 CLI Improvements (#3394)
* update offline folder
* move to docker 1.11
* offline mode
2016-12-15 06:04:28 -08:00
Florent BENOIT 56ddd58481 Move eclipse/che-dockerfiles che-* images to this repository in /dockerfiles folder
Change-Id: I4c258775a4a67a87cba3b3dbfbc1af2cc2f8416f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-01 06:10:34 -07:00