Commit Graph

34 Commits (b2b0264ab64fdfd99d005f4033e018b93d40ba2d)

Author SHA1 Message Date
Roman Iuvshin b8ffa8048a set nightly versions in dockerfiles 2017-02-17 15:58:23 +02:00
Roman Iuvshin 0e71e71dde RELEASE: set tag versions in dockerfiles 2017-02-17 11:23:02 +02: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 5cf7dad0c8 Rename eclipse/che-cli to eclipse/che but adds previous name with an alias (#3692)
Change-Id: I99bd62739282c0342610012d089fc90b8d1a1caa
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-02-02 10:08:22 +01:00
Florent BENOIT 5554345aae [cli] Fix cli tests by reworking how integration tests are launched (#3991)
* 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>
2017-02-02 09:43:48 +01:00
Roman Iuvshin d1e84cdea5 RELEASE: set nightly versions 2017-02-01 16:32:56 +02:00
Roman Iuvshin 72186fa76e RELEASE: set tag versions 2017-02-01 14:53:13 +02: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 c9e530e41f add system api to DTO handled in Typescript
Change-Id: I1b1f9eecb666f5e3ca989ec0a7b46a3d9330ec67
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 3280d9fc80 enable unit tests by default each time we build the image
Change-Id: Id5ed7cd33c1fe2907dda15918fd2ead158ab544b
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
Roman Iuvshin 688530281e RELEASE: set next development versions 2017-01-18 19:03:38 +02:00
Roman Iuvshin 44703c8616 RELEASE: set tags for release (#3796) 2017-01-18 17:58:03 +02:00
Roman Iuvshin 976f7296bc Update dto-pom.xml (#3702) 2017-01-12 21:36:28 +02: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 940b0bc7bd [dockerfiles] Fix scripts to be compliant with sh (and not only bash) (#3397) 2016-12-15 03:21:12 -07:00
Florent BENOIT fec792deb8 Always use -U to be sure to have the latest changes
Change-Id: Ie217a6f71a2b7c9ff18afbb3b418489d231c6352
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-12 03:32:48 -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
Roman Iuvshin f24f16f725 use M8 tag for che-lib (#3344) 2016-12-10 15:56:59 +02:00
Roman Iuvshin e7befbacc3 set nightly versions for M9-SN iteration (#3315)
* set nightly versions for M9-SN iteration
2016-12-07 20:11:16 +02:00
Roman Iuvshin 3896cb0d3b RELEASE: set tag versions (#3306) 2016-12-07 14:04:46 +02: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
Tyler Jewell b0019183d8 move files (#2220) 2016-08-25 08:39:32 -07:00
Florent BENOIT 341a9b4a13 #1895 codenvy/che-file improvements (#2048)
* #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
2016-08-25 16:13:26 +02:00
Florent BENOIT fb82bf80b9 Continue work on #1895
- 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>
2016-08-04 08:40:17 +02:00
Florent BENOIT 0be2173cce Bunch of changes for allowing to build on CI with Docker/Linux
Change-Id: I1e7c20bd6ff591692bd5e47dfee60094e60b1687
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-08-01 17:01:32 +02:00
Florent BENOIT bc9d96deac Introduce two new docker containers
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>
2016-07-29 18:22:28 +02:00