Commit Graph

38 Commits (7f38fc4e91bde8f08e89a732976d3d2e4830c83e)

Author SHA1 Message Date
Hanno Kolvenbach 3d841d5a2e Enable single-level DNS domains (*.domain.tld) in SINGLE_PORT mode to simplify HTTPS setup (#8983)
Enable single-level DNS domains (*.domain.tld) in SINGLE_PORT mode to simplify HTTPS setup.
Use whole folder for traefik conf to inject SSL certificates and custom configuration.
CHE_SINGLEPORT_WILDCARD__DOMAIN_IPLESS to che.env.
Signed-off-by: Hanno Kolvenbach <kolvenbach@silexica.com>
2018-04-03 13:50:58 +03:00
Roman Iuvshyn 48ccf8ac83
Fix deployment che-multi on docker (#9222) 2018-03-24 10:55:47 +02:00
Tatsuyuki Ishi f4fb9465e8 Expose postgres for development 2018-03-21 14:50:32 +02:00
Tatsuyuki Ishi 1591aa2839 docker-compose: stop exposing postgres to external 2018-03-21 14:50:32 +02:00
Max Shaposhnik dcf80c3c4e
Fix singleport mode in multiuser 2018-02-06 14:15:35 +02:00
Eugene Ivantsov 37e77730c8
Fix indentation in docker-compose template (#8016) 2017-12-22 15:27:45 +02:00
Sergii Kabashniuk 026598d841
Optimize che-server ram usage on Docker (#7787)
Optimize che-server ram usage on Docker 
Proposal is to set container limit to 750M for both Docker and OpenShift and tune a bit GC

-XX:MaxRAMFraction=2 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true -Xms20m
Important parts

-XX:MaxRAMFraction=2 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - tels jvm to use ~ CHE_MASTER_CONTAINER_RAM/MaxRAMFraction for heap
We need some space for off-heap activity. During test I saw VmRSS of jvm ~330_000k - 350_000k.
-XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 ask GC to keep heap compact in cost of some CPU.
You can see changes in heap usage pattern in images below.
2017-12-08 18:53:27 +02:00
Max Shaposhnik ea7e071b3a
Use same assembly for single- and multiuser Che 2017-11-07 12:27:02 +02:00
Gerard Hickey 7e848b14ee Added Traefik's docker.network label to fix multiuser single_port (#7170)
Signed-off-by: Gerard Hickey <Gerard.Hickey@smartsheet.com>
2017-11-07 12:12:07 +02:00
Roman Iuvshyn c96cfac0c8 Fix postgres container freeze on stop (#7045) 2017-10-27 16:14:22 +03:00
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
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
Sergii Kabashniuk c87d869caf Added ability to configure ds with environment variables 2017-08-15 17:34:40 +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 f88ff1cbb5 fix compose 2017-08-01 15:24:07 +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
Roman Iuvshyn e56ec5f3bb fix permission denied issues with keycloak mounts 2017-06-23 16:39:36 +03:00
Roman Iuvshyn 8defbf4208 add keycloak configurations 2017-06-22 16:54:02 +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
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 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
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
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
Tyler Jewell a425a94f90 port fix (#3734) 2017-01-14 07:45:10 -08:00
Tyler Jewell cfc39c2f70 CLI - Separate debugging apart from local repo (#3581) 2017-01-05 05:25:52 -08:00
Tyler Jewell 4e013b4c35 Che CLI Improvements (#3301)
* cli improvements
* usage
* docs
* Remove need to mount :/cli
* DNS resolver check
* proxy detection
* export proxy
* Downgrade docker client to 1.10
2016-12-08 11:08:15 -08:00
Roman Iuvshin 871437aa9e single compose file template (#3290)
* single compose file template
2016-12-06 16:00:19 +02: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