Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove native launch scripts of Eclipse Che (replaced now by Docker CLI) #3780

Merged
merged 2 commits into from
Jan 24, 2017

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Jan 18, 2017

What does this PR do?

Now, docker CLI is the way to start Eclipse Che so we don't need anymore "native scripts" and Vagrantfile

command to start che is : docker run eclipse/che
to use local binaries : add -v <path-to-che-cloned-directory>:/repo

It was originally made as part of Pull Request #3318
but it has been delayed to get stability on docker CLI and developers using it
#3318 (comment)

What issues does this PR fix or reference?

#2977

Previous behavior

Che was launched with shell scripts or with Vagrant

New behavior

Che is launched with CLI

Tests written?

No

Docs updated?

AFAIK in the docs we don't write how to use these scripts.

Changelog

Remove native launch scripts of Eclipse Che (replaced now by Docker CLI)

Change-Id: I8649830049974043b69f6725480c1799cfe325cd
Signed-off-by: Florent BENOIT [email protected]

@benoitf benoitf added kind/task Internal things, technical debt, and to-do tasks to be performed. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Jan 18, 2017
@benoitf benoitf self-assigned this Jan 18, 2017
@codenvy-ci
Copy link

@benoitf
Copy link
Contributor Author

benoitf commented Jan 18, 2017

adding removal of Vagrantfile as well

@codenvy-ci
Copy link

Build # 1676 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1676/ to view the results.

@benoitf
Copy link
Contributor Author

benoitf commented Jan 19, 2017

ci-build

@codenvy-ci
Copy link

@benoitf
Copy link
Contributor Author

benoitf commented Jan 19, 2017

should I wait more time on the review of this PR ?

@TylerJewell
Copy link

We are ok to merge. However, what if we considered an alternative?

The purpose of the CLI is to have puppet for taking a single configuration and generating an instance configuration. Today, we do that with a single way to ultimately start che which is with eclipse/che-server. But what if we used puppet to generate multiple ways to start Che - through docker-compose and / or native? And then we had some sort of simple flag in the start command to indicate which technique is used to start your che instance.

We could then have templates for generating the native approach for starting che - but you still use the CLI to interface with it.

@benoitf
Copy link
Contributor Author

benoitf commented Jan 19, 2017

We're generating a docker compose file that can be used directly (without cli calls)
Also native is working only on linux so it's not portable

@TylerJewell
Copy link

We could generate a native.sh and a native.bat at the same time. So, theoretically this would be possible.

@TylerJewell
Copy link

So, we currently have a /instance folder, which we could impose to mean, "default execution folder for docker compose launcher". What would stop us from adding /instance-native and other flavors as peers? We would not generate these folders by default. We would honor that workflow only if users provided a launch-type flag. So we could have --launch:default, --launch:native, --launch:compose as global flags that can instruct the CLI which instance folder (and template types) to use.

CLI is used to start che.

command is : docker run eclipse/che
to use local binaries : add -v <path-to-che-cloned-directory>:/repo

Change-Id: I8649830049974043b69f6725480c1799cfe325cd
Signed-off-by: Florent BENOIT <[email protected]>
Change-Id: Iea826391d3f211eb709d18a249f22b68af93c00d
Signed-off-by: Florent BENOIT <[email protected]>
@benoitf
Copy link
Contributor Author

benoitf commented Jan 24, 2017

Pull request rebased. It's open for 6 days : should I merge ?

@TylerJewell
Copy link

Yes, merge.

We can plan to add in a second type of /instance folder in the future that allows for truly native launches but launched from within the CLI container.

@benoitf benoitf merged commit 5778325 into master Jan 24, 2017
@benoitf benoitf added this to the 5.2.0 milestone Jan 24, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jan 24, 2017
@codenvy-ci
Copy link

@JamesDrummond JamesDrummond mentioned this pull request Feb 6, 2017
9 tasks
@benoitf benoitf deleted the remove-native-scripts branch May 24, 2017 09:03
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…LI) (eclipse-che#3780)

* Remove native launch of che / vagrant files
CLI is used to start che.

command is : docker run eclipse/che
to use local binaries : add -v <path-to-che-cloned-directory>:/repo

Change-Id: I8649830049974043b69f6725480c1799cfe325cd
Signed-off-by: Florent BENOIT <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants