Add Drone runner configuration and disable GitLab runner

This commit is contained in:
Paul Brinkmeier 2022-09-13 01:31:27 +02:00
parent a929f972ea
commit 704abbcbd8
3 changed files with 19 additions and 3 deletions

View File

@ -3,5 +3,6 @@
- [ ] Update Readme (CI, Git, plantuml, etc.)
- [ ] Split `docker/web/docker-compose.yaml` into different configs (e.g. `web`, `gitlab`, `drone`) using the same network
- [ ] Use `/var/lib/pbri/docker/...` instead of Docker volumes (makes backups easier)
- [ ] Add [Drone runner](https://docs.drone.io/runner/docker/installation/linux/)
- [ ] Make it inaccessible to anyone but root (`-rw------`)
- [x] Add [Drone runner](https://docs.drone.io/runner/docker/installation/linux/)
- [ ] Figure out how to dependably store `.env` files (Ansible vault? Something else?)

View File

@ -41,7 +41,7 @@
- name: web
state: present
- name: runner
state: present
state: absent
- name: Add jupyter user with UID 42000
become: yes
ansible.builtin.user:

View File

@ -102,10 +102,25 @@ services:
environment:
DRONE_GITLAB_SERVER: https://git.pbrinkmeier.de
DRONE_SERVER_HOST: ci.pbrinkmeier.de
DRONE_SERVER_PROTO: http
DRONE_SERVER_PROTO: https
volumes:
- /var/lib/pbri/docker/drone_server:/data
restart: always
ports:
- 3000:3000
drone_runner:
image: drone/drone-runner-docker:1
# DRONE_RPC_SECRET
env_file: drone.env
environment:
DRONE_RPC_PROTO: https
DRONE_RPC_HOST: ci.pbrinkmeier.de
DRONE_RUNNER_CAPACITY: 1
DRONE_RUNNER_NAME: shamash
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
volumes:
caddy_data: