Skip to content

Commit

Permalink
Merge pull request laradock#1210 from nellonican/fix-env-vars
Browse files Browse the repository at this point in the history
Fix variable issues.
  • Loading branch information
Mahmoudz authored Oct 25, 2017
2 parents 4682aff + a311149 commit 152c896
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ services:
- INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK}
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
- INSTALL_DUSK_DEPS=${WORKSPACE_INSTALL_DUSK_DEPS}
- INSTALL_PG_CLIENT=${WORKSPACE_INSTALL_PG_CLIENT}
- PUID=${WORKSPACE_PUID}
- PGID=${WORKSPACE_PGID}
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
Expand Down Expand Up @@ -81,7 +82,7 @@ services:
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
- PHP_FPM_PG_CLIENT=${PHP_FPM_PG_CLIENT}
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
- INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER}
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
- INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
Expand Down
3 changes: 2 additions & 1 deletion env-example
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
WORKSPACE_INSTALL_IMAGEMAGICK=false
WORKSPACE_INSTALL_TERRAFORM=false
WORKSPACE_INSTALL_DUSK_DEPS=false
WORKSPACE_INSTALL_PG_CLIENT=false
WORKSPACE_PUID=1000
WORKSPACE_PGID=1000
WORKSPACE_CHROME_DRIVER_VERSION=2.32
WORKSPACE_NODE_VERSION=stable
WORKSPACE_YARN_VERSION=latest
WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222
WORKSPACE_PG_CLIENT=true

### PHP_FPM ############################################################################################################

Expand All @@ -86,6 +86,7 @@ PHP_FPM_INSTALL_LDAP=false
PHP_FPM_INSTALL_SWOOLE=false
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=false
PHP_FPM_INSTALL_IMAGEMAGICK=false
PHP_FPM_INSTALL_PG_CLIENT=false

### NGINX ##############################################################################################################

Expand Down
4 changes: 2 additions & 2 deletions php-fpm/Dockerfile-56
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
# pgsql client
#####################################

ARG PHP_FPM_PG_CLIENT=true
RUN if [ ${PHP_FPM_PG_CLIENT} = true ]; then \
ARG INSTALL_PG_CLIENT=false
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
# Install the pgsql clint
apt-get update -yqq && \
apt-get install -y postgresql-client \
Expand Down
4 changes: 2 additions & 2 deletions php-fpm/Dockerfile-70
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
# pgsql client
#####################################

ARG PHP_FPM_PG_CLIENT=false
RUN if [ ${PHP_FPM_PG_CLIENT} = true ]; then \
ARG INSTALL_PG_CLIENT=false
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
# Install the pgsql client
apt-get update -yqq && \
apt-get install -y postgresql-client \
Expand Down
4 changes: 2 additions & 2 deletions php-fpm/Dockerfile-71
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
# pgsql client
#####################################

ARG PHP_FPM_PG_CLIENT=false
RUN if [ ${PHP_FPM_PG_CLIENT} = true ]; then \
ARG INSTALL_PG_CLIENT=false
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
# Install the pgsql client
apt-get update -yqq && \
apt-get install -y postgresql-client \
Expand Down
7 changes: 4 additions & 3 deletions workspace/Dockerfile-56
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,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 \
Expand Down
7 changes: 4 additions & 3 deletions workspace/Dockerfile-70
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,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 client
apt-get update -yqq && \
apt-get -y install postgresql-client \
Expand Down
6 changes: 4 additions & 2 deletions workspace/Dockerfile-71
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 152c896

Please sign in to comment.