/gitlab-ci-local-docker

unofficial docker image for gitlab-ci-local

Primary LanguageDockerfile

gitlab-ci-local Docker Images repository

This repository defines the unofficial gitlab-ci-local docker image.

which are published to ghcr.io.

note - requires latest docker to be installed and available

Using Images

get docker image

docker pull ghcr.io/maxime1907/gitlab-ci-local-docker:latest

run docker image

docker run --rm --privileged \
	ghcr.io/maxime1907/gitlab-ci-local-docker:latest \
	--version

run specific jobs

docker run --rm --privileged \
	-v $PWD:/app \
	-v $HOME/.ssh:/root/.ssh \
	-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \
	ghcr.io/maxime1907/gitlab-ci-local-docker:latest \
	mysuperjob

building docker image

export GITLAB_CI_LOCAL_VERSION="4.41.2"
docker build --build-arg GITLAB_CI_LOCAL_VERSION=$GITLAB_CI_LOCAL_VERSION -t gitlab-ci-local-docker:$GITLAB_CI_LOCAL_VERSION docker/dind