Skip to content

Commit 17970de

Browse files
authored
Use ponyup retries and longer API timeout in Dockerfiles (#5101)
The nightly image build failed because ponyup timed out querying Cloudsmith for changelog-tool. ponyup 0.14.0 added --api-timeout and 0.15.1 added --retries. Bump the API timeout from 15s to 30s and retry up to 3 times to handle transient Cloudsmith issues.
1 parent fbcf83a commit 17970de

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.dockerfiles/nightly/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN apk add --update --no-cache \
1212
git
1313

1414
RUN sh -c "$(curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh)" \
15-
&& ponyup update ponyc nightly \
16-
&& ponyup update corral nightly \
17-
&& ponyup update changelog-tool nightly
15+
&& ponyup --api-timeout 30 update ponyc nightly --retries 3 \
16+
&& ponyup --api-timeout 30 update corral nightly --retries 3 \
17+
&& ponyup --api-timeout 30 update changelog-tool nightly --retries 3
1818

1919
WORKDIR /src/main
2020

.dockerfiles/release/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN apk add --update --no-cache \
1212
git
1313

1414
RUN sh -c "$(curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh)" \
15-
&& ponyup update ponyc release \
16-
&& ponyup update corral release \
17-
&& ponyup update changelog-tool release
15+
&& ponyup --api-timeout 30 update ponyc release --retries 3 \
16+
&& ponyup --api-timeout 30 update corral release --retries 3 \
17+
&& ponyup --api-timeout 30 update changelog-tool release --retries 3
1818

1919
WORKDIR /src/main
2020

0 commit comments

Comments
 (0)