From 3fbfc1662417db39efda447b29a2cdbd8f70a32c Mon Sep 17 00:00:00 2001 From: Myasnikov Daniil Date: Sun, 17 May 2026 10:04:07 +0500 Subject: [PATCH] fix(e2e-sandbox): use curl -fsSL when downloading mc The minio client was downloaded without -L, so when dl.min.io served a 302 redirect, curl wrote the HTML body ("Found") to /usr/local/bin/mc, chmod +x'd it, and shipped that as the binary. When the bucket E2E test ran "mc alias set ...", the shell tried to interpret the HTML as a script and errored with: /usr/local/bin/mc: 1: cannot open a: No such file (dash reading " Signed-off-by: Myasnikov Daniil --- packages/core/testing/images/e2e-sandbox/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/testing/images/e2e-sandbox/Dockerfile b/packages/core/testing/images/e2e-sandbox/Dockerfile index 2f94991f9..ea18475d9 100644 --- a/packages/core/testing/images/e2e-sandbox/Dockerfile +++ b/packages/core/testing/images/e2e-sandbox/Dockerfile @@ -19,8 +19,8 @@ RUN curl -sSL "https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_${TA && chmod +x /usr/local/bin/yq RUN curl -sSL "https://fluxcd.io/install.sh" | bash RUN curl -sSL "https://github.com/cozystack/cozyhr/raw/refs/heads/main/hack/install.sh" | sh -s -- -v "${COZYHR_VERSION}" -RUN curl https://dl.min.io/client/mc/release/${TARGETOS}-${TARGETARCH}/mc --create-dirs -o /usr/local/bin/mc \ -&& chmod +x /usr/local/bin/mc +RUN curl -fsSL "https://dl.min.io/client/mc/release/${TARGETOS}-${TARGETARCH}/mc" --create-dirs -o /usr/local/bin/mc \ + && chmod +x /usr/local/bin/mc RUN <<'EOF' cat <<'EOT' >> /etc/bash.bashrc . /etc/bash_completion