https://github.com/tiredofit/docker-gitlab-runner
Docker CI runner
https://github.com/tiredofit/docker-gitlab-runner
alpine docker gitlab-runner
Last synced: 8 months ago
JSON representation
Docker CI runner
- Host: GitHub
- URL: https://github.com/tiredofit/docker-gitlab-runner
- Owner: tiredofit
- License: mit
- Created: 2017-08-23T03:17:18.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T15:22:06.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T09:34:49.697Z (12 months ago)
- Topics: alpine, docker, gitlab-runner
- Homepage:
- Size: 80.1 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# How to manually setup Gitlab Runner for Docker
## Create Docker Private Network for Builds
docker network create gitlab-runner
## Run Docker in Docker
docker run -d --name gitlab-dind --privileged --restart always --network gitlab-runner -v /var/lib/docker tiredofit/docker-dind:latest
## Run GitLab Runner
docker run -d --name gitlab-runner --restart always --network gitlab-runner -v
/config:/etc/gitlab-runner -e DOCKER_HOST=tcp://gitlab-dind:2375 tiredofit/gitlab-runner:latest
- You can also use the docker-compose.yml for the above commands
## Configure Gitlab Runner
docker run -it --rm -v /var/local/docker/gitlab-runner/config:/etc/glab-runner tiredofit/gitlab-runner \
register \
--executor docker \
--docker-image docker:git \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock
There are also additional environment variables.. TBC