[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
1 changed files with 9 additions and 8 deletions

View File

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