Files
nomad-nummer5/apps/drone/live-runner.hcl
Udo Waechter d9cb340169
All checks were successful
continuous-integration/drone/push Build is passing
drone runner fron docker.io again
2023-11-30 17:18:03 +01:00

60 lines
1.1 KiB
HCL

job "drone-runner" {
datacenters = [
"nummer5",
]
type = "service"
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 = "drone/drone-runner-docker:latest"
force_pull = true
ports = ["http"]
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_LOGS_DEBUG = true
DRONE_LOGS_TRACE = true
}
resources {
cpu = 100
memory = 64
}
}
}
}