Merge pull request #2695 from Marcuzz/master

fix: use postgresql-client-12 in workspace
This commit is contained in:
Shao Yu-Lung (Allen) 2020-09-04 09:20:40 +08:00 committed by GitHub
commit e6a0663790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1160,10 +1160,10 @@ ARG INSTALL_PG_CLIENT=false
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
# Install the pgsql client # Install the pgsql client
apt-get install wget \ apt-get install wget \
&& add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
&& apt-get update \ && apt-get update \
&& apt-get -y install postgresql-client-10 \ && apt-get -y install postgresql-client-12 \
;fi ;fi
########################################################################### ###########################################################################