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

Where can I find the git hash from a che docker image? #161

Closed
freewind opened this issue Jan 6, 2016 · 10 comments
Closed

Where can I find the git hash from a che docker image? #161

freewind opened this issue Jan 6, 2016 · 10 comments

Comments

@freewind
Copy link

freewind commented Jan 6, 2016

When I use the latest codenvy/che:nightly, I found there is something wrong (not sure if it's code issues or just my wrong usage), but I have already tagged a previous good image as a backup.

Now I want to see what't the git hash of the code in that docker image, so I can checkout the code and do something, but not sure how to do it. Is there any file recorded the git hash in the image? Or is there any other way I can find it?

@benoitf
Copy link
Contributor

benoitf commented Jan 6, 2016

@freewind
Copy link
Author

freewind commented Jan 6, 2016

[
{
"layer": "057d4fb8",
"name": "latest"
},
{
"layer": "057d4fb8",
"name": "4.0.0-beta-5"
},
{
"layer": "0ccd7e22",
"name": "nightly"
}
]

Do you mean the layer (e.g. 0ccd7e22) is the same as the git hash?

@ghost
Copy link

ghost commented Jan 6, 2016

Yes, latest and tag are the same

@freewind
Copy link
Author

freewind commented Jan 7, 2016

Sorry for my unclear question.

The "layer" hash seems not what I'm looking for, it's not the git hash I can search from the codebase.

I want to find which GIT hash of an image, so I can check out the code and switch to that hash. Is it possible?

@ghost
Copy link

ghost commented Jan 7, 2016

Not sure I understand the question. Can you elaborate?

@freewind
Copy link
Author

freewind commented Jan 7, 2016

Sorry, I mean if I see there is a che docker image, how can I know which git commit the image is built based on? Like the 93093323ea5409f3232a2418056bcebd277675e2 in https://github.com/codenvy/che/commit/93093323ea5409f3232a2418056bcebd277675e2

@TylerJewell
Copy link

This is an interesting question. Makes sense. If you use the labeled images based upon a release the Che install inside the image will match commit if for the same release provided on our github release page. https://github.com/codenvy/che/releases

I need to ask about how we would do that for the nightly images.

@freewind
Copy link
Author

freewind commented Jan 7, 2016

@TylerJewell Thanks! I have this request because a previous nightly build image is working well on my server, but another day it fails. I don't have enough time to find the reason, so I think if I know the git commit hash of an image, I can record it somewhere that I can build it myself in the future if needed

@freewind freewind closed this as completed Jan 7, 2016
@freewind freewind reopened this Jan 7, 2016
@TylerJewell
Copy link

Well for day to day development shouldn't you stick to using the releases versions? We have a beta 5 release candidate now and should have a full beta release within a couple weeks. Those releases are both stable and increasingly functionally complete. Then there will not be any issues with chasing the git hash.

Should we close this issue for now on the expectation that you will not need the nightly build much in the future?

@freewind
Copy link
Author

freewind commented Jan 7, 2016

@TylerJewell Thanks, I'm fine to close it

@freewind freewind closed this as completed Jan 7, 2016
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

3 participants