Skip to content

Commit 0980523

Browse files
sneycamposbestlong
authored andcommitted
POSTGIS Postgres Extension (laradock#2110)
* created PHP_FPM_INSTALL_POSTGIS variable * install postgis if needs * install_postgis variable
1 parent d8b3cb5 commit 0980523

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ services:
155155
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
156156
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
157157
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
158+
- INSTALL_POSTGIS=${PHP_FPM_INSTALL_POSTGIS}
158159
- INSTALL_INTL=${PHP_FPM_INSTALL_INTL}
159160
- INSTALL_GHOSTSCRIPT=${PHP_FPM_INSTALL_GHOSTSCRIPT}
160161
- INSTALL_LDAP=${PHP_FPM_INSTALL_LDAP}

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ PHP_FPM_INSTALL_LDAP=false
169169
PHP_FPM_INSTALL_PHALCON=false
170170
PHP_FPM_INSTALL_SWOOLE=false
171171
PHP_FPM_INSTALL_PG_CLIENT=false
172+
PHP_FPM_INSTALL_POSTGIS=false
172173
PHP_FPM_INSTALL_PCNTL=false
173174
PHP_FPM_INSTALL_CALENDAR=false
174175
PHP_FPM_INSTALL_FAKETIME=false

php-fpm/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,17 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
128128
###########################################################################
129129

130130
ARG INSTALL_PG_CLIENT=false
131+
ARG INSTALL_POSTGIS=false
131132

132133
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
133134
# Create folders if not exists (https://github.com/tianon/docker-brew-debian/issues/65)
134135
mkdir -p /usr/share/man/man1 && \
135136
mkdir -p /usr/share/man/man7 && \
136137
# Install the pgsql client
137-
apt-get install -y postgresql-client \
138+
apt-get install -y postgresql-client && \
139+
if [ ${INSTALL_POSTGIS} = true ]; then \
140+
apt-get install -y postgis; \
141+
fi \
138142
;fi
139143

140144
###########################################################################

0 commit comments

Comments
 (0)