Skip to content

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

Merged
merged 9 commits into from
Jun 22, 2022
Merged

Improve Docker configuration in the package #467

merged 9 commits into from
Jun 22, 2022

Conversation

meili-bot
Copy link
Contributor

This PR is auto-generated.

Add a basic Docker configuration based on this integration-guides issue.

@meili-bot meili-bot added the enhancement New feature or request label Jun 1, 2022
@alallema alallema force-pushed the meili-bot/docker branch from 334f825 to 1311868 Compare June 6, 2022 13:46
@alallema alallema force-pushed the meili-bot/docker branch from 1311868 to 5c65a89 Compare June 6, 2022 13:50
@alallema alallema marked this pull request as ready for review June 6, 2022 14:04
Copy link
Member

@brunoocasali brunoocasali left a 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 :)

@alallema alallema requested a review from brunoocasali June 7, 2022 11:20
@alallema alallema force-pushed the meili-bot/docker branch from 56b9641 to 0fc512e Compare June 7, 2022 11:34
@alallema alallema force-pushed the meili-bot/docker branch from 0fc512e to 9a39ed0 Compare June 7, 2022 11:47
alallema and others added 2 commits June 7, 2022 16:01
CONTRIBUTING.md Outdated

Example of running all the checks with docker:
```bash
docker-compose run --rm package
Copy link
Member

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.

Copy link
Contributor

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

Copy link
Contributor

@alallema alallema Jun 7, 2022

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?

Copy link
Member

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 😄

Copy link
Contributor

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

@alallema alallema requested a review from brunoocasali June 7, 2022 15:29
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@alallema
Copy link
Contributor

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 22, 2022

@bors bors bot merged commit bdeb59b into main Jun 22, 2022
@bors bors bot deleted the meili-bot/docker branch June 22, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants