feat!: add daemon to build & especially cache

This commit is contained in:
Technofab 2023-06-09 16:36:29 +02:00
parent bd1cfe94a4
commit 92f3560899
No known key found for this signature in database
GPG key ID: A0AA746B951C8830
12 changed files with 93 additions and 17 deletions

22
docker-compose.yml Normal file
View file

@ -0,0 +1,22 @@
services:
gitlab-runner:
image: gitlab/gitlab-runner:latest
restart: unless-stopped
container_name: Gitlab-Runner
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./gitlab-runner.toml:/etc/gitlab-runner/config.toml
nix-ci-daemon:
# comment out build to use the dockerhub image
build: ./daemon
image: technofab/nix-ci-daemon
restart: unless-stopped
container_name: Nix-CI-Daemon
volumes:
- nix-daemon-socket:/nix/var/nix/daemon-socket
- nix-shared-store:/nix/store
volumes:
nix-shared-store:
nix-daemon-socket: