[FIX]PostgreSQL 84 fix gpg recv-keys

This commit is contained in:
Fabien BOURGEOIS 2020-05-04 09:47:25 +02:00
parent 08b43b6d0a
commit d3f841a459

View File

@ -8,14 +8,15 @@ MAINTAINER "Fabien BOURGEOIS" <fabien@yaltik.com
# explicitly set user/group IDs # explicitly set user/group IDs
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres
ENV GOSU_VERSION 1.7 ENV GOSU_VERSION 1.12
RUN gpg --keyserver pgp.mit.edu --recv-keys \ # RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
B42F6819007F00F88E364FD4036A9C25BF357DD4 \ # Troubles on C6, replaced by :
&& curl -sSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64 -o /bin/gosu \ RUN curl https://keys.openpgp.org/pks/lookup?search=B42F6819007F00F88E364FD4036A9C25BF357DD4\&op=get | gpg --import --status-fd 1
&& chmod +x /bin/gosu \ RUN curl -sSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64 -o /bin/gosu \
&& curl -sSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc -o /tmp/gosu.asc \ && chmod +x /bin/gosu \
&& gpg --verify /tmp/gosu.asc /bin/gosu \ && curl -sSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc -o /tmp/gosu.asc \
&& rm /tmp/gosu.asc && gpg --batch --verify /tmp/gosu.asc /bin/gosu \
&& rm /tmp/gosu.asc
RUN yum -y install postgresql-server; yum clean all; chkconfig postgresql on RUN yum -y install postgresql-server; yum clean all; chkconfig postgresql on