update runners' doc

This commit is contained in:
Quentin 2022-07-25 15:20:21 +02:00
parent ceae80d87c
commit 64172fc999
Signed by: quentin
GPG key ID: E9602264D639FF68
3 changed files with 2 additions and 13 deletions

View file

@ -69,7 +69,7 @@ job "directory" {
task "guichet" { task "guichet" {
driver = "docker" driver = "docker"
config { config {
image = "superboum/guichet_amd64:15" image = "dxflrs/guichet:6y7pv4kgfsn02iijj55kf5af0rbksgrn"
readonly_rootfs = true readonly_rootfs = true
ports = [ "web_port" ] ports = [ "web_port" ]
volumes = [ volumes = [

View file

@ -28,15 +28,7 @@ chmod +x /usr/local/bin/docker-compose
## Prepare the runner ## Prepare the runner
Nix folder must be populated before launching any build. *The folder does not need to be prepared anymore*
```bash
docker run --rm -it -v /var/lib/drone/nix:/mnt nixpkgs/nix:nixos-21.05 cp -r /nix/{store,var} /mnt/
```
This folder will grow over time and might need to be garbage collected.
As a rule of thumb, after running a full release of Garage, this folder will require 10GB.
Consider provisioning it with at least 20GB.
## Launch the runner ## Launch the runner

View file

@ -13,13 +13,10 @@ services:
- DRONE_RPC_DUMP_HTTP=true - DRONE_RPC_DUMP_HTTP=true
- DRONE_RPC_DUMP_HTTP_BODY=true - DRONE_RPC_DUMP_HTTP_BODY=true
- DRONE_RUNNER_NAME=${DRONE_NAME} - DRONE_RUNNER_NAME=${DRONE_NAME}
- DRONE_RUNNER_LABELS=nix:1
#- DRONE_RUNNER_VOLUMES=/var/lib/drone/nix:/nix
ports: ports:
- "3000:3000/tcp" - "3000:3000/tcp"
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock" - "/var/run/docker.sock:/var/run/docker.sock"
- "/var/lib/drone/nix:/var/lib/drone/nix"
drone-gc: drone-gc:
image: drone/gc:latest image: drone/gc:latest