Skip to content

Commit 4f5dfbc

Browse files
authored
Merge pull request laradock#287 from luciano-jr/bugfix/php-fpm5.6-aerospike
Bugfix/php fpm5.6 aerospike
2 parents a9ecdd0 + 6cc58de commit 4f5dfbc

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

php-fpm/Dockerfile-56

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,28 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
8383
docker-php-ext-enable memcached \
8484
;fi
8585

86+
#####################################
87+
# PHP Aerospike:
88+
#####################################
89+
90+
ARG INSTALL_AEROSPIKE_EXTENSION=true
91+
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
92+
# Copy aerospike configration for remote debugging
93+
COPY ./aerospike.ini /usr/local/etc/php/conf.d/aerospike.ini
94+
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
95+
# Install the php aerospike extension
96+
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
97+
&& mkdir -p aerospike-client-php \
98+
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
99+
&& ( \
100+
cd aerospike-client-php/src/aerospike \
101+
&& phpize \
102+
&& ./build.sh \
103+
&& make install \
104+
) \
105+
&& rm /tmp/aerospike-client-php.tar.gz \
106+
;fi
107+
86108
#####################################
87109
# Opcache:
88110
#####################################

0 commit comments

Comments
 (0)