Skip to content

Commit 82d5a62

Browse files
authored
Merge branch 'master' into add/hot-fix-infrastructure
Signed-off-by: Rasmus <[email protected]>
2 parents 7570141 + 99683bf commit 82d5a62

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

Dockerfile.rocky8

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,11 +1734,17 @@ ARG TINI_GPG_KEY=0527A9B7
17341734
#ADD --checksum=${TINI_CHECKSUM} https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
17351735
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
17361736
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc /tini.asc
1737-
RUN gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys ${TINI_GPG_KEY} \
1738-
&& if ! gpg --verify /tini.asc /tini ; then \
1737+
# NOTE: some build environments with strict firewalling may not allow e.g. hkp.
1738+
# For robustness try different methods in turn until key import succeeds.
1739+
RUN for key in ${TINI_GPG_KEY}; do \
1740+
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" || \
1741+
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys "$key" || \
1742+
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$key" ; \
1743+
done && \
1744+
if ! gpg --verify /tini.asc /tini ; then \
17391745
echo "FATAL: failed to verify tini binary"; \
17401746
exit 1 ; \
1741-
fi
1747+
fi
17421748
RUN chmod +x /tini
17431749
ENTRYPOINT ["/tini", "--"]
17441750

Dockerfile.rocky9

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,11 +1621,17 @@ ARG TINI_GPG_KEY=0527A9B7
16211621
#ADD --checksum=${TINI_CHECKSUM} https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
16221622
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
16231623
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc /tini.asc
1624-
RUN gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys ${TINI_GPG_KEY} \
1625-
&& if ! gpg --verify /tini.asc /tini ; then \
1624+
# NOTE: some build environments with strict firewalling may not allow e.g. hkp.
1625+
# For robustness try different methods in turn until key import succeeds.
1626+
RUN for key in ${TINI_GPG_KEY}; do \
1627+
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" || \
1628+
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys "$key" || \
1629+
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$key" ; \
1630+
done && \
1631+
if ! gpg --verify /tini.asc /tini ; then \
16261632
echo "FATAL: failed to verify tini binary"; \
16271633
exit 1 ; \
1628-
fi
1634+
fi
16291635
RUN chmod +x /tini
16301636
ENTRYPOINT ["/tini", "--"]
16311637

docker-compose_development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ volumes:
488488
device: ${DOCKER_MIGRID_ROOT}/state
489489
o: bind
490490

491-
# NOTE: we don't bother setting up persistent data outside state here
491+
# NOTE: we don't bother setting up other persistent data outside state here
492492

493493
log:
494494
# Volume used to contain the mig state log folder shared by all containers

docker-compose_development_gdp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ volumes:
492492
device: ${DOCKER_MIGRID_ROOT}/state
493493
o: bind
494494

495-
# NOTE: we don't bother setting up persistent data outside state here
495+
# NOTE: we don't bother setting up other persistent data outside state here
496496

497497
log:
498498
# Volume used to contain the mig state log folder shared by all containers

0 commit comments

Comments
 (0)