Commit Graph

39 Commits (a1dfdfb04ef7f3369c8d313dbcd1992e22f3b244)

Author SHA1 Message Date
Anton Korneta c34d359921 Change public stacks, recipes loading policy (#5234) 2017-06-20 11:31:00 +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 a0b9719caa Add possibility to extend che.env with addon.env if it exist (#5118) 2017-05-17 17:17:26 +03: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
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
Sun Seng David TAN 35d8e2dc6d Boolean server property to enable or disable auto start of a workspac… (#4287)
* Boolean server property to enable or disable auto start of a workspace when accessing to it through its url

https://issues.jboss.org/browse/CHE-116

Signed-off-by: Sun Seng David Tan <sutan@redhat.com>

* fixup! Boolean server property to enable or disable auto start of a workspace when accessing to it through its url
2017-03-07 16:00:45 +01:00
Roman Iuvshin cea4edfeab fix env property name (#4293) 2017-03-02 15:48:27 +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
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
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
Florent BENOIT 6d459be382 machine logs should go in /logs/ folder as well (not in /data)
Change-Id: I
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-27 15:38:18 +01:00
Roman Iuvshin c4bd4d0ee1 remove redundant env var for che (#3874) 2017-01-24 17:45:20 +02:00
Alexander Garagatyi 6b46f73c2c CHE-3686: fix docker machines addresses setting
Set internal machine address by CLI from CHE_IP.
Add and fix docs in che.env.
Change behavior of default machine server address evaluation
to be similar to the previous state.
Code cleanup.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2017-01-20 18:10:32 +02:00
Tyler Jewell a425a94f90 port fix (#3734) 2017-01-14 07:45:10 -08:00
Angel Misevski d00ff2962b CHE-2030: Add ServerEvaluationStrategies and Provider
Adds abstract class ServerEvaluationStrategy which can be used to
change how Che Server communicates with workspace containers.
ServerEvaluationStrategy is meant to be extended to modify the behavior
of DockerInstanceRuntimeInfo#getServers().

Two implementations of ServerEvaluationStrategy are included:
DefaultServerEvaluationStrategy (which is identical to normal
getServers() functionality) and LocalDockerServerEvaluationStrategy,
which uses internal container addresses for workspace containers
and can help in cases where firewall is an issue.

Strategies are provided by ServerEvaluationStrategyProvider, which
uses the new property che.docker.server_evaluation_strategy to choose
which implementation is provided.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2017-01-05 13:52:42 -05:00
Tyler Jewell cfc39c2f70 CLI - Separate debugging apart from local repo (#3581) 2017-01-05 05:25:52 -08:00
Mario Loriedo 39416e19a0 Minor dockerfiles build fixes
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2017-01-04 10:13:51 +01:00
Mykola Morhun c53693d5fa CHE-3549 Fix docker privileged mode (#3562)
CHE-3549: Fix privileged mode
2016-12-29 10:01:04 +02:00
Mykola Morhun 2c855c68ac Che 3135: Clean up abandoned docker networks created by CHE (#3348)
CHE-3135: Clean up abandoned docker networks created by CHE
2016-12-23 16:23:56 +02:00
Max Shaposhnik 5621095554 Fix registry doc (#3477) 2016-12-22 14:51:51 +02:00
Tyler Jewell 589f47d826 Improve Che's documentation around configuring Docker (#3472)
* docker
* firewall
2016-12-21 13:13:40 -08:00
Florent BENOIT 940b0bc7bd [dockerfiles] Fix scripts to be compliant with sh (and not only bash) (#3397) 2016-12-15 03:21:12 -07:00
Florent BENOIT eee092c76d in development mode, enable debug mode (it will start Tomcat with jpda mode) (#3371)
Fix #3367

Change-Id: I1de413e1e7b5fce4631055811b2b2b879b3052aa
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-13 09:17:38 -07: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 8cb09a8c39 fix no proxy issue (#3325)
* fix no proxy issue
2016-12-08 18:53:57 +02:00
Roman Iuvshin 4c587d5248 Configure Master & Agent JVMs to Inherit Proxy Settings (#3323)
* Configure Master & Agent JVMs to Inherit Proxy Settings
2016-12-08 15:59:43 +02:00
Alexander Garagatyi 42272e4bd9 CHE-3199: add cpu limits configuration (#3278)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-12-07 17:39:59 +02:00
Roman Iuvshin 871437aa9e single compose file template (#3290)
* single compose file template
2016-12-06 16:00:19 +02:00
Tyler Jewell d484d4be27 Update che.env to reflect latest properties (#3251)
* initial

* docker alias

* docs
2016-12-02 05:49:07 -08:00
Florent BENOIT 4f83334a10 add all CHE_ properties to che.env file at first (#3246)
Change-Id: Ia7a48355d81dc1ba7b4b86726038637ef3e44e68
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-01 10:56:21 -07: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