Skip to content

Commit 092cc6c

Browse files
committed
Use docker-php-ext-enable to enable redis and xdebug
1 parent fcbf246 commit 092cc6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN apt-get update && apt-get -y install wget bsdtar libaio1 && \
4848

4949
# Install redis
5050
RUN pecl install redis \
51-
&& echo "extension=redis.so" >> /usr/local/etc/php/conf.d/redis.ini
51+
&& docker-php-ext-enable redis
5252

5353
# Install Composer
5454
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer

apache-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
if [[ $XDEBUG_ENABLED == true ]]; then
4-
echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini
4+
docker-php-ext-enable xdebug
55
echo "xdebug.var_display_max_depth=5" >> /usr/local/etc/php/conf.d/xdebug.ini
66
fi
77

0 commit comments

Comments
 (0)