forked from Deuxfleurs/infrastructure
update runners' doc
This commit is contained in:
parent
ceae80d87c
commit
64172fc999
3 changed files with 2 additions and 13 deletions
|
@ -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 = [
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue