Files
nomad-nummer5/apps/drone/live-runner.hcl
Udo Waechter 94e5fc783e
Some checks reported errors
continuous-integration/drone/push Build was killed
testing git diff
2024-04-08 18:13:27 +02:00

64 lines
1.2 KiB
HCL

job "drone-runner" {
datacenters = [
"nummer5",
]
type = "service"
node_pool = "sys"
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 3000
}
}
service {
name = "drone-runner"
port = "http"
}
restart {
attempts = 5
delay = "30s"
}
task "drone-runner" {
driver = "podman"
config {
image = "docker.io/drone/drone-runner-docker:latest"
force_pull = false
ports = ["http"]
privileged = true
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock",
"/etc/containers:/etc/containers"
]
}
env {
TZ = "Europe/Berlin"
DRONE_RUNNER_NAME = "drone-runner01"
DRONE_RPC_SECRET = "7eb685ed81d0c34bafc5efa7783c20b2"
DRONE_RPC_HOST = "drone.service.nr5"
DRONE_RPC_PROTO = "http"
DRONE_RUNNER_CAPACITY = 1
DRONE_LOGS_DEBUG = false
DRONE_LOGS_TRACE = false
DOCKER_BUILDKIT = 1
}
resources {
cpu = 300
memory = 1500
}
}
}
}