Gitlab Runner CI/CD Container
406
Makefile.amIMAGE = zerolabssyseng/gitlab-runner
clean-local:
docker rmi $(CLEAN_OPTIONS) $(IMAGE):$(TAG) || true
build:
docker build $(BUILD_OPTIONS) --build-arg TAG=${TAG} -t $(IMAGE):$(TAG) .
pull:
docker pull $(PULL_OPTIONS) $(IMAGE):$(TAG)
push: build
docker push $(PUSH_OPTIONS) $(IMAGE):$(TAG)
makemake [options]:
clean-local
build
pull
push
ARG TAG
FROM gitlab/gitlab-runner:${TAG:-latest}
MAINTAINER "System Engineer (SysEng)"
ENV GITLAB_URL=${GITLAB_URL} \
GITLAB_TOKEN=${GITLAB_TOKEN}
VOLUME [ "/etc/gitlab-runner", "/home/gitlab-runner" ]
ENTRYPOINT [ "/usr/bin/dumb-init", "/entrypoint" ]
CMD [ "run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner" ]
version: '3.5'
volumes:
gitlab-runner:
services:
gitlab-runner:
restart: always
image: gitlab/gitlab-runner
container_name: zerolabssyseng_gitlab_runner
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/gitlab-runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITLAB_URL=${GITLAB_URL}
- GITLAB_TOKEN=${GITLAB_TOKEN}
Content type
Image
Digest
Size
149.4 MB
Last updated
almost 7 years ago
docker pull zerolabssyseng/gitlab-runner