Add default setup for runner

This commit is contained in:
Tanguy Herbron 2021-09-09 22:02:10 +00:00
commit e07cee9751
3 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# Register runner
```
docker run --rm -it -v $PWD/config:/etc/gitlab-runner gitlab/gitlab-runner register
```
Executor : `docker:19.03.12`

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: "3.2"
services:
runner:
image: gitlab/gitlab-runner:latest
container_name: gitlab_runner
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/services:/opt/services
- ./config:/etc/gitlab-runner