[PR #7] [MERGED] feat: Enhance Docker cleanup script #10

Open
opened 2025-11-20 04:14:16 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/7
Author: @dragonfire1119
Created: 9/26/2024
Status: Merged
Merged: 9/26/2024
Merged by: @dragonfire1119

Base: masterHead: Virtual-branch


📝 Commits (1)

  • 50b7dd2 feat: Enhance Docker cleanup script

📊 Changes

1 file changed (+129 additions, -34 deletions)

View changed files

📝 docker-cleanup/run.sh (+129 -34)

📄 Description

This commit introduces several improvements to the Docker cleanup script:

  • Adds a verbose mode to print detailed messages during the cleanup process.
  • Implements a dry run mode to simulate the cleanup without actually removing any resources.
  • Improves the container, image, volume, and network cleanup functions to better handle the cleanup process and provide more informative output.
  • Adds a summary of the cleanup results at the end of the script.
  • Includes a help message to explain the available options.
  • Refactors the script to improve readability and maintainability.

The main goal of these changes is to provide a more user-friendly and robust Docker cleanup solution.

Summary by CodeRabbit

  • New Features

    • Introduced -v/--verbose option for detailed output.
    • Added -d/--dry-run option to simulate actions without execution.
    • New summary function to report on cleanup actions performed.
  • Improvements

    • Enhanced user interaction with confirmation prompts and clearer feedback.
    • Restructured main entry point for better command-line argument handling.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bigbeartechworld/big-bear-scripts/pull/7 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 9/26/2024 **Status:** ✅ Merged **Merged:** 9/26/2024 **Merged by:** [@dragonfire1119](https://github.com/dragonfire1119) **Base:** `master` ← **Head:** `Virtual-branch` --- ### 📝 Commits (1) - [`50b7dd2`](https://github.com/bigbeartechworld/big-bear-scripts/commit/50b7dd2878eb1ba286a7b335dd642f5ab6b1c26f) ✨ feat: Enhance Docker cleanup script ### 📊 Changes **1 file changed** (+129 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `docker-cleanup/run.sh` (+129 -34) </details> ### 📄 Description This commit introduces several improvements to the Docker cleanup script: - Adds a verbose mode to print detailed messages during the cleanup process. - Implements a dry run mode to simulate the cleanup without actually removing any resources. - Improves the container, image, volume, and network cleanup functions to better handle the cleanup process and provide more informative output. - Adds a summary of the cleanup results at the end of the script. - Includes a help message to explain the available options. - Refactors the script to improve readability and maintainability. The main goal of these changes is to provide a more user-friendly and robust Docker cleanup solution. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced `-v/--verbose` option for detailed output. - Added `-d/--dry-run` option to simulate actions without execution. - New summary function to report on cleanup actions performed. - **Improvements** - Enhanced user interaction with confirmation prompts and clearer feedback. - Restructured main entry point for better command-line argument handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#10