Add POSTGRES_CLIENT_VERSION option
This commit is contained in:
@ -1284,6 +1284,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
|
||||
@ -1291,7 +1292,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
|
||||
|
||||
###########################################################################
|
||||
|
Reference in New Issue
Block a user