Skip to content

Commit

Permalink
Try fix gpg error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chernoskutov Pavel committed Apr 22, 2019
1 parent 24cc20e commit c509a3a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
7 changes: 4 additions & 3 deletions 10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ RUN set -x \
&& apt-get install -y --no-install-recommends ca-certificates wget gnupg dirmngr lsb-release \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"

RUN export GNUPGHOME="$(mktemp -d)" \
&& mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& (gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys $GPG_KEY \
&& (gpg --no-tty --keyserver ipv4.pool.sks-keyservers.net --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver pgp.mit.edu --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver keyserver.pgp.com --recv-keys $GPG_KEY) \
&& gpg --no-tty --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
Expand Down
7 changes: 4 additions & 3 deletions 11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ RUN set -x \
&& apt-get install -y --no-install-recommends ca-certificates wget gnupg dirmngr lsb-release \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"

RUN export GNUPGHOME="$(mktemp -d)" \
&& mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& (gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys $GPG_KEY \
&& (gpg --no-tty --keyserver ipv4.pool.sks-keyservers.net --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver pgp.mit.edu --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver keyserver.pgp.com --recv-keys $GPG_KEY) \
&& gpg --no-tty --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
Expand Down
7 changes: 4 additions & 3 deletions 9.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ RUN set -x \
&& apt-get install -y --no-install-recommends ca-certificates wget gnupg dirmngr lsb-release \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"

RUN export GNUPGHOME="$(mktemp -d)" \
&& mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& (gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys $GPG_KEY \
&& (gpg --no-tty --keyserver ipv4.pool.sks-keyservers.net --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver pgp.mit.edu --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver keyserver.pgp.com --recv-keys $GPG_KEY) \
&& gpg --no-tty --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
Expand Down
7 changes: 4 additions & 3 deletions 9.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ RUN set -x \
&& apt-get install -y --no-install-recommends ca-certificates wget gnupg dirmngr lsb-release \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"

RUN export GNUPGHOME="$(mktemp -d)" \
&& mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& (gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys $GPG_KEY \
&& (gpg --no-tty --keyserver ipv4.pool.sks-keyservers.net --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver pgp.mit.edu --recv-keys $GPG_KEY \
|| gpg --no-tty --keyserver keyserver.pgp.com --recv-keys $GPG_KEY) \
&& gpg --no-tty --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ RUN set -x \
&& apt-get install -y --no-install-recommends ca-certificates wget gnupg dirmngr lsb-release \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& (gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $GPG_KEY \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"

RUN export GNUPGHOME="$(mktemp -d)" \
&& mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& (gpg --no-tty --keyserver ipv4.pool.sks-keyservers.net --recv-keys $GPG_KEY \
|| gpg --keyserver pgp.mit.edu --recv-keys $GPG_KEY \
|| gpg --keyserver keyserver.pgp.com --recv-keys $GPG_KEY) \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
Expand Down

0 comments on commit c509a3a

Please sign in to comment.