Skip to content

Commit 2b21ee6

Browse files
authored
Merge pull request #223 from Quantisan/feature/improve-curl-error-handling
Make curl fail fast on errors and display them
2 parents 513d5b7 + 58e91a7 commit 2b21ee6

File tree

35 files changed

+35
-35
lines changed

35 files changed

+35
-35
lines changed

src/docker_clojure/dockerfile/tools_deps.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"RUN \\"]
3939
(concat-commands install-dep-cmds)
4040
(concat-commands
41-
["curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh"
41+
["curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh"
4242
"sha256sum linux-install-$CLOJURE_VERSION.sh"
4343
(str "echo \"" (get-in installer-hashes ["tools-deps" build-tool-version]) " *linux-install-$CLOJURE_VERSION.sh\" | sha256sum -c -")
4444
"chmod +x linux-install-$CLOJURE_VERSION.sh"

target/debian-bookworm-11/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-17/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-21/latest/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RUN \
5252
apt-get update && \
5353
apt-get install -y curl make git rlwrap && \
5454
rm -rf /var/lib/apt/lists/* && \
55-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
55+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
5656
sha256sum linux-install-$CLOJURE_VERSION.sh && \
5757
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
5858
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-21/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-22/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-8/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-slim-11/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-slim-17/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

target/debian-bookworm-slim-21/tools-deps/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
apt-get update && \
1313
apt-get install -y curl make git rlwrap && \
1414
rm -rf /var/lib/apt/lists/* && \
15-
curl -sLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
15+
curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && \
1616
sha256sum linux-install-$CLOJURE_VERSION.sh && \
1717
echo "7edee5b12197a2dbe6338e672b109b18164cde84bea1f049ceceed41fc4dd10a *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && \
1818
chmod +x linux-install-$CLOJURE_VERSION.sh && \

0 commit comments

Comments
 (0)