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

Use "run --rm" instead of exec for tests in README #1894

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

ulgens
Copy link
Contributor

@ulgens ulgens commented Jan 22, 2025

This is something pretty small but I find run --rm more robust than exec, because:

  • exec requires a running container, "run --rm" starts a new one and deletes when the job is done
  • exec requires the related container to stay healthy, "run --rm" run things on a separate container

* exec requires a running container, "run --rm" starts a new one and deletes when the job is done
* exec requires the related container to stay healthy, "run --rm" run things on a separate container
@bmispelon bmispelon merged commit 5f9764f into django:main Jan 23, 2025
4 checks passed
@bmispelon
Copy link
Member

Good idea, thanks! 🎸

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

Successfully merging this pull request may close these issues.

3 participants