Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 40c4422

Browse files
authored
PR #1827: use kernel.org for GNU Hello
1 parent fd2ee9f commit 40c4422

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

examples/multistage/Dockerfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ RUN dnf install -y \
1616
WORKDIR /usr/local/src
1717

1818
# GNU Hello. Install using DESTDIR to make copying below easier.
19-
RUN wget -nv https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz
20-
RUN tar xf hello-2.10.tar.gz \
21-
&& cd hello-2.10 \
19+
#
20+
# This downloads from a specific mirror [1] that smelled reliable because both
21+
# ftp.gnu.org itself and the mirror alias ftpmirror.gnu.org are unreliable.
22+
# Specifically, ftpmirror.gnu.org frequently ends up a tripadvisor.com, which
23+
# is frequently HTTP 500.
24+
#
25+
# [1]: https://www.gnu.org/prep/ftp.html
26+
ARG gnu_mirror=mirrors.kernel.org/gnu
27+
ARG version=2.12.1
28+
RUN wget -nv https://${gnu_mirror}/hello/hello-${version}.tar.gz
29+
RUN tar xf hello-${version}.tar.gz \
30+
&& cd hello-${version} \
2231
&& ./configure \
2332
&& make -j $(getconf _NPROCESSORS_ONLN) \
2433
&& make install DESTDIR=/hello

0 commit comments

Comments
 (0)