Skip to content

Commit 45937d6

Browse files
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 ("<a href=...>Found</a>") 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 "<a" as an input redirect from a file named "a"). The image is rebuilt per CI run from cached layers; the broken mc layer was cached and reused. Adding -fsSL fixes the download and the textual change busts the cache so the next build pulls a real ELF binary. Co-Authored-By: Claude Opus 4.7 <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent c5e9287 commit 45937d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/core/testing/images/e2e-sandbox

‎packages/core/testing/images/e2e-sandbox/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ RUN curl -sSL "https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_${TA
1919
&& chmod +x /usr/local/bin/yq
2020
RUN curl -sSL "https://fluxcd.io/install.sh" | bash
2121
RUN curl -sSL "https://github.com/cozystack/cozyhr/raw/refs/heads/main/hack/install.sh" | sh -s -- -v "${COZYHR_VERSION}"
22-
RUN curl https://dl.min.io/client/mc/release/${TARGETOS}-${TARGETARCH}/mc --create-dirs -o /usr/local/bin/mc \
23-
&& chmod +x /usr/local/bin/mc
22+
RUN curl -fsSL "https://dl.min.io/client/mc/release/${TARGETOS}-${TARGETARCH}/mc" --create-dirs -o /usr/local/bin/mc \
23+
&& chmod +x /usr/local/bin/mc
2424
RUN <<'EOF'
2525
cat <<'EOT' >> /etc/bash.bashrc
2626
. /etc/bash_completion

0 commit comments

Comments
 (0)