Commit Graph

33 Commits (69d3480fbffa62b2861d8ca71fbb614aecee3fda)

Author SHA1 Message Date
Innovimax f95511f2ef FIX Typo "doesn't exists" -> "doesn't exist" (#12154)
FIX Typo "doesn't exists" -> "doesn't exist" (#12154)
2018-12-11 09:37:04 +02:00
Mykhailo Kuznietsov dcb00c53d0
Fix remaining files with licenses (#10746) 2018-08-21 10:25:45 +03:00
Max Shaposhnik 2902fc75a4
Refactor remaining everrest websocket endpoints to use Json RPC (#8388) 2018-01-24 16:17:00 +02:00
Max Shaposhnik 5c357bc8b2
Move image name from location to content field in dockerimage recipes (#8076) 2018-01-02 10:57:57 +02:00
Florent BENOIT 7844079d4f Use messagebus instead of json rpc bus for system calls. It seems it's not yet handling RPC on that part.
Change-Id: I3e66b10708d9e72757fd424f587ff7e36c972d09
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-12-21 10:24:58 +01:00
Florent BENOIT 419824c9d3 Fix compilation of typescript library with breaking changes not reported to the client
like removing websocket and using RPC, moving api calls, splitting URL for exec agent and ws agent, etc.

Change-Id: Ib9ece74537afb648077fafde00921d078d8b995a
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-12-13 13:40:59 +01:00
Oleksandr Garagatyi cd1301d115 CHE-6124: Do not publish exposed ports in Docker machines
Publish port in Docker machines only in case there is a server
in the workspace config that represents the port.
Refactor OpenShift infrastructure code.
Refactor Docker infrastructure code.
Add constant of memory attribute and reuse it everywhere it is
hardcoded.
Add constant for installer environment attribute and reuse it
everywhere it is hardcoded.
Add machine memory attribute validation to workspace validation.
Move provisioning of servers, environment variables from
infrastructure implementations to runtime SPI abstract level.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2017-10-26 12:10:36 +03:00
Artem Zatsarynnyi 81bce959ce Merge branch 'che-multiuser' into spi 2017-10-02 14:59:55 +03:00
Oleksandr Garagatyi ec72df29ad [WIP] CHE-5893: Adapt CLI to use keycloak openid authentication (#6508)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2017-10-01 12:42:37 +03:00
Artem Zatsarynnyi a552e67a76 Merge branch 'master' into spi 2017-08-17 16:40:48 +03:00
Mykhailo Kuznietsov 69d5148385 Changed copyright owner to "Red Hat, Inc." in license headers (#5964)
Change license header contributor to Red Hat, Inc.
2017-08-11 10:46:58 +03:00
Artem Zatsarynnyi a0656da6b5 Merge branch 'master' into spi 2017-07-19 10:59:07 +03:00
Florent BENOIT 32d3545188 BugZilla 518578 : Let users to use .Chefile in addition to Chefile (#5471)
* BugZilla 518578 : Let users to use .Chefile in addition to Chefile. It allows to use a hidden file format

Change-Id: Ie290a4550ccbdcc9aac64cb0c3bc60ac434a2ed8
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-07-18 09:37:52 +02:00
Artem Zatsarynnyi fa91db1f4e Merge branch 'master' into spi 2017-05-29 11:25:30 +03:00
Yevhenii Voevodin a16ddd31a7 Use Authorization header instead of session-access-key cookie 2017-05-26 17:42:08 +03:00
Gennady Azarenkov 8ad21b4638 SPI messaging and code clean 2017-05-25 21:12:12 +03:00
Gennady Azarenkov 45a0ece9b4 remove old entities 2017-05-16 20:13:57 +03:00
Florent BENOIT f2363aed77 Fix Codenvy issue 1708
Handle host protocol property (and use ssl if defined)

Change-Id: If8a470d7c531087a93ec7d29331a6444d885b88b
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-03-27 18:25:16 +02:00
Alexander Garagatyi 798ca081b4 CHE-4098: separate terminal and exec agents (#4486)
Refactor golang terminal code.
Add ping frames into terminal websocket connection.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2017-03-27 12:27:27 +03:00
Florent BENOIT f1a880735d fix #3967 : replace WSMaster Machine API by Exec Agent calls
Change-Id: I67e9d668516bf634c47e72653086e93ef34d5fe9
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-02-28 12:44:51 +01:00
Florent BENOIT c5dc519619 [cli] Improve UX of graceful shutdown message (#4064)
* Fix #1682 : Improve UX of graceful shutdown message
- base scripts : catch error code of action lifecycle and return it
- cha-lib : return error code based on http error code
- display better message when auth is required
- skip graceful mode when repo is mounted

Change-Id: I1ad021426444b5b4d880df518512e53ef4828336
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-02-13 17:19:11 +01:00
Florent BENOIT 5c7e9a96aa Fix #3988 : graceful stop should work with any system state (#4063)
- RUNNING -> call stop and wait for system to be in READY_TO_SHUTDOWN state
  - READY_TO_SHUTDOWN -> do nothing(maybe print something useful)
  - ANY_OTHER_STATE -> wait for system to be in READY_TO_SHUTDOWN state

Change-Id: I55a8b5ecb2b016d31dbbd95b8793af4952d8116b
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-02-09 08:03:28 +01:00
Florent BENOIT bfd4252cbd Fix #3886 : Introduce graceful stop
if —force is used, then it is the same behaviour than before
else by default a new action graceful-stop is called which calls the /api/system/stop and wait that the remote side is going into “READY_TO_SHUTDOWN” mode.
after that the stop of containers is performed

if auth is required, —user and —password can provide the auth data

Change-Id: Ifea9bd32b0dfd2965e5365bc4ee54eb7c8714fc9
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-31 18:57:45 +01:00
Florent BENOIT 37d7a23ce9 Add TypeScript client side API for /api/system/state and /api/system/stop introduced by https://github.com/eclipse/che/issues/3892
Change-Id: Id131d3b2c334aabb38418213dbc2ac381dba8552
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-31 18:57:45 +01:00
Florent BENOIT cceb965fe5 allow to subscribe to a channel in asynchronous/promise way so we’re sure that channel is subscribed when we subscribe for it
Change-Id: I6b316f1ba2e2391e1793459406664365c095c924
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-31 18:57:45 +01:00
Florent BENOIT 1409ed8a21 Fix #2787 Do not write default values of che.server when writing the default Chefile
Change-Id: I
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-27 14:15:12 +01:00
Florent BENOIT f02be66b95 Chefile: Add support of docker compose file
Change-Id: I9bd7185cb080ddcf77f609c88fd6531d1c75fac2
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-26 18:01:24 +01:00
Florent BENOIT b80179e009 Fix #3704 by handling recipe content as a raw content and handle # for comments correctly
1. Multiline content is escaped by default while it shouldn’t for Dockerfile content.
Users may add “String.raw” but it’s not obvious so add it automatically

2. Handle # comments correctly

Change-Id: Icafb2e790f83b4a62c0c4d29edf2be08cff1a96f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-24 23:44:50 +01:00
Florent BENOIT 373210fdb5 Switch to CLI to launch CHE inside chedir instead of the Che launcher which is not anymore maintained (#3826)
Change-Id: I742383ab47ad34a9d94a4e3ce823e802023062c2
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-20 05:23:13 -07:00
Florent BENOIT 09c1200a66 Use of Chefile in new cli : new 'dir' command (#3413)
* Use of Chefile in new cli : new 'dir' command

Change-Id: Iec4f40cfb503fe60c51d81ef06e07043e102db6a
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>

* Add documentation for che dir in cli
(also update ssh, action and test)

Change-Id: I56198634cb99d301e4f49d69f1eb357787b55af6
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-26 15:47:56 +01:00
Florent BENOIT 3975d6922f When starting docker containers, adds the CHE_* env variables
For action, test and che-dir, improve log output to match the new cli output

Change-Id: I2f7da27f9a9658e2fbc49f3a766593203b172f4d
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-20 06:06:20 -07:00
Florent BENOIT 035c143d78 Fix typescript issue with latest release of TypeScript (2.1.4)
Change-Id: I587deab4884c5aa9b3913fd9d92e5084262ba389
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-12 02:42:03 -07:00
Florent BENOIT a5d0a5e242 - Rename base-cli folder to base (#3255)
- Rename lib-typescript folder to lib
- Update docker image eclipse/che-lib-typescript to be eclipse/che-lib

Change-Id: I878b52853a424f14cdec74074055d52dc8e198fd
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-02 01:41:50 -07:00