| name | cicd-container |
| description | CI/CD Container Generation - Generate Dockerfile, docker-compose.yml, and .dockerignore for the current project. |
CI/CD Container Generation
Generate Dockerfile, docker-compose.yml, and .dockerignore for the current project.
Steps
- Detect framework using
lib/cicd:
PYTHONPATH="$PWD/lib:$HOME/Projects/claude-power-pack/lib:$PYTHONPATH" python3 -m lib.cicd detect --quiet
- Generate container files (dry run first):
PYTHONPATH="$PWD/lib:$HOME/Projects/claude-power-pack/lib:$PYTHONPATH" python3 -m lib.cicd container
-
Review output with the user. Show what will be generated.
-
Check for existing files before writing:
- If
Dockerfile exists, ask before overwriting
- If
docker-compose.yml exists, ask before overwriting
- If
.dockerignore exists, ask before overwriting
-
Write files if approved:
PYTHONPATH="$PWD/lib:$HOME/Projects/claude-power-pack/lib:$PYTHONPATH" python3 -m lib.cicd container --write
- Report results:
## Container Files Generated
Framework: {framework} ({package_manager})
Files created:
Dockerfile - Multi-stage build (builder -> runtime)
docker-compose.yml - (if compose_services configured)
.dockerignore - Standard patterns
To build: docker build -t myapp .
To run: docker compose up -d
Notes