Commit Graph

60 Commits (5ee2914e9530dc4ed6400a1e88925546fdd71757)

Author SHA1 Message Date
David Festal 1161181899 Deploy multi-user Che to openshift (#6195)
* Allow deploying the Keycloak and Postgres servers to Minishift and Openshift Online.

This is related to https://github.com/redhat-developer/rh-che/issues/303
and https://github.com/redhat-developer/rh-che/issues/302

* Make the Che directory readble for any users

* Modify `deploy_che.sh` to support `multi-user` images

* Move the scripts to `che-init` and enhance `deploy-che.sh` to start the secondary server if necessary and wait for postgres to be available. 

* Wait for Postgres to be available before starting Keycloak

* Clean scripts through spellcheck and add missing licenses 

* Change the health check to `/api` instead of `/api/system/state` since, with the new permission work, accessing `/api/system/*` requires the user to have specific system rights.

* Fixes after comments on PR

* Use the new official `keycloak-openshift` image and manage web-origins 

* Make Keycloak memory limits consistent with official requirements defined
[here](http://www.keycloak.org/docs/latest/server_installation/topics/installation/system-requirements.html)

Signed-off-by: David Festal <dfestal@redhat.com>
2017-09-29 16:07:36 +02:00
Mykola Morhun 679df96208 CHE-6265: Add Keycloak email templates (#6451)
CHE-6265: Add Keycloak email templates
2017-09-28 11:56:41 +03:00
Oleksii Kurinnyi 01ab2b2587 Merge remote-tracking branch 'origin/master' into che-multiuser
# Conflicts:
#	dashboard/src/app/index.module.ts
#	dashboard/src/app/workspaces/workspace-details/workspace-details.service.ts
#	dashboard/src/components/typings/che.d.ts
2017-09-27 13:36:26 +03:00
Florent BENOIT 79ac0e78b8 Fix the stack json link 2017-09-27 12:07:40 +02:00
Sergii Kabashniuk de52d5f04b Code cleanup 2017-09-27 11:29:54 +03:00
Sergii Kabashniuk f08f5c52fc Merge with master 2017-09-26 15:33:44 +03:00
David Festal 5725219d11 Move the Openshift scripts from the cli image to the init image... (#6390)
... so that they are available locally after a `docker run cli:config`.


Signed-off-by: David Festal <dfestal@redhat.com>
2017-09-26 10:34:19 +02:00
Roman Iuvshyn d052e6cb68 set sslRequired to none by default 2017-09-25 15:48:14 +03:00
Sergii Kabashniuk e7006e5ae4 Merge with master 2017-09-18 08:46:28 +03:00
Masaki Muranaka 1174e9ca34 Setup Traefik restart always.
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2017-09-13 11:23:40 +02:00
Max Shaposhnik 202ded08ec Merge branch 'master' into che-multiuser 2017-08-18 10:33:46 +03:00
Mykhailo Kuznietsov ce41b4a71d Change copyright owner to "Red Hat, Inc" on remaining files (#6032)
* Change copyright owner on remaining files

* fixup! Change copyright owner on remaining files

* fixup! fixup! Change copyright owner on remaining files
2017-08-17 18:05:53 +03:00
Sergii Kabashniuk c87d869caf Added ability to configure ds with environment variables 2017-08-15 17:34:40 +03:00
Max Shaposhnik c8b92fcc74 Merge with master 2017-08-11 16:42:29 +03:00
Mykhailo Kuznietsov 69d5148385 Changed copyright owner to "Red Hat, Inc." in license headers (#5964)
Change license header contributor to Red Hat, Inc.
2017-08-11 10:46:58 +03:00
Mykola Morhun 9482b9db12 Che Keycloak theme: Set font to Roboto. Align popup text to the left. (#5951) 2017-08-10 08:56:00 +03:00
Sergii Kabashniuk 78f7bf82b5 Allow all web origins for public realm to dial with Cors problems 2017-08-04 15:04:59 +03:00
Roman Iuvshyn b53ec65286 get rid of hardcoded paths in che-server container (#5880)
* get rid of hardcoded paths in container
2017-08-03 13:09:01 +03:00
Mykola Morhun ebd0019459 Che theme for Keycloak (#5859)
Add draft of Che theme for keycloak
2017-08-02 15:23:31 +03:00
Roman Iuvshyn e270461059 add possibility to configure postgres connection 2017-08-01 15:56:51 +03:00
Roman Iuvshyn f88ff1cbb5 fix compose 2017-08-01 15:24:07 +03:00
Roman Iuvshyn 2d0d2b0caf fix che user permissions 2017-08-01 14:38:58 +03:00
Roman Iuvshyn 9c90adf33e fix network issue 2017-08-01 14:13:44 +03:00
Roman Iuvshyn 726b8adb4e initial 2017-07-28 17:16:43 +03:00
Roman Iuvshyn 1c8780e6d5 set custom network for che in multiuser mode 2017-07-27 17:27:07 +03:00
Roman Iuvshyn 1163861928 added possibility to switch between single / multi user CHE 2017-07-26 17:37:31 +03:00
Max Shaposhnik b6ccb6e8b8 Fix dashboard loading 2017-06-27 16:05:08 +03:00
Roman Iuvshyn e56ec5f3bb fix permission denied issues with keycloak mounts 2017-06-23 16:39:36 +03:00
Roman Iuvshyn 8908564abf update keycloak config 2017-06-22 17:07:19 +03:00
Roman Iuvshyn 8defbf4208 add keycloak configurations 2017-06-22 16:54:02 +03:00
Max Shaposhnik 20e02848cc Merge branch 'che5362' of github.com:eclipse/che into che5362 2017-06-22 14:24:13 +03:00
Max Shaposhnik 7231fc2723 marge with master 2017-06-22 14:24:00 +03:00
Roman Iuvshyn 06c9108f8f rework health check for PG 2017-06-22 14:23:40 +03:00
Roman Iuvshyn 8db4a361b6 use healthcheck for postgres container, some minor structure changes 2017-06-20 12:40:04 +03:00
Anton Korneta c34d359921 Change public stacks, recipes loading policy (#5234) 2017-06-20 11:31:00 +03:00
Sergii Kabashniuk 4f8265365a added realm config. disabled due to linux permissions mouns in keycloak container 2017-06-19 10:07:03 +03:00
Roman Iuvshyn 7cd3f58bd6 add postgres to composefile 2017-06-16 17:04:13 +03:00
Sergii Kabashniuk 644d73e09f Setup master war. Setup smallgroup compose file 2017-06-15 14:13:52 +03: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
Roman Iuvshin 4813a1a712 fix CHE custom properties usage (#5103) 2017-05-17 10:33:33 +03:00
Alexander Garagatyi b3ce50f7cf Do not set debug log level when debug flag is used
Unset debug level when --debug is used to not use it as default behavior.
To set debug log level use env variable from CLI help.
2017-04-20 16:59:41 +03:00
Roman Iuvshin 12cf01a8ff fix cli config command, cli log, jmx setting (#4409)
* fix cli config command, cli log, jmx setting
2017-03-18 21:11:13 +02:00
Roman Iuvshin c487a5af2a Remove no proxy duplicates (#4285)
* Remove no proxy duplicates
2017-03-01 23:55:47 +02:00
Tyler Jewell b53932db99 CLI - set uid:gid of Che and workspaces (#4050)
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
* Update docker-compose.yml.erb
* Add uid checks
2017-02-20 07:33:57 -08:00
Alexander Garagatyi 6032c5905d CODENVY-1749: add possibility to set dns resolvers (#4129)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2017-02-15 12:47:46 +02:00
Yevhenii Voevodin 02a60a29c1 Allow to override JAVA_OPTS from che.env 2017-02-15 10:58:27 +02:00
Tyler Jewell bb03ebd936 [cli] Simpler networking config explanation & command line overrides (#4114)
* Simpler networking config explanation & command line overrides
2017-02-14 19:01:23 +02:00
Yevhenii Voevodin 9370327d46 Inject MAVEN_OPTS environment variable along with JAVA_OPTS to container 2017-02-14 17:50:56 +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
Tyler Jewell 9b2ccadae6 CLI: Add multi container launch, memory preflight check, disk preflight check (#3940)
* fix multi container launch
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
* refactor
* add preflight checks
* skip network
* postflight checks
* rename pre/post init methods
Change-Id: Ie2a7027f782823c61f0e414d91e6d4fd4a6b2f7c
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
* Update startup_funcs.sh
2017-01-31 12:22:12 -08:00