Modify dockerfile to add postgreSQL PGP key 54/84954/1
authorzhangab <zhanganbing@chinamobile.com>
Wed, 10 Apr 2019 21:47:05 +0000 (05:47 +0800)
committerzhangab <zhanganbing@chinamobile.com>
Wed, 10 Apr 2019 21:47:09 +0000 (05:47 +0800)
Change-Id: I4a690cbebab0baa630142c0d24e73c167b60a676
Issue-ID: USECASEUI-236
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
standalone/src/main/assembly/Dockerfile

index fe73b47..eb17387 100644 (file)
@@ -12,9 +12,10 @@ ENV PG_HOME=/etc/postgresql \
     PG_USR_LIB=/usr/lib/postgresql \
     PG_LOGDIR=/var/log/postgresql
 
-# Install PostgreSQL 9.5
-RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
-    echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list
+# Add the PostgreSQL PGP key to verify their Debian packages
+RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
+# Add PostgreSQL's repository
+RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
 
 # Update the Ubuntu and install tools
 RUN apt-get update && \