Commit Graph

97 Commits (1ae65daa509bfaf89cddd877ea896f8ccafa4682)

Author SHA1 Message Date
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 ec461af679 CHE-1276: Add exception handler during creation machine from snapshot 2016-06-27 13:44:28 +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
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
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
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
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
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
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
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
Roman Iuvshin fc58fffb23 [maven-release-plugin] prepare for next development iteration 2016-03-29 14:27:19 +00:00