Add POSTGRES_CLIENT_VERSION option

This commit is contained in:
Pavel Bychko
2023-03-04 15:53:37 +03:00
parent 6c8cb6dd85
commit db0d6f9b75
4 changed files with 7 additions and 2 deletions

View File

@ -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
###########################################################################