A minimal Alpine-based container for running Bash scripts with common tools. Use as an init container or fork to customize for your own scripting needs.
Docker:
docker run --rm -it ghcr.io/<your-org>/<your-repo>:latest 'echo Hello World'Kubernetes initContainer:
initContainers:
- name: wait-for-db
image: ghcr.io/<your-org>/<your-repo>:latest
command:
- |
until nc -z db 5432; do
echo "Waiting for database...";
sleep 2;
doneECS Task Definition:
{
"containerDefinitions": [
{
"name": "wait-for-db",
"image": "ghcr.io/<your-org>/<your-repo>:latest",
"command": [
"until nc -z db 5432; do echo 'Waiting for database...'; sleep 2; done"
]
}
]
}- Change default tools by building with:
docker build --build-arg PACKAGES="curl wget jq aws-cli git" -t my-init-container . - Fork this repo to add scripts, tools, or CI steps.
- bash, curl, wget, jq, aws-cli (customizable)
- Automated vulnerability scans (Trivy)
- SBOM and provenance attestation for each build
- Minimal permissions and regular cache invalidation
Important Notice: This image runs as root. It is recommended to run it with a read-only filesystem and writable volume mounts.