Sign inSign up

richardpham201/sshclient-alpine-cicd-dind

By richardpham201

•Updated over 1 year ago

A minimal Docker image based on alpine:latest, pre-installed with Docker CLI, SSH client, and Git

Image
Integration & delivery
Developer tools
Operating systems
0

61

richardpham201/sshclient-alpine-cicd-dind repository overview

⁠Overview

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.

⁠Features

  • Alpine Linux (lightweight base image)
  • Docker CLI (for running docker build, docker run, etc.)
  • SSH client (openssh-client)
  • Git (git)

⁠Usage

⁠Run as a standalone container
docker run --rm -it myusername/alpine-docker sh
⁠Use in GitLab CI/CD

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!"

⁠Building & Pushing to Docker Hub

docker build -t myusername/alpine-docker .
docker push myusername/alpine-docker

⁠Why Use This Image?

āœ… 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! šŸš€

Tag summary

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