Fix variable issues.

Also made the variables introduced with the psql client consistent
with the existing ones. Fixes #1208
This commit is contained in:
Thorvald Falkenburg
2017-10-25 11:40:47 +02:00
parent c05c675408
commit f4ede08b9c
8 changed files with 22 additions and 15 deletions

View File

@ -626,8 +626,10 @@ RUN if [ ${INSTALL_TERRAFORM} = true ]; then \
#####################################
# pgsql client
#####################################
ARG WORKSPACE_PG_CLIENT=false
RUN if [ ${WORKSPACE_PG_CLIENT} = true ]; then \
USER root
ARG INSTALL_PG_CLIENT=false
ENV INSTALL_PG_CLIENT ${INSTALL_PG_CLIENT}
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
# Install the pgsql clint
apt-get update -yqq && \
apt-get -y install postgresql-client \