Skip to content

Commit 49f4fde

Browse files
Add retry option for curl command (#4213)
Signed-off-by: Mageshwaran Sekar <[email protected]>
1 parent cef3077 commit 49f4fde

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docker/alpine.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV PROTOBUF_PROTOC=/usr/bin/protoc
1717
ENV gRPC_PluginFullPath=/usr/bin/grpc_csharp_plugin
1818

1919
# Install older sdks using the install script
20-
RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
20+
RUN curl -sSL --retry 5 https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
2121
&& echo "SHA256: $(sha256sum dotnet-install.sh)" \
2222
&& echo "19b0a7890c371201b944bf0f8cdbb6460d053d63ddbea18cfed3e4199769ce17 dotnet-install.sh" | sha256sum -c \
2323
&& chmod +x ./dotnet-install.sh \

docker/centos-stream9.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM quay.io/centos/centos:stream9@sha256:a4c1969e2563bb58ef1ace327b72f8cc3f1a7e
44
RUN dnf install -y \
55
libicu-devel
66

7-
RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
7+
RUN curl -sSL --retry 5 https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
88
&& echo "SHA256: $(sha256sum dotnet-install.sh)" \
99
&& echo "19b0a7890c371201b944bf0f8cdbb6460d053d63ddbea18cfed3e4199769ce17 dotnet-install.sh" | sha256sum -c \
1010
&& chmod +x ./dotnet-install.sh \

docker/debian-arm64.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN apt-get update && \
77
make
88

99
# Install older sdks using the install script as there are no arm64 SDK packages.
10-
RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
10+
RUN curl -sSL --retry 5 https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
1111
&& echo "SHA256: $(sha256sum dotnet-install.sh)" \
1212
&& echo "19b0a7890c371201b944bf0f8cdbb6460d053d63ddbea18cfed3e4199769ce17 dotnet-install.sh" | sha256sum -c \
1313
&& chmod +x ./dotnet-install.sh \

docker/ubuntu1604.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
3131
apt-get update && \
3232
apt-get install -y --allow-unauthenticated cmake
3333

34-
RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
34+
RUN curl -sSL --retry 5 https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
3535
&& echo "SHA256: $(sha256sum dotnet-install.sh)" \
3636
&& echo "19b0a7890c371201b944bf0f8cdbb6460d053d63ddbea18cfed3e4199769ce17 dotnet-install.sh" | sha256sum -c \
3737
&& chmod +x ./dotnet-install.sh \

0 commit comments

Comments
 (0)