* 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>
* Fix#3980 by reworking how integration tests are launched
- We used OS path mounted into container path (it makes issues as on Windows we don’t have these paths)
- Now use /dockerfiles path inside the container
- add skip check for nightlies or it was downloading new images while testing the current nightly
- add —rm for cleaning containers at the end of docker run
- introduce of some asserts instead of custom checks
- Fix windows issue (like path with spaces)
- Fix teardown of che start tests
Change-Id: I352d7c475796df641c1e34f461c55a76c897922d
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>
* #1895 use static variables
* #1895 allow to customize ram when creating workspace
* #1895 Rework into promise, also start the workspace, check when workspace is booted and display that data
* #1895 Add che down command
* Continue work on #1895 with introducing set of commands for a workspace
example of Chefile content:
workspace.commands[0] = {commandLine : "mvn clean install -f ${current.project.path}", name : "this is my command", type : "mvn", attributes : {previewUrl : "http://${server.port.8080}/${current.project.relpath}"}}
workspace.commands[1] = {commandLine : "echo hello world", name : "this is hello command", type: "custom"}
* #1895 code cleanup
* Fix#1895 Only convert to JSON if it's a JSON object
* Fix issue on #1895 by using all data that can use chunks
* rename chefile to che-dir
* Add bat scripts for #1895 allowing to compile typescript library and generate docker image
* Add on #1895 the ability to execute docker containers by using same image tag than the one being used on the current container
* #1895 : use stderr to write errors and use stdout to write other outputs
* #1895 replace build-docker-image.* by build.* scripts
* #1895 enable decorators support
* - introduce @Parameter and @Argument decorators to inject command line parameters
- introduce --help/help
- introduce generic class loader for loading test classes
- introduce action and move tests to a dedicated directory
- allow to turn on debug with --logger-debug flag
- introduce user create operation for REST calls
* #1895 : iterate on eth* device to pickup one interface available
* #1895 introduce docker image for actions
* rework start workspace operation to return a promise only updated when workspace is started and also stopWorkspace() is returning promise which only resolve when workspace is stopped
* Add #1895 Introduce Remote calls through JSON Helper class
* Continue #1895 by introducing user and permissions API
Improve error handling
* #1895 change log trace
* #1895 allow to disable prefix log
* #1895 Add actions to add (with option to create it as admin) and remove a user
* #1895 subscribe to web socket before starting workspace
* #1895 handle empty url
* #1895 better http error handling for connection refused
* #1895 handle some error code
* #1895 Add optional --port parameter
* #1895 Remove the lines that start by # in Chefile as it may be comments
* #1895 use auth data login/password if provided without URL
* #1895 drop the use of a binary script to start program
* #1895 allow to avoid to show auth logging
* #1895 use of static constants
* #1895 use of uuid class
* #1895 add new methods to work with workspaces
* #1895 use promise in messages and wait web socket connection is performed
* #1895 allow to call remote commands with an action
* #1895 handle control C
* #1895 allow to write commands with format : command[0].name = , command[0].type = , etc
* #1895 allow to define custom properties to override che launcher properties
* #1895 rework cheboot to be a promise as cheboot script finishes when server is booted (so no need to wait on our own)
* #1895 rework traces
* #1895 handle multiple che up/che down cycle
* #1895 Add che dir status command
* #1895 allow to display custom message based on properties file
* #1895 externalize constants and refactor folder names
* #1895 Use logger for message
* #1895 che.properties file has been moved
* #1895 Allow to execute post-loading commands
* #1895 add debug info
* #1895 add missing commands for windows
* #1895 use Dockerfile from current directory if any
* #1895 reformat strings
* #1895 Change format of Chefile
* #1895 Add --verbose option
* #1895 better error report when parsing invalid Chefile
* #1895 init unit tests
* #1895 remove runtime
* #1895 set server name with UUID
* #1895 rename che-file to che-dir
* perform chmod on the file to be executable
* #1895 Add support for customizing product name
* #1895 rename post load commands into post load actions
with command and script
- Introduce Chefile data with generation and parsing : Allow to customize port number and workspace name for now
- Introduce logger to get same kind of logs than with che-launcher
- Fix documentation
- Improve sh scripts to generate nightly or latest or be started from any directory
Change-Id: I6da278cf1724fbb5a50526a7555e3059477e80fb
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
First one is codenvy/che-test allowing to check a local or remote Eclipse Che instance by creating a workspace, starting it and displaying console output
The other one is codenvy/che-file allowing to boot a local Eclipse Che by using a local directory. It will mount in Che this local folder as being a project.
Change-Id: Ie794b41f89608f86e589f1aeea06d63f0d9f2edc
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>