-
Notifications
You must be signed in to change notification settings - Fork 340
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
Add new make target to remove docker volumes along with containers #2658
Conversation
📝 WalkthroughWalkthroughThe pull request introduces a new Changes
Possibly related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
Makefile (1)
31-33
: Perhaps we should add a warning about permanent data loss?While the command works perfectly fine, it might be worth adding a comment above the target to warn users about the permanent nature of volume removal. You know, just in case someone accidentally runs it thinking it's the same as
down
.+# Warning: This will permanently delete all data volumes teardown: docker compose -f docker-compose.yaml -f $(docker_config_file) down -v -Oh, and that trailing blank line at line 33 seems a bit... lonely. Maybe we could remove it?
README.md (1)
62-71
: The documentation could be a tiny bit more explicitWhile the commands are documented, we might want to make the distinction between them more... apparent. You know, for those who tend to run commands without reading carefully.
-Stops and removes the containers without affecting the volumes: +# Safe option: Stops and removes containers only ```bash make down-Stops and removes the containers and their volumes:
+#⚠️ Destructive option: Stops and removes containers AND permanently deletes all data volumesmake teardownAlso, those extra blank lines between the text and code blocks are giving me slight OCD, but I suppose that's just me being particular.
closes #2657
@sainak
Summary by CodeRabbit
New Features
teardown
command for cleaning up Docker containers and associated volumes.make down
andmake teardown
.Documentation