Skip to content

Commit a30bf83

Browse files
authored
Merge pull request laradock#228 from lialosiu/master
add options INSTALL_ZIP_ARCHIVE to php-fpm
2 parents 82cbad7 + 1fdf800 commit a30bf83

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ services:
2626
args:
2727
- INSTALL_MONGO=false
2828
- INSTALL_XDEBUG=false
29+
- INSTALL_ZIP_ARCHIVE=false
2930
dockerfile: Dockerfile-70
3031
volumes_from:
3132
- volumes_source

php-fpm/Dockerfile-56

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
3535
#
3636
# - INSTALL_XDEBUG= false
3737
# - INSTALL_MONGO= false
38+
# - INSTALL_ZIP_ARCHIVE= false
3839
#
3940

4041
#####################################
@@ -60,6 +61,18 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
6061
pecl install mongodb \
6162
;fi
6263

64+
#####################################
65+
# ZipArchive:
66+
#####################################
67+
68+
ARG INSTALL_ZIP_ARCHIVE=true
69+
ENV INSTALL_ZIP_ARCHIVE ${INSTALL_ZIP_ARCHIVE}
70+
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
71+
# Install the zip extention
72+
pecl install zip \
73+
;fi
74+
75+
6376
#
6477
#--------------------------------------------------------------------------
6578
# Final Touch

php-fpm/Dockerfile-70

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
3535
#
3636
# - INSTALL_XDEBUG= false
3737
# - INSTALL_MONGO= false
38+
# - INSTALL_ZIP_ARCHIVE= false
3839
#
3940

4041
#####################################
@@ -60,6 +61,18 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
6061
pecl install mongodb \
6162
;fi
6263

64+
#####################################
65+
# ZipArchive:
66+
#####################################
67+
68+
ARG INSTALL_ZIP_ARCHIVE=true
69+
ENV INSTALL_ZIP_ARCHIVE ${INSTALL_ZIP_ARCHIVE}
70+
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
71+
# Install the zip extention
72+
pecl install zip \
73+
;fi
74+
75+
6376
#
6477
#--------------------------------------------------------------------------
6578
# Final Touch

php-fpm/laravel.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ date.timezone=UTC
22
display_errors=Off
33
log_errors=On
44
extension=mongodb.so
5+
extension=zip.so
56

67
; Maximum amount of memory a script may consume (128MB)
78
; http://php.net/memory-limit

0 commit comments

Comments
 (0)