File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff 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
17351735ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
17361736ADD 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
17421748RUN chmod +x /tini
17431749ENTRYPOINT ["/tini", "--"]
17441750
Original file line number Diff line number Diff 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
16221622ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
16231623ADD 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
16291635RUN chmod +x /tini
16301636ENTRYPOINT ["/tini", "--"]
16311637
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments