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>
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>
* 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>
* 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>
- 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>
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>
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>
* 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>
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>