https://github.com/simonbaeumer/dind-gitlab-runner-playbook
Ansible playbook for docker-in-docker gitlab-runner deployment
https://github.com/simonbaeumer/dind-gitlab-runner-playbook
ansible centos ci dind docker gitlab gitlab-runner goss
Last synced: about 2 months ago
JSON representation
Ansible playbook for docker-in-docker gitlab-runner deployment
- Host: GitHub
- URL: https://github.com/simonbaeumer/dind-gitlab-runner-playbook
- Owner: SimonBaeumer
- License: mit
- Created: 2018-11-11T11:57:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T19:18:06.000Z (over 7 years ago)
- Last Synced: 2025-09-09T16:11:28.587Z (10 months ago)
- Topics: ansible, centos, ci, dind, docker, gitlab, gitlab-runner, goss
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitlab-runner ansible
Deploys a gitlab-runner on centOS 7
## Requirement
- ansible 2.6
## Usage
- Add your runner key to `inventory_*` file
- Add runner addresses to `inventory_*` file
- Execute `./dev start`
- Verify `http://runner-adr:8080/healthz`
## Deployment
```
$ ansible-playbook -i inventory_prod runner-playbook.yml
```
### Healthcheck
Will be served to `:8080/healthz`
## Development
### vagrant
`Vagrant 2.1.2`
A reachable gitlab instance is required.
```
# Setting up vm
$ vagrant start
# Execute ansible playbook
$ vagrant provision
# SSH
$ vagrant ssh
# stop VMs
$ vagrant halt
# remove VM
$ vagrant destroy
```
- gitlab-runner `192.168.33.10`
### docker
`docker-compose 1.22.0, build f46880fe`
`docker 18.06.1-ce`
The docker setup is just experimental at the moment.
```
# start environment
$ ./dev docker_start
# apply ansible playbook
$ ./dev docker_apply
```
- gitlab-ce `172.16.2.2` or `localhost:8080`
- gitlab-runner `172.16.2.3`