Commit Graph

404 Commits (f238405ef55064c7fb7c387ed133e101540da660)

Author SHA1 Message Date
Kaloyan Raev 5bb51e0344 Fix for using the official mysql image in composite stacks (#3049)
* Avoid passing empty array for command and entrypoint to Docker API
* Use official mysql docker image in the java-mysql stack

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-12-20 16:17: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
Roman Iuvshin 7850cc2908 [maven-release-plugin] prepare for next development iteration 2016-12-07 12:34:30 +00:00
Roman Iuvshin 1c15a44844 [maven-release-plugin] prepare release 5.0.0-M8 2016-12-07 12:34:25 +00: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
Igor Vinokur c91257f46b CODENVY-657: Do not log SourceNotFoundException (#3084) 2016-11-22 22:55:25 +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
Roman Iuvshin 52f84d9092 [maven-release-plugin] prepare for next development iteration 2016-11-10 11:37:24 +00:00
Roman Iuvshin 315056731e [maven-release-plugin] prepare release 5.0.0-M7 2016-11-10 11:37:20 +00: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
Roman Iuvshin 825af31a5d [maven-release-plugin] prepare for next development iteration 2016-10-26 09:37:49 +00:00
Roman Iuvshin 7da1d4a910 [maven-release-plugin] prepare release 5.0.0-M6 2016-10-26 09:37:45 +00: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
Roman Iuvshin b986091e4a [maven-release-plugin] prepare for next development iteration 2016-10-07 10:22:41 +00:00
Roman Iuvshin 8f799b4c28 [maven-release-plugin] prepare release 5.0.0-M5 2016-10-07 10:22:37 +00: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
Roman Iuvshin 33944c6ec1 set M5 version 2016-09-27 16:08:19 +03:00
Roman Iuvshin 152be21b4f [maven-release-plugin] prepare for next development iteration 2016-09-26 14:19:41 +00:00
Roman Iuvshin 89ab012035 [maven-release-plugin] prepare release 5.0.0-M3 2016-09-26 14:19:37 +00: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
Roman Iuvshin 900ccbb807 set M3 version 2016-09-20 17:31:42 +03:00
Roman Iuvshin 3c1df2e4ad [maven-release-plugin] prepare for next development iteration 2016-09-14 15:50:20 +00:00
Roman Iuvshin b647b5eef7 [maven-release-plugin] prepare release 5.0.0-M1 2016-09-14 15:50:16 +00: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
Roman Iuvshin 8df0560ad3 set new version 2016-09-07 10:38:51 +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
Roman Iuvshin ca14fc7470 [maven-release-plugin] prepare for next development iteration 2016-08-29 15:12:16 +00:00
Roman Iuvshin 36311ea4c8 [maven-release-plugin] prepare release 4.7.0 2016-08-29 15:12:12 +00: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
Roman Iuvshin 813b36851c [maven-release-plugin] prepare for next development iteration 2016-08-16 08:28:05 +00:00
Roman Iuvshin ef38dd5fb2 [maven-release-plugin] prepare release 4.7.0-RC1 2016-08-16 08:28:02 +00: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
Roman Iuvshin 99b6beb356 [maven-release-plugin] prepare for next development iteration 2016-08-01 10:32:16 +00:00
Roman Iuvshin 3a0fd2a00c [maven-release-plugin] prepare release 4.6.0 2016-08-01 10:32:13 +00: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
Roman Iuvshin f9369146c1 [maven-release-plugin] prepare for next development iteration 2016-07-18 13:58:51 +00:00
Roman Iuvshin b6795f1a9a [maven-release-plugin] prepare release 4.5.0 2016-07-18 13:58:48 +00: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
Alexander Garagatyi e0888f697e Fix arrays hashcode evaluation (#1670)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-06 11:10:14 +03:00
Alexander Garagatyi e9dbf0f341 Fix docker system info model class. (#1662)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-06 10:20:48 +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 a0820fb81d CHE-1365: add possibility to provide remote docker build context
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
Alexander Garagatyi bacdc0a4fc CHE-1365: add docker networking API
Add networking API to docker client.
Change JSON serialization/deserialization in docker client to
fix incorrect naming policy work of JsonHelper.
Fix entrypoint field in ContainerConfig since it is array of
strings, not single string.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-04 13:09:25 +03:00
Mykola Morhun 7ee4e79db1 add missing license header
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-07-02 11:13:39 +03:00
Mykola Morhun 05aeec9045 CHE-277: Put logs of main process of machine to machine logs
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-07-02 10:31:44 +03:00
Alexander Garagatyi 8108d6a675 Fix integration test on latest ubuntu (#1623)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-07-01 12:33:46 +03:00
Mykola Morhun c3c5c24753 CODENVY-606: fix NPE in DockerInstanceStopDetector
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-07-01 11:30:12 +03:00
Mario Loriedo 39fa37f0d3 Improvements to set the right API endpoint URL (#1576)
Read env variable CHE_API_ENDPOINT if property machine.docker.che_api.endpoint is not set
Set Che host IP to eth0 default IP when docker0 is not found on linux
Fixing typos

Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2016-06-30 17:00:48 +03:00
Roman Iuvshin 6a23f97700 [maven-release-plugin] prepare for next development iteration 2016-06-28 16:00:40 +00:00
Roman Iuvshin 400648e1db [maven-release-plugin] prepare release 4.4.0 2016-06-28 16:00:37 +00:00
Anton Korneta 9c25cdef20 CHE-1276: Fix test by extracting statuc to the variable 2016-06-27 16:03:01 +03:00
Anton Korneta 0e1ada8c5f CHE-1276: Fix closing of the docker response stream 2016-06-27 15:19:03 +03:00
Anton Korneta ec461af679 CHE-1276: Add exception handler during creation machine from snapshot 2016-06-27 13:44:28 +03:00
Aleksandr Andrienko 0eb87b8fab Merge pull request #1544 from eclipse/CHE-1312
CHE-1312: Add ability to configure credentials for several docker private registries
2016-06-24 10:39:14 +03:00
Aleksandr Andrienko a7c492ea8d Impove code. 2016-06-23 16:15:05 +03:00
Mario Loriedo 14e6d4a8e3 Add HTTP Host header to support Docker v1.12 (#1550)
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2016-06-23 10:09:40 +03:00
Aleksandr Andrienko c49c6713e1 CHE-1312: Add ability to configure credentials for several docker private registries 2016-06-22 12:34:25 +03:00
Mykola Morhun 1176f4192e CHE-1296: ​​Use docker auth config saved in user preferences to start machine from private image
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-06-21 17:10:42 +03:00
Roman Nikitenko 9eb51b41d9 CHE-1264. Don't include CR char in log message when LF char follow
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2016-06-21 10:37:18 +03:00
Eugene Ivantsov 3ba68b1d00 Add Z suffix to override ws agent conf on RHEL systems
Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
2016-06-21 09:47:14 +03:00
Mykola Morhun bfc64d50c8 Improve code which works with docker authentication
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-06-15 12:17:12 +03:00
Roman Iuvshin 5adff554bc [maven-release-plugin] prepare for next development iteration 2016-06-13 18:57:39 +00:00
Roman Iuvshin e9f5d4971e [maven-release-plugin] prepare release 4.3.0 2016-06-13 18:57:36 +00:00
Mykola Morhun 88aa82811b CHE-1245: Update docker client to use new format of X-Registry-Config header
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-06-12 14:46:11 +03:00
Sergii Leschenko 42690da407 CODENVY-480 Remove user's roles (#1336) 2016-06-10 17:32:02 +03:00
Igor Vinokur deac6b5536 CODENVY-608: Close output consumer on destroy machine 2016-06-10 11:34:01 +03:00
Roman Iuvshin d9c2e72565 Fix integer overflowing 2016-06-08 17:11:17 +03:00
Roman Iuvshin 477e71533f CODENVY-595: add possibility to adjust machine swap size 2016-06-08 12:03:55 +03:00
Roman Iuvshin e50cd7b209 CODENVY-610: add possibility to set no_proxy ENV var in machine
Signed-off-by: Roman Iuvshin <riuvshin@codenvy.com>
2016-06-06 22:56:32 +03:00
Alexander Garagatyi 21277eeb57 Fix docker image reference parsing by DockerImageIdentifierParser (#1420)
Parsing used to use reference definition from docker repo, but
fails in some very simple cases.
Rework parsing. Add comments. Add tests.

Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-06-06 10:52:02 +03:00
Roman Iuvshin 140b09a9a0 [maven-release-plugin] prepare for next development iteration 2016-06-04 19:52:26 +00:00
Roman Iuvshin fbd9f95748 [maven-release-plugin] prepare release 4.3.0-RC1 2016-06-04 19:52:23 +00:00
Anton Korneta 8d26c71935 CHE-1275: Add api endpoint property into each non dev machine environment 2016-06-02 16:54:23 +03:00
Florent BENOIT ae4c5521bf CODENVY-560 : Introduce new type for providing docker recipes and remove InstanceKey
#1 new docker recipe type

currently we have type:"dockerfile", location: "http://path-to-recipe"

now we could provide
type:"dockerfile", content: "FROM codenvy/foo\nENV FLORENT=TRUE\"

and
type:"image", location or content: "codenvy/foo"

#2 InstanceKey
Up to now, InstanceKey was used to perform snapshot recovery.
But machine source is a way to provide this information.
So remove InstanceKey and replace it by MachineSource (and DockerMachineSource instead of DockerInstanceKey)

InstanceProvider:
void removeInstanceSnapshot(InstanceKey instanceKey)
--> void removeInstanceSnapshot(MachineSource machineSource)

Instance:
InstanceKey saveToSnapshot(String owner)
--> MachineSource saveToSnapshot(String owner)

#3 InstanceProvider model
To avoid also that MachineManager "knows" the inner type, the recipe handling is moved to the instance provider implementation
And as the snapshot handling is with MachineSource (included in MachineConfig included in Machine), no need to give extra InstanceKey parameter

Replace two previous methods

Instance createInstance(Recipe recipe,
                            Machine machine,
                            LineConsumer creationLogsOutput)

 Instance createInstance(InstanceKey instanceKey,
                            Machine machine,
                            LineConsumer creationLogsOutput) throws NotFoundException, InvalidInstanceSnapshotException, MachineException;

by only one:
   createInstance(Machine machine,
                            LineConsumer creationLogsOutput)

Change-Id: Ia7ea97bc1a44059b4892f5db387f54f2e1709fa3
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-05-30 14:51:41 +02:00
Sergii Leschenko 862e971fac Move EnvironmentContext to che-core-api-core 2016-05-27 14:12:43 +03:00
Anton Korneta e868d80649 CHE-398: Add ability to create local machine snapshots without registry 2016-05-27 11:04:28 +03:00
Mykola Morhun d1362c6709 Remove wrong required parameters in DockerConnector methods params
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-05-26 15:49:37 +03:00
Aleksandr Andrienko b99c5e2ced Fix cleaning docker containers
Fix clean up unused docker containers with container name which contains node host with '-'

Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-05-24 22:22:19 +03:00
Alexander Garagatyi e900dab322 CODENVY-457: fix NPE when swarm doesn't detect container death (#1346)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-05-24 17:42:13 +03:00
Anton Korneta ea7d068fe7 Separation of components to allow overrides in codenvy 2016-05-20 13:53:43 +03:00
Alexander Garagatyi 75db032dd7 Allow override terminal run command (#1271)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-05-17 09:59:41 +03:00
Sergii Leschenko d4ff792f24 CODENVY-479 Rename User to Subject (#1258) 2016-05-16 15:41:09 +03:00
Aleksandr Andrienko ce1fe4f042 Rename methods for creation docker connector params from 'from' to 'create
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-05-13 10:25:12 +03:00
Vitaly Parfonov 826353e6ab CHE-781:Move all platform-api-client-gwt to the che-core-ide-api module
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-05-12 09:31:10 +03:00
Aleksandr Andrienko 0aa802d758 CODENVY-212: Add DockerContainerCleaner for clean up docker containers
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-05-11 00:19:10 +03:00
Artem Zatsarynnyi 07d341f4e3 CHE-390: Simplify Editor API (#1197)
* CHE-390: Simplify Editor API by adding abstract EditorProvider

* Remove unused EditorTypeMapping

* Remove obsolete, useless classes

* Remove editor types

* Fix typo in interface name

* Remove EditorAdapter

* Refactor: EmbeddedTextEditorPresenter -> TextEditorPresenter

* Refactor code

* Clean-up

* Remove mime-types

* Refactor JsEditor

* Remove redundatnd dependency

* Rename codenvyDefaultEditor -> cheDefaultEditor
2016-05-06 16:54:34 +03:00
Mykola Morhun 95a4f192ce CHE-253: Refactor Che docker client to be able to add new parameters without breaking code dependent on docker client
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-05-04 09:32:03 +03:00
Vitaly Parfonov 2c41214725 Features:
Maven plugin
Classpath configuration
Effective pom
Plain java plugin

Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-04-29 15:32:24 +03:00
Max Shaposhnik 4bd95c8667 CHE-1065 CHE-1066 CHE-1067 CHE-1068 Decouple shared modules or user, machine, workspace, factory (#1146) 2016-04-28 11:16:38 +03:00
Alexander Garagatyi 905ce9998d add logging of OOM of not PID1 processes in docker containers (#1135)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-04-26 18:10:18 +03:00
Mihail Kuznyetsov 0f34e13b67 CODENVY-349 Rename workspace agent packaged war name 2016-04-26 16:52:02 +03:00
Alexander V 1dbb9d7c3e Optimazing builder's implementation (#1113)
Signed-off-by: <alextrentton@gmail.com>
2016-04-26 10:05:51 +03:00
Roman Iuvshin 0978f5c655 [maven-release-plugin] prepare for next development iteration 2016-04-25 16:08:21 +00:00
Roman Iuvshin b0df01a0c1 [maven-release-plugin] prepare release 4.2.0 2016-04-25 16:08:18 +00:00
Alexander Garagatyi eb55f0cd4b Add logging to improve maintainability (#1117)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-04-22 16:34:00 +03:00
Alexander Garagatyi 8fc806c25a CHE-1037: fix pulling of docker images (#1106)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-04-21 14:42:11 +03:00
Alexander Garagatyi fd8c5f8ce6 CHE-1039: add ability to bind additional folder to docker dev machine (#1105)
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-04-21 12:11:56 +03:00
Mykola Morhun c3484fae14 Add missing license
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-04-20 13:11:21 +03:00
Mykola Morhun 6af1eaf890 CODENVY-350: Set up workspaces to work behind the proxy
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-04-20 12:30:13 +03:00
Alexander Garagatyi 9a36823044 Merge pull request #1082 from eclipse/CHE-995
CHE-995: discover ssh machines architecture automatically
2016-04-20 11:25:16 +03:00
Mykola Morhun a5244958d5 CODENVY-350: Set up workspaces to work behind the proxy
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-04-20 11:01:07 +03:00
Alexander Garagatyi 3f89306d76 CHE-995: discover ssh machines architecture automatically
Discover ssh machines architecture automatically.
Remove beta field in machine conf that provides architecture.
Move server-side classes to appropriate package.
Removed workarounds in ssh client and properly wait until command finishes.

Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-04-20 10:44:50 +03:00
Vitaly Parfonov 91f6a64e14 Remove usage of MachineExtensionProxyServlet
Add path to wsagent into wsagent server url to avoid doing that on client-side
Add class DevMachine on client-side what contain all needed information for communicate with wsagent and terminal
Remove @Named(cheExtensionPath)

Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-04-18 15:22:57 +03:00
Aleksandr Andrienko 7133c7010b CHE-721: Fix docker authentication error log on create workspace
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-04-14 09:17:37 +03:00
Alexander Garagatyi 4b155fa57a CHE-889: add ssh machine implementation
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-04-13 18:21:15 +03:00
Mykola Morhun 092edc7c7d Merge pull request #1013 from eclipse/CODENVY-211
CODENVY-211: Provide configuration parameter to enable docker privileged mode
2016-04-12 11:25:40 +03:00
Yevhenii Voevodin eeed06de2a Adapt terminal binary name 2016-04-11 17:43:44 +03:00
Mykola Morhun 155ff602b8 CODENVY-211: Provide configuration parameter to enable docker privileged mode
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-04-11 15:46:20 +03:00
Roman Iuvshin 0344d76167 [maven-release-plugin] prepare for next development iteration 2016-04-08 16:43:02 +00:00
Roman Iuvshin d66d35f08a [maven-release-plugin] prepare release 4.1.0 2016-04-08 16:42:59 +00:00
Yevhenii Voevodin 481c65f5cd CHE-718: Adapt all the infrastructure to the API changes 2016-04-01 18:44:31 +03:00
Dmitry Shnurenko 86a86583c3 CHE-261: Remove /local-storage folder from dev machine in Che 2016-04-01 18:09:08 +03:00
Eugene Ivantsov dbf39f4224 Remove unused property
Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
2016-03-31 12:27:21 +03:00
Roman Iuvshin fc58fffb23 [maven-release-plugin] prepare for next development iteration 2016-03-29 14:27:19 +00:00
Roman Iuvshin a7e3a0c71b [maven-release-plugin] prepare release 4.0.0 2016-03-29 14:27:16 +00:00
Roman Iuvshin 9c8213cd3e Remove GA label 2016-03-24 23:43:00 +02:00
Dmitry Shnurenko e99c5cbd04 Revert "CHE-708: Add CORS Filter" 2016-03-24 13:12:30 +02:00
Dmitry Shnurenko 3a8b1c6d6d CHE-708: Add CORS filter. Remove MachineExtensionProxyServlet 2016-03-24 10:17:29 +02:00
Roman Iuvshin 7785d6e8d1 [maven-release-plugin] prepare for next development iteration 2016-03-23 14:12:01 +00:00
Roman Iuvshin adafe11189 [maven-release-plugin] prepare release 4.0.0-RC14 2016-03-23 14:11:58 +00:00
Mykola Morhun b6d509ea78 CHE-312: Remove existing docker snapshot when creating new one
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-03-23 12:12:11 +02:00
Alexander Garagatyi 4603f450c5 CHE-657: fix generation on docker container name
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-03-22 09:45:35 +02:00
Mykola Morhun 2fd2670a51 Merge pull request #733 from eclipse/CODENVY-262
CODENVY-262: Delete containers which left after build with fail
2016-03-17 12:53:22 +02:00
Alexander Garagatyi 2cf84acc87 CHE-741: change model of machine server conf and runtime server
Add field 'path' to machine server conf.
Add fields 'path', 'protocol' to runtime machine server.
Field 'url' of runtime machine server now includes path if path is
not null.

Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-03-17 12:12:50 +02:00
Mykola Morhun e06f75698e CODENVY-262: Delete containers which left after build with fail
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-03-17 09:01:07 +02:00
Aleksandr Andrienko 6ead53844d CHE-379: Merge Setting and Preferences widget.
Change client side for merging Settings and Preference widgets. Changed Settings widget for store java compiler preferences for the current workspace. Add methods to CompilerSetupService for storage error/warning java compile preferences in the workspace scope.

Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-03-16 01:27:42 +02:00
Eugene Ivantsov f0015b46ed Add :Z suffix when mounting workspace project sources 2016-03-15 09:28:25 +02:00
Vitaliy Guliy 9f67748457 CHE-396 Rename perspective and Workspace agent
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
2016-03-14 14:11:14 +02:00
Alexander Garagatyi 1cc53f05e4 CHE-457: add servers conf and env vars to model of machine config.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-03-11 13:11:17 +02:00
Anton Korneta 116cb33f3b CODENVY-26: Fix stream closing before it is direct use 2016-03-11 10:18:19 +02:00
Roman Iuvshin 725c149608 [maven-release-plugin] prepare for next development iteration 2016-03-09 19:31:24 +00:00
Roman Iuvshin f491a9692b [maven-release-plugin] prepare release 4.0.0-RC13 2016-03-09 19:31:22 +00:00
Mykola Morhun bf1f449f9f Merge pull request #635 from eclipse/CHE-367
CHE-367: Return websocket URL of extension server when a workspace is launched
2016-03-07 12:29:26 +02:00
Roman Iuvshin 485da69940 [maven-release-plugin] prepare for next development iteration 2016-03-06 17:22:54 +00:00
Roman Iuvshin 15571e4039 [maven-release-plugin] prepare release 4.0.0-RC12 2016-03-06 17:22:50 +00:00
Mykola Morhun 13bdb085d7 CHE-367: Return websocket URL of extension server when a workspace is launched
Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
2016-03-04 15:17:50 +02:00
Roman Iuvshin 17c07f31b7 [maven-release-plugin] prepare for next development iteration 2016-03-03 20:06:01 +00:00
Roman Iuvshin 31194172ac [maven-release-plugin] prepare release 4.0.0-RC11 2016-03-03 20:05:58 +00:00
Eugene Ivantsov 27cdc63bbd Add Z suffix to fix mounting issues on Fedora with SELinux enabled
Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
2016-03-03 10:44:51 +02:00
Roman Iuvshin 7cf7c09cc2 [maven-release-plugin] prepare for next development iteration 2016-03-02 20:25:05 +00:00
Roman Iuvshin 1981202585 [maven-release-plugin] prepare release 4.0.0-RC10 2016-03-02 20:25:02 +00:00
Roman Iuvshin bbeeb21bfe [maven-release-plugin] prepare for next development iteration 2016-03-01 19:42:14 +00:00
Roman Iuvshin 8ca2ca16bf [maven-release-plugin] prepare release 4.0.0-RC9 2016-03-01 19:42:11 +00:00
Alexander Garagatyi 5274858e74 fix NPE because of incorrect usage of firstNonNull
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-03-01 12:21:23 +02:00
Alexander Garagatyi 4f1d9708d1 CHE-275: rename DOCKER_MACHINE_HOST to CHE_DOCKER_MACHINE_HOST
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-03-01 10:48:27 +02:00
Roman Iuvshin 3190022814 [maven-release-plugin] prepare for next development iteration 2016-02-28 19:34:00 +00:00
Roman Iuvshin d8964d886b [maven-release-plugin] prepare release 4.0.0-RC8 2016-02-28 19:33:57 +00:00
Roman Iuvshin 51c785523a [maven-release-plugin] prepare for next development iteration 2016-02-25 20:37:09 +00:00
Roman Iuvshin a3030e1c4d [maven-release-plugin] prepare release 4.0.0-RC7 2016-02-25 20:37:06 +00:00
Igor Vinokur de84bc7bc9 CHE-10: Set memory limits in build phase of Dockerfile
Signed-off-by: Igor Vinokur <ivinokur@codenvy.com>
2016-02-25 10:57:03 +02:00
Eugene Ivantsov c20b467ced Fixed tests
Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
2016-02-22 11:22:23 +02:00
Eugene Ivantsov 12a3268c71 Fall back to unix socket on Linux if DOCKER_HOST is malformed
Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
2016-02-22 10:55:23 +02:00
Alexander Garagatyi fbba82fe9c Merge pull request #350 from eclipse/IDEX-4222
IDEX-4222: Change model of machine & workspace
2016-02-20 16:44:41 +02:00
Roman Iuvshin 63b08fab17 [maven-release-plugin] prepare for next development iteration 2016-02-20 14:03:35 +00:00
Roman Iuvshin aaf82c04f8 [maven-release-plugin] prepare release 4.0.0-RC6 2016-02-20 14:03:33 +00:00
Alexander Garagatyi b3b38f890a IDEX-4222: Change model of machine & workspace
Machine model changes:
- MachineState was removed, Machine should be used instead
- Machine states API was removed
- Machine includes MachineConfig as field instead of extending it
- All runtime information of machine is in runtime field of Machine.
- Now API call GET */api/machine?workspace=ws-id123456* returns all existing machines of workspace,
including machines with status CREATING, DESTROYING
- Machine channels was removed from. To get channels clients should check links of WorkspaceConfigDto.

Workspace model changes:
- EnvironmentState was removed
- UsersWorkspace includes WorkspaceConfig as field instead of extending it
- Start tmp workspace API returns RuntimeWorkspace instead of UsersWorkspace
- Machine channels are included in links of MachineConfigDto of WorkspaceConfig. Don't try to find them
in runtime machines of RuntimeWorkspaceDto.
- Field activeEnvName in RuntimeWorkspace was renamed to envName in accordance with defaultEnv field
of WorkspaceConfig.

Also:
- add static method cloneDto to DtoFactory
- add getParameter(paramName) method to DTO Link to simplify parameter retrieval

Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-02-20 15:16:21 +02:00
Alexander Garagatyi d9cb7ddb00 CHE-9: improve error messages from Docker API
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-02-19 12:03:56 +02:00
Roman Iuvshin ad56beaac6 [maven-release-plugin] prepare for next development iteration 2016-02-18 20:05:33 +00:00
Roman Iuvshin 5fb393830a [maven-release-plugin] prepare release 4.0.0-RC5 2016-02-18 20:05:30 +00:00
Alexander Garagatyi bc32aac6da Codenvy-123: fix machine snapshot creation after changes in swarm API
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-02-18 18:19:03 +02:00
Roman Iuvshin 884ffda155 fix lincense headers 2016-02-17 20:58:39 +02:00
Alexander Garagatyi e9308608ea Merge pull request #384 from eclipse/CHE-345
CHE-345: allow offline machine creation
2016-02-17 17:46:09 +02:00
Alexander Garagatyi 342248f909 CHE-345: allow offline machine creation
Do not fail docker machine creation if registry is not reachable but needed image exists locally

Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2016-02-17 16:31:45 +02:00
Dmitry Shnurenko 671c46ff22 CHE-85: Fix identical machines names for different machines
Signed-off-by: Dmitry Shnurenko <dshnurenko@codenvy.com>
2016-02-16 17:48:29 +02:00
Roman Iuvshin 21ff9deb3d [maven-release-plugin] prepare for next development iteration 2016-02-15 21:12:20 +00:00
Roman Iuvshin 84a7e5af2b [maven-release-plugin] prepare release 4.0.0-RC4 2016-02-15 21:12:15 +00:00
Sergii Kabashniuk f325949cbc Set up maven build of core, plugins, dashboard, assembly
Added maven build of submodules.
Removed duplicated resources
CODE_OF_CONDUCT, CONTRIBUTING, Dockerfile, LICENSE, NUMBERING, README - all move to root please.
Set up default maven JVM config
Moved dependency management from che-dependcies for che dependencies. Theard party dependecies left in che-dependecies
Removed unused travis cunfigs
Removed outdated scm configs

Signed-off-by: Sergii Kabashniuk <skabashnyuk@codenvy.com>
2016-02-12 09:47:39 +02:00
Sergii Kabashniuk 2795099d2b Added difference between IC and master
Signed-off-by: Sergii Kabashniuk <skabashnyuk@codenvy.com>
2016-02-12 09:47:38 +02:00
Eclipse Che Initial Contribution 867ec65242 Eclipse Che Initial Contribution 4.0.0-RC2 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=9458
Signed-off-by: Sergii Kabashniuk <skabashnyuk@codenvy.com>
2016-02-12 09:47:36 +02:00