Merge pull request #3360 from abordage/add_postgres_client_version_option

Add POSTGRES_CLIENT_VERSION option
This commit is contained in:
Shao Yu-Lung (Allen)
2023-03-30 08:05:44 +08:00
committed by GitHub
4 changed files with 7 additions and 2 deletions

View File

@ -1289,6 +1289,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
USER root
ARG INSTALL_PG_CLIENT=false
ARG PG_CLIENT_VERSION
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
# Install the pgsql client
@ -1296,7 +1297,7 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
&& 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 -y install postgresql-client-12 \
&& apt-get -y install postgresql-client-${PG_CLIENT_VERSION} \
;fi
###########################################################################