Skip to content

Commit 86ebbfb

Browse files
Adding exif/redis to php-fpm 56 and 71
1 parent a35287b commit 86ebbfb

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

php-fpm/Dockerfile-56

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
107107
docker-php-ext-enable memcached \
108108
;fi
109109

110+
#####################################
111+
# Exif:
112+
#####################################
113+
114+
ARG INSTALL_EXIF=false
115+
RUN if [ ${INSTALL_EXIF} = true ]; then \
116+
# Enable Exif PHP extentions requirements
117+
docker-php-ext-install exif && \
118+
docker-php-ext-enable exif \
119+
;fi
120+
110121
#####################################
111122
# PHP Aerospike:
112123
#####################################

php-fpm/Dockerfile-70

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
6161
;fi
6262

6363
#####################################
64-
# PHP REDIS EXTENSION FOR PHP 7.0
64+
# PHP REDIS EXTENSION FOR PHP 7
6565
#####################################
66+
6667
ARG INSTALL_PHPREDIS=false
6768
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
6869
# Install Php Redis Extension

php-fpm/Dockerfile-71

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
4848
docker-php-ext-enable xdebug \
4949
;fi
5050

51+
#####################################
52+
# PHP REDIS EXTENSION FOR PHP 7
53+
#####################################
54+
55+
ARG INSTALL_PHPREDIS=false
56+
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
57+
# Install Php Redis Extension
58+
pecl install -o -f redis \
59+
&& rm -rf /tmp/pear \
60+
&& docker-php-ext-enable redis \
61+
;fi
62+
5163
# Copy xdebug configration for remote debugging
5264
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
5365

@@ -94,6 +106,17 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
94106
&& docker-php-ext-enable memcached \
95107
;fi
96108

109+
#####################################
110+
# Exif:
111+
#####################################
112+
113+
ARG INSTALL_EXIF=false
114+
RUN if [ ${INSTALL_EXIF} = true ]; then \
115+
# Enable Exif PHP extentions requirements
116+
docker-php-ext-install exif && \
117+
docker-php-ext-enable exif \
118+
;fi
119+
97120
#####################################
98121
# PHP Aerospike:
99122
#####################################

0 commit comments

Comments
 (0)