Fallback to other key servers if ha.pool.sks-keyservers.net is not available

This commit is contained in:
Marco Ferrari 2020-10-30 11:50:49 +01:00
parent 7ed2bbc699
commit 377d78981c

View file

@ -157,7 +157,10 @@ RUN curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wge
############################## ##############################
RUN wget --tries=5 -O phive.phar https://phar.io/releases/phive.phar \ RUN wget --tries=5 -O phive.phar https://phar.io/releases/phive.phar \
&& wget --tries=5 -O phive.phar.asc https://phar.io/releases/phive.phar.asc \ && wget --tries=5 -O phive.phar.asc https://phar.io/releases/phive.phar.asc \
&& gpg --keyserver pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79 \ && PHAR_KEY_ID="0x9D8A98B29B2D5D79" \
&& ( gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$PHAR_KEY_ID" \
|| gpg --keyserver pgp.mit.edu --recv-keys "$PHAR_KEY_ID" \
|| gpg --keyserver keyserver.pgp.com --recv-keys "$PHAR_KEY_ID" ) \
&& gpg --verify phive.phar.asc phive.phar \ && gpg --verify phive.phar.asc phive.phar \
&& chmod +x phive.phar \ && chmod +x phive.phar \
&& mv phive.phar /usr/local/bin/phive \ && mv phive.phar /usr/local/bin/phive \