Alexander Garagatyi
1eceaebe75
CODENVY-1271: fix agent launching in some cases
...
Fix AbstractAgentLauncher.
Code cleanup.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-12-21 16:28:37 +02:00
Snjeza
9f5a7fb027
CHE-3129 - Project can't be created without Z option ( #3130 )
...
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
2016-12-15 15:06:41 +02:00
Florent BENOIT
5266cd930e
machine.getOwner() should return userId and not a namespace ( #3366 )
...
Fix #3042
Change-Id: I64b4cd3931fec502073ead0115a312430f2434b8
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-14 02:01:28 -07: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
Max Shaposhnik
afadcd24f3
CHE-3065 Add uncaught exceptions handler in threads being run by ExecutorService ( #3174 )
2016-11-28 11:50:50 +02:00
Max Shaposhnik
44b6e46361
CODENVY-1127; Avoid of concurrent snapshots on same node. ( #3125 )
2016-11-18 16:53:54 +02:00
Alexander Garagatyi
9a60f0744f
CHE-3114: Fix projects mount permissions
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-11-18 09:38:59 +02:00
Aleksandr Andrienko
6100119a68
CHE-2365: Add deserializer for 'command' field ComposeServiceImpl. ( #2807 )
...
Move compose parser to separate module.
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-11-17 19:18:36 +02:00
Snjezana Peco
b7682ddde7
CHE-2874 Let users configure the 'Z' flag when mouting a volume
...
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
2016-11-17 14:51:40 +01:00
Anatoliy Bazko
b0c4235f1e
INFRA-14: Limits number of pids ( #3075 )
...
* INFRA-14: Limits number of pids
2016-11-15 12:34:58 +02:00
Alexander Garagatyi
0c81935f21
[WIP] Hackathon merge ( #3013 )
...
Refactors workspace bootstrapping code:
Addition of projects volumes to ws-machines and
applying of agents moved to infrastructure provisioner.
It can be overwritten in any implementation of Che and
will be responsible for providing all infrastructure needed for Che implementation functioning.
Allow to configure environment network driver.
Allow to add Agents from the code instead of special files.
These agents can override agents configured in files if identifiers are equal.
Adds possibility to host agents binaries from CHE master.
Reworks agents in a way when they can be downloaded from CHE master if they are not found on FS.
Adds workspace ID to internal representation of environment to allow to use it for internal purposes of machine bootstrapping.
Renames some properties.
Refactors AgentConfigApplier to encapsulate additional code that was used with this class before.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-11-11 18:21:28 +02:00
Aleksandr Andrienko
2a0081e174
CHE-2927: Add logs for active containers checked by DockerContainerCleaner. ( #2950 )
...
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-11-01 17:53:08 +02:00
Mykola Morhun
d74b24fb07
Fix broken links section in docker-compose recipe ( #2850 )
2016-10-31 16:22:48 +02:00
Anatoliy Bazko
eb03a17917
CHE-2832: Add servers to Agent description and propagate them to Workspace Runtime ( #2868 )
2016-10-31 09:17:15 +02:00
Mihail Kuznyetsov
494442e11a
CHE-2015 Rename configuration properties
2016-10-27 17:29:46 +03:00
Aleksandr Andrienko
f2661c97f4
Fix test which periodically failed. ( #2835 )
...
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-10-20 11:32:49 +03:00
Mario Loriedo
a33fdf142b
Add build args support in compose files (CHE-2661)
...
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2016-10-18 22:14:55 -06:00
Aleksandr Andrienko
291dbb89ba
CHE-2435: Clean up workspace files after remove workspace. ( #2544 )
...
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-10-18 23:05:24 +03:00
Florent BENOIT
f2c8529792
Use of /bin/sh for script invocation
...
Allow to override /bin/sh by a "shell" attribute in commands
Change-Id: I19b95868c44f473552a153e29d1ba41abcc19aef
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-10-11 15:00:46 +02:00
Mario Loriedo
dabb749777
Add property machine.docker.local_node_host.external. ( #2402 )
...
This property allows communications beetween browser and containers that are on different networks (eg. Docker for Mac or NAT)
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2016-09-28 18:52:28 +02:00
Mykola Morhun
53506bad36
CHE-2498: Improve error handling when read a container logs ( #2499 )
...
CHE-2498: Improve error handling when read a container logs
2016-09-28 10:57:01 +03:00
Alexander Garagatyi
771294cdfd
CHE-2470: Fix usage of machine servers in environemnt configuration ( #2599 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-09-28 10:52:52 +03:00
Alexander Garagatyi
c83cc38060
Fix environment addition. ( #2543 )
...
Also fix few trivial bugs.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.comqa>
2016-09-22 15:58:29 +03:00
Alexander Garagatyi
405422c6db
CHE-2366: Fix volumes_from usage in compose environment ( #2487 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-09-21 12:09:56 +03:00
Anatoliy Bazko
36c5a80060
CHE-2425: Ways to mount folder inside host machine to auxiliary machine ( #2427 )
2016-09-13 17:19:01 +03:00
Alexander Garagatyi
4612ca5fd0
CHE-2344: Fixes repetitive saving snapshot of workspace ( #2413 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-09-12 16:59:16 +03:00
Alexander Garagatyi
b2309ef345
CHE-2331: add all containers to Che master docker network ( #2392 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-09-09 15:00:53 +03:00
Anatoliy Bazko
af2f1098d7
CHE-1823: Machine Agent implementation ( #2311 )
2016-09-08 16:39:14 +03:00
Florent BENOIT
ad2378a19f
backport PR2264 into CHE-1818 branch ( #2288 )
...
Allow semi colon mounted Volumes (required for Chefile che-in-che)
Change-Id: I038946a60b4b32609b276d9034be6a15756ac894
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-09-02 17:04:12 +03:00
Alexander Garagatyi
f1b0c393cf
CHE-1818: Add new WS environment types, machines attributes ( #2315 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-09-02 16:59:04 +03:00
Alexander Garagatyi
2874265eb3
CHE-1818: change workspace environment model
...
Also adapt UD to new environment model by Anna Shumilova.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-09-02 14:52:41 +03:00
Florent BENOIT
8e39f7b0b5
Allow to use volumes with ; (semi colon) to separate the values
...
Note: it could be used for machine.server.extra.volume for example
Change-Id: Ic029b47511f784d41e906e0c2b570869466f605e
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-08-31 17:38:52 +02:00
Mykola Morhun
a2b15e617b
CODENVY-562: Clean up container if it failed to start
...
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-08-18 17:56:55 +03:00
Alexander Garagatyi
0e9718e016
CHE-1370: refactor workspace environment bottstrapping and handling ( #2108 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-08-16 16:23:08 +03:00
Mykola Morhun
3ebc3cdf34
CODENVY-453: Add ability to support docker registries with dynamic passwords
...
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-08-08 16:22:01 +03:00
Aleksandr Andrienko
d25d5dbc54
codenvy-447: Remove containers in case failed to create docker instance.
...
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-08-02 13:10:26 +03:00
Max Shaposhnik
fe0cb3bd0f
CHE-1248; remove workspace information from EnvironmentContext ( #1658 )
2016-07-20 17:30:10 +03:00
Mykola Morhun
13f1400156
CODENVY-413: Add new parameters to build docker image method
...
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-07-19 18:31:23 +03:00
Alexander Garagatyi
0d16da4ee0
Fix failing tests ( #1783 )
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-18 14:36:45 +03:00
Alexander Garagatyi
3eb38cdfcc
CHE-1489: rework workspaces folder usage to fix Che on some configs ( #1733 )
...
CHE-1489: rework workspaces folder usage to fix Che on some configs
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-18 13:03:41 +03:00
Mykola Morhun
6f64c2b724
Revert "CODENVY-413: Make it possible to mark MachineNode as 'sheduled for maintenace'"
2016-07-14 14:36:40 +03:00
Mykola Morhun
c22e77d21c
CODENVY-413: Add new parameters to build docker image method
...
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-07-14 10:00:37 +03:00
Alexander Garagatyi
a7e9aeaadd
Add improvements in docker machine creation code
...
Simplify and cleanup DockerInstanceProvider class.
Cleanup the code.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-12 10:29:37 +03:00
Igor Vinokur
c6b3c7f6aa
Fix bug when codenvy/ubuntu_jdk8 image is removed
...
When we creating machine not from recipe, but from local image,
the image will be removed after machine is created. So if user
creates a machine from codenvy/ubuntu_jdk8 image, the image will be
removed.
In the step of creating a snapshot from machine I have added a special
prefix to image repository to mark this image as snapshot.
In the step of creating machine (recovering from snapshot) I have
added two checks:
do not pull if image is a local snapshot;
remove source image only if the image is a snapshot from registry.
2016-07-11 13:05:47 +03:00
Roman Iuvshin
99c48dd484
CODENVY-733: add possibility to set JAVA_OPTS for dev machines ( #1685 )
2016-07-08 13:18:47 +03:00
Alexander Garagatyi
0e1d87785d
Fix docker client on some systems ( #1663 )
...
Fix DockerConnector to avoid failing tests on some systems.
Use Future to prevent undefined order of thread execution.
Also change some exception message.
Also cleanup some tests.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-06 11:49:32 +03:00
Yevhenii Voevodin
d1aa2cfed7
User structural refactoring
2016-07-05 11:27:58 +03:00
Aleksandr Andrienko
17612193a0
CHE-1353: Add possibility to configure specific docker api version.
...
Add possibility to configure api version by che.properties. Set minimum default docker api version 1.20.
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-07-05 11:08:45 +03:00
Alexander Garagatyi
e36a13858e
CHE-1365: code cleanup
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-04 13:09:25 +03:00
Alexander Garagatyi
d666fbda27
CHE-1365: remove deprecated methods from docker client
...
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-04 13:09:25 +03:00