Use docker instead of exec to work arround https://github.com/hashicorp/nomad/issues/20212

This commit is contained in:
Daniel Berteaud 2024-04-22 11:33:59 +02:00
parent 48581c00ea
commit 76951d28e3
2 changed files with 12 additions and 4 deletions

View File

@ -38,10 +38,14 @@ job "[[ .instance ]]" {
# Dummy task to configure custom CA certificates # Dummy task to configure custom CA certificates
# Needed because template is not supported in sidecar_task # Needed because template is not supported in sidecar_task
task "ca-certs" { task "ca-certs" {
driver = "exec" # Use docker instead of exec as it's broken on EL8. See https://github.com/hashicorp/nomad/issues/20212
driver = "docker"
config { config {
command = "/bin/true" image = "[[ .docker.repo ]][[ .docker.base_images.alpine.image ]]"
readonly_rootfs = true
pids_limit = 10
command = "/bin/true"
} }
# The task will just quit immediatly, mark it as a prestart hook # The task will just quit immediatly, mark it as a prestart hook

View File

@ -38,10 +38,14 @@ job "egress-gateway" {
# Dummy task to configure custom CA certificates # Dummy task to configure custom CA certificates
# Needed because template is not supported in sidecar_task # Needed because template is not supported in sidecar_task
task "ca-certs" { task "ca-certs" {
driver = "exec" # Use docker instead of exec as it's broken on EL8. See https://github.com/hashicorp/nomad/issues/20212
driver = "docker"
config { config {
command = "/bin/true" image = "danielberteaud/alpine:24.3-1"
readonly_rootfs = true
pids_limit = 10
command = "/bin/true"
} }
# The task will just quit immediatly, mark it as a prestart hook # The task will just quit immediatly, mark it as a prestart hook