-
Notifications
You must be signed in to change notification settings - Fork 3
feat: use docker entrypoint #13
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
Conversation
Hi, any update on this PR please ? You can close it if you are not interested by merging it |
I think we can merge it, could you add a migration guide to the commit message? thanks! |
I have updated the usage examples in the README.md accordingly |
I don't think that's enough, because that's how to use it now. This change will probably break some people's code, I'd like them to come to the README to see what happened, and see a solution right away, a "miration guide", where they realize they only need to chnage a few things to mitigate the impact. I think something as simple as: ## Migration guide
We've moved this images from using `CMD` to `ENTRYPOINT`.
Where you were doing this:
docker run --rm --name commitizen registry.hub.docker.com/commitizen/commitizen:2 /bin/sh -c "cz ls"
Now you only need to do:
docker run --rm --name commitizen registry.hub.docker.com/commitizen/commitizen:2 ls What do you think? |
While reviewing the docs, I noticed that for Jenkins we run the command inside a docker image: useCz {
sh "cz bump --changelog"
} The useCz {
sh "make bump"
} Which has the benefit of working also locally. How would people achieve the same with this PR? |
Not sure to understand the question.
use the method
so this is equivalent to
|
As explained in the updated readme, we can override the entrypoint using docker run --rm -it \
--entrypoint /bin/sh \
-v $(pwd):/app \
commitizen/commitizen:latest |
see https://issues.jenkins.io/browse/JENKINS-51307 for passing the entrypoint in the docker pipeline: customImage.inside("-u root --entrypoint='/start.sh'") {} in this case the update should be (see the end of the line
|
Thanks. I'll merge it soon. This breaking change will be part of commitizen |
Could you please rebase? Thanks! |
fixes issue commitizen-tools#12 BREAKING CHANGE: wrapping script are simplified but not compatible with previous version
done |
fixes issue #12
BREAKING CHANGE: wrapping script are simplified but not compatible with previous version