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

How to add python stacks to the predefined-stack.json #1129

Closed
gma-git-admin opened this issue Apr 25, 2016 · 3 comments
Closed

How to add python stacks to the predefined-stack.json #1129

gma-git-admin opened this issue Apr 25, 2016 · 3 comments

Comments

@gma-git-admin
Copy link

Hi,

Am new to Che and having difficulty trying to find my way here. I want to use the python images in codenvy dockerhub and add that to predefined_stack.json file. So that python stack is available via dashboard page in Che.

When I do that however, it doesn't work with status looking like this:
[DOCKER] Step1: FROM codenvy/python27
[DOCKER] ---> 35176b922f1c
[DOCKER] ---> Successfully built 35176b922f1c
Machine is destroyed.

Am not able to get hang of it. Please help.
By the way I could create Python workspace by using Docker file and selecting Create New Workspace from Custom Stack->Write your own stack.

@ghost
Copy link

ghost commented Apr 26, 2016

@gma-git-admin ,
codenvy/ubuntu_python is Python 3.5 while codenvy/ubuntu_python:2.7 is 2.7 version

Btw, these two python stacks are in master already https://github.com/eclipse/che/releases/tag/4.2.0 so, updating your Che will fix the problem.

Otherwise, you are on the right track to start workspace from custom Dockerfiles.

@gma-git-admin
Copy link
Author

Using the ones from codenvy DockerHub doesn't work but it does work using docker files from https://github.com/codenvy/dockerfiles/blob/master/ubuntu_python/3.5/Dockerfile.

To add that to stack library, I followed these steps:
Create the workspace using dockerfile.
Identified the container created from Docker
Create a Docker image out of this new container.
Add a new entry in predefined_stacks.json for python using this new image.

And it worked! Though I guessed new version have Python stack already built in. Will update that. Also couldn't understand the recipe bit.

Now am fiddling with linking this to Git repo. I couldn't follow the steps documented here https://eclipse-che.readme.io/docs/git. Am using public repository and not private.

And finally, thanks @eivantsov for prompt replies it makes a big difference! Che seems to be game changer for cloud-based IDE and we are looking forward to transition to it.

@ghost
Copy link

ghost commented Apr 26, 2016

@gma-git-admin the image you used is built for our legacy system and does not meet reqs for 4.0. Glad my comments helped you.

@ghost ghost closed this as completed Apr 26, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant