Commit Graph

38 Commits (7c329ae63fc01deeeb6267b5d4e2fc28886b97ee)

Author SHA1 Message Date
Tyler Jewell c5118908f3 [cli] Version command fix, add :/assembly mount option (#3835)
* version fix
* add assembly mount option
* move library
* port check
2017-01-22 09:31:39 -08:00
Florent BENOIT 606f6aff47 [cli] #3666 do not hardcode version of utilities images to nightly (#3751)
1. : we have `images-bootstrap` file inside the base image (with variable named BOOTSTRAP_IMAGE_*)  . For example BOOTSTRAP_IMAGE_ALPINE and BOOTSTRAP_IMAGE_CHEIP
2. : `images` file (with variable named IMAGE_*) (we have this file currently)
3. : `images-utilities` file (with variable named UTILITY_IMAGE_*) inside the base image For example UTILITY_IMAGE_CHEDIR

then we can apply the required policies
1. all images of images-bootstrap are loaded when we bootstrap cli
2. all images of images are loaded after bootstrap
3. all utilities images are pulled when one of them is asked


- removes all previous calls to the get_image_manifest as it’s performed by cli once. (In the past it was in another docker image but now it’s a local file parsing)
- update offline and rmi commands

* Update log (turn into log when it’s not needed for user)

Linked to #3666 and #3667

Change-Id: I83fc64c019f3d6deef3118e75a83693bb3d82175
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-22 14:47:28 +01:00
Marián Labuda c32d871f02 New tests for CLI, refactoring of CLI scripts, fix destroy cmd (#3700)
* New tests for CLI, refactoring of CLI scripts, fix destroy cmd

Signed-off-by: mlabuda <mlabuda@redhat.com>
2017-01-20 06:54:36 -08:00
Florent BENOIT 47ed4a85dc Fix codenvy 1562 : We can execute commands on remote side so we shouldn't check state of the local server (which is BTW checked by the command itself) (#3825)
Change-Id: I4ab90b19e5d060d4518ca26c93810df81be67d81
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-20 05:23:38 -07:00
Tyler Jewell 9a6118ca31 initial (#3800) 2017-01-18 14:29:40 -08:00
Florent BENOIT 59f5da27d1 [cli] Fix #3655 : Check docker-compose file validity, result of docker-compose up and containers (#3731)
* Fix #3655 : Check docker-compose file validity, result of docker-compose up command and also check each container of docker-compose services if they’re running or not

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

* fixup! Fix #3655 : Check docker-compose file validity, result of docker-compose up command and also check each container of docker-compose services if they’re running or not

Change-Id: I91f0298aaaa3c547925989f964a8d2c38f6393d3
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-17 06:47:29 -07:00
Tyler Jewell 5b76f1aa8a Fix bug in CLI Output if user has overridden CHE_HOST (#3749)
* added utility function
2017-01-16 09:28:23 -08:00
Florent BENOIT 64e3872309 Fix init command (#3747)
Change-Id: I4aed2afbe8952649a78ba08ed6422de55b65516d
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-16 07:30:01 -07:00
Florent BENOIT aee9f91ad5 SAAS-101 : mount repository init files only if they're part of the repository. Else keep files from the image (#3691)
Also, use of directory mode for manifests file instead of specifying a given pp file. It allows to add more pp files

Change-Id: Ib9ad459b5a24e59eefc5c41a163534abcab7a9ae
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-16 03:49:34 -07:00
Roman Iuvshin 3c19c10abe allow skip backup on upgrade (#3728) 2017-01-15 01:38:58 +02:00
Roman Iuvshin 2eed6e14c0 Update cli-functions.sh (#3732)
* check digests
2017-01-14 23:29:21 +02:00
Tyler Jewell a425a94f90 port fix (#3734) 2017-01-14 07:45:10 -08:00
Roman Iuvshin fa561a1577 revert back pulling CLI if local image older than 24h (#3695)
* revert back pulling CLI if local image older than 24h
2017-01-12 18:33:35 +02:00
Roman Iuvshin f7ca10c86a revert cli nightly image check (#3688)
* revert cli nightly image check
2017-01-12 13:16:32 +02:00
Roman Iuvshin f684f4fc7d fix cli tty issue (#3683)
* fix cli tty issue
2017-01-12 01:23:48 +02:00
Florent BENOIT 21c03cd1f4 Fix #3668: Add back isConfigured by checking if instance folder has been configured or not. Also enable the way of upgrading from a milestone to a stable version (#3682)
For now 5.0.0 was handled as being < 5.0.0-M9 for example.

Change-Id: I417415e520a3b447d621521fb52b368d7216a46d
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-11 13:55:31 -07:00
Tyler Jewell b82210c763 CLI improvements for handling of nightly images (#3671) 2017-01-11 08:37:26 -08:00
Tyler Jewell 5fb39899ac Che CLI Refactoring (#3646)
* syntax
2017-01-10 06:53:21 -08:00
Tyler Jewell cfc39c2f70 CLI - Separate debugging apart from local repo (#3581) 2017-01-05 05:25:52 -08:00
Mario Loriedo 39416e19a0 Minor dockerfiles build fixes
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2017-01-04 10:13:51 +01:00
Roman Iuvshin 7472e653d9 fix cli dev mode (#3534) 2016-12-28 10:59:55 +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
Tyler Jewell a1526c2cf0 Improve CLI Boot Speed (#3424) 2016-12-19 09:24:07 -08:00
Florent BENOIT d1d13a15f2 Compare date but by having a period of 1hour as created date and published date are not the same (some time is elapsed before publishing an image locally (transfer time) (#3404)
Change two lines to a single line
Instead of "local is older", display that "a newer version is available"

exact message is : "WARN: There is a newer eclipse/che-cli:nightly image on DockerHub."
Fix CODENVY-1235

Change-Id: I80bb2f8c48995b5dd06ecd3cff84009b76fceee7
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-16 00:25:33 -07:00
Tyler Jewell e7f56ac457 CLI Improvements (#3394)
* update offline folder
* move to docker 1.11
* offline mode
2016-12-15 06:04:28 -08: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 0631d8b1cc Fix for sync, test, action and ssh commands (#3373)
Change-Id: I1a223d388c8966b84e51190c723ac66bacdfa268
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-14 00:09:10 -07:00
Max Shaposhnik 15d44a18d4 Fixup formatting 2016-12-13 19:01:46 +02:00
Tyler Jewell 7c59468fd6 CLI Fixes - Proxy, Native Mode (#3360)
* fix proxy

* fixup

* fixup! fixup

* fixup

* fixup! fixup! fixup
2016-12-13 08:57:38 -08:00
Eugene Ivantsov 0b9ae2a091 Remove unnecessary -ti (#3364)
* Remove unnecessary -ti

Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>

* Remove unnecessary -ti

Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
2016-12-13 12:44:09 +02:00
Florent BENOIT 5be04c1775 Display always a newline if user enter y
if "n" then we don't display a newline

Change-Id: Ia936faa261659443250e1ad7ccf3fc460c3d1215
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-13 01:34:27 -07:00
Florent BENOIT 75e18f6b9e When reading input, check if it works or not
Change-Id: I7cc57b7310de4c3259f2196cd7c2ba04b98f8fcd
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-13 01:34:27 -07:00
Florent BENOIT 12191665f3 - Compare timestamps for date instead of using string parsing
use the coreutils date binary for that (add coreutils as part of the Dockerfile) which support iso 8601 dates (while busybox default implementation of date is not)

Change-Id: Ifa0d3ff1c88e275d2188a823cb74b449bfefdbd9
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-13 01:34:27 -07:00
Tyler Jewell a86c0c5e65 CLI Fixup (#3345)
* proxy fixup
* offline
* fixup
* remove duplicate
2016-12-12 07:14:15 -08:00
Tyler Jewell 6891668c72 emergency fix 2016-12-08 15:27:00 -08:00
Tyler Jewell 4e013b4c35 Che CLI Improvements (#3301)
* cli improvements
* usage
* docs
* Remove need to mount :/cli
* DNS resolver check
* proxy detection
* export proxy
* Downgrade docker client to 1.10
2016-12-08 11:08:15 -08: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