A minimal Docker image based on alpine:latest, pre-installed with Docker CLI, SSH client, and Git
61
A minimal Docker image based on alpine:latest, pre-installed with Docker CLI, SSH client, and Git. This image is optimized for CI/CD environments, especially for GitLab CI/CD with docker:dind service.
docker build, docker run, etc.)openssh-client)git)docker run --rm -it myusername/alpine-docker sh
Example .gitlab-ci.yml configuration:
image: myusername/alpine-docker
services:
- docker:dind
variables:
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: "tcp://docker:2375"
before_script:
- docker info
- git --version
- ssh -V
stages:
- build
- test
build:
stage: build
script:
- docker build -t my-app .
- docker images
test:
stage: test
script:
- docker run --rm my-app echo "Test successful!"
docker build -t myusername/alpine-docker .
docker push myusername/alpine-docker
ā
Lightweight & optimized (based on Alpine)
ā
Fully supports docker:dind in GitLab CI/CD
ā
No need for --privileged mode
ā
Ready-to-use for building and testing applications in CI/CD
š„ Use this image for a seamless CI/CD experience with Alpine Linux and Docker! š
Content type
Image
Digest
sha256:f03d7bfbbā¦
Size
20.7 MB
Last updated
over 1 year ago
docker pull richardpham201/sshclient-alpine-cicd-dind:1.0.0