-
Notifications
You must be signed in to change notification settings - Fork 90
Improve Docker configuration in the package #467
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
334f825
to
1311868
Compare
1311868
to
5c65a89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give a look in the comments :)
56b9641
to
0fc512e
Compare
0fc512e
to
9a39ed0
Compare
Co-authored-by: Bruno Casali <[email protected]>
CONTRIBUTING.md
Outdated
|
||
Example of running all the checks with docker: | ||
```bash | ||
docker-compose run --rm package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You must add the entire command here, to make it possible to people override your default command CMD
in the python Dockerfile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know but I find this way more clean and the user can modify the Dockerfile
in case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brunoocasali the advantage of having a Dockerfile is just to run a command like docker-compose up
I think the user will have no problem finding the command to modify it! And the test in python is really quick so I think is a win-win even if it launches all the verification. I'm not sure a lot of users will use it and let alone do only part of the tests.
This way is ready to use! 😃
Don't you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems strange to me to use the docker-compose up
to run a short-lived command.
My point about adding the entire command in the CONTRIBUTING is that we agreed to provide that command in every other repo 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brunoocasali it's the same command docker-compose run --rm package
I just remove the specific command line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
bors merge |
This PR is auto-generated.
Add a basic Docker configuration based on this integration-guides issue.