From 73dd937d758b709fe7a39dbe8b0bd2c8bfa2c306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Duarte?= Date: Fri, 28 Feb 2025 17:53:59 +0000 Subject: [PATCH] Update Dockerfile.erb to set eux on RUN command with semicolons (#17141) as per guidance https://github.com/elastic/logstash/pull/16063#discussion_r1577000627 (cherry picked from commit 18772dd25a884ca1f83b170112ee898ee5cfcd68) --- docker/templates/Dockerfile.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/templates/Dockerfile.erb b/docker/templates/Dockerfile.erb index f77ca82f90a..c1ed107ca2b 100644 --- a/docker/templates/Dockerfile.erb +++ b/docker/templates/Dockerfile.erb @@ -191,7 +191,7 @@ COPY --from=builder-env2yaml /tmp/go/src/env2yaml/env2yaml /usr/local/bin/env2ya <% else -%> COPY env2yaml/env2yaml-amd64 env2yaml/env2yaml-arm64 env2yaml/ # Copy over the appropriate env2yaml artifact -RUN env2yamlarch="$(<%= arch_command %>)"; \ +RUN set -eux; env2yamlarch="$(<%= arch_command %>)"; \ case "${env2yamlarch}" in \ 'x86_64'|'amd64') \ env2yamlarch=amd64; \