|
1 | 1 | #!/bin/bash |
2 | 2 |
|
3 | | -# docker-manager.sh - A professional Docker management script |
| 3 | +#=============================================================================== |
| 4 | +# |
| 5 | +# FILE: docker-manager.sh |
| 6 | +# |
| 7 | +# USAGE: ./docker-manager.sh <command> [--env-file <path>] |
| 8 | +# |
| 9 | +# DESCRIPTION: A professional Bash script for managing Docker projects. |
| 10 | +# Supports Docker login, build, pull, push, and Docker Compose |
| 11 | +# operations with an easy-to-use interface. |
| 12 | +# |
| 13 | +# OPTIONS: |
| 14 | +# init - Initialize Docker username and project name |
| 15 | +# login - Log in to Docker registry |
| 16 | +# pull - Pull Docker image |
| 17 | +# push - Push Docker image |
| 18 | +# build - Build Docker image |
| 19 | +# create - Start containers (Docker Compose) |
| 20 | +# close - Stop containers (Docker Compose) |
| 21 | +# recreate - Restart containers (close + create) |
| 22 | +# start - Start stopped containers |
| 23 | +# stop - Stop running containers |
| 24 | +# help - Display this help message |
| 25 | +# |
| 26 | +# REQUIREMENTS: bash, docker, docker-compose, jq |
| 27 | +# AUTHOR: Matéo Florian Callec |
| 28 | +# LICENSE: MIT |
| 29 | +# REPO: https://github.com/mateocallec/docker-manager.sh |
| 30 | +# |
| 31 | +#=============================================================================== |
| 32 | + |
4 | 33 |
|
5 | 34 | # Set the project directory |
6 | 35 | PROJECT_DIR=$(pwd) |
|
0 commit comments