diff --git a/devops-dash.nomad b/devops-dash.nomad index e290a84..ed9de8b 100644 --- a/devops-dash.nomad +++ b/devops-dash.nomad @@ -14,62 +14,71 @@ job "devops-dash" { port "http" {} } - volume "devops-mcp-data" { - type = "host" - read_only = true - source = "devops-mcp-data" - } + # host volume disabled until autobox is configured. + # To enable: add to /etc/nomad.d/client.hcl on autobox: + # host_volume "devops-mcp-data" { + # path = "/opt/devops-mcp/data" + # read_only = false + # } + # Then: mkdir -p /opt/devops-mcp/data && systemctl restart nomad + # + # volume "devops-mcp-data" { + # type = "host" + # read_only = true + # source = "devops-mcp-data" + # } task "devops-dash" { driver = "docker" - volume_mount { - volume = "devops-mcp-data" - destination = "/data" - read_only = true - } + # volume_mount { + # volume = "devops-mcp-data" + # destination = "/data" + # read_only = true + # } config { - image = "registry.i80.dk/gitea/devops-dash:latest" - ports = ["http"] + image = "registry.i80.dk/gitea/devops-dash:latest" + ports = ["http"] + force_pull = true auth { - username = "robot$gitserver" - password_env = "REGISTRY_TOKEN" - server_address = "registry.i80.dk" + username = "robot$gitserver" + password = "${HARBOR_ROBOT_TOKEN}" } } template { - data = <