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,9 +38,13 @@ job "[[ .instance ]]" {
# Dummy task to configure custom CA certificates
# Needed because template is not supported in sidecar_task
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 {
image = "[[ .docker.repo ]][[ .docker.base_images.alpine.image ]]"
readonly_rootfs = true
pids_limit = 10
command = "/bin/true"
}

View File

@ -38,9 +38,13 @@ job "egress-gateway" {
# Dummy task to configure custom CA certificates
# Needed because template is not supported in sidecar_task
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 {
image = "danielberteaud/alpine:24.3-1"
readonly_rootfs = true
pids_limit = 10
command = "/bin/true"
}