From 9ee7716fca935f5c7aceb41a70de86e2988095b0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 4 Apr 2024 13:17:25 +0200 Subject: [PATCH] Use the new image template --- acme-to-vault.nomad.hcl | 3 +-- example/acme-to-vault.nomad.hcl | 3 ++- example/images/acme-to-vault/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/acme-to-vault.nomad.hcl b/acme-to-vault.nomad.hcl index 9ced8ed..41bb3c8 100644 --- a/acme-to-vault.nomad.hcl +++ b/acme-to-vault.nomad.hcl @@ -31,8 +31,7 @@ job "[[ .instance ]]" { user = 8787 config { - image = "[[ .acme.image ]]" - readonly_rootfs = true +[[ template "common/image" $c ]] pids_limit = 50 [[ template "common/tmpfs" dict "target" "/data" "size" "10000000" ]] } diff --git a/example/acme-to-vault.nomad.hcl b/example/acme-to-vault.nomad.hcl index d99260b..8d84a25 100644 --- a/example/acme-to-vault.nomad.hcl +++ b/example/acme-to-vault.nomad.hcl @@ -65,7 +65,8 @@ job "acme-to-vault" { config { image = "danielberteaud/acme-to-vault:24.3-1" readonly_rootfs = true - pids_limit = 50 + + pids_limit = 50 mount { type = "tmpfs" target = "/data" diff --git a/example/images/acme-to-vault/Dockerfile b/example/images/acme-to-vault/Dockerfile index 49a0490..00c835b 100644 --- a/example/images/acme-to-vault/Dockerfile +++ b/example/images/acme-to-vault/Dockerfile @@ -1,4 +1,4 @@ -FROM danielberteaud/alpine:24.3-1 AS vault +FROM danielberteaud/alpine:24.4-1 AS vault ARG VAULT_VERSION=1.15.6 @@ -12,7 +12,7 @@ RUN set -euxo pipefail &&\ unzip -d /usr/local/bin vault_${VAULT_VERSION}_linux_amd64.zip &&\ rm vault_${VAULT_VERSION}_linux_amd64.zip -FROM danielberteaud/alpine:24.3-1 +FROM danielberteaud/alpine:24.4-1 MAINTAINER Daniel Berteaud ARG VAULT_VERSION=1.15.4