From 4711bde43a52c5e69de80c0d5f6cd42f50ac2d85 Mon Sep 17 00:00:00 2001 From: Ghifari160 Date: Wed, 13 Jun 2018 15:52:41 -0500 Subject: [PATCH 1/2] Enable MySQLi PHP5.5 does not build with MySQLi by default. MySQLi in this image is configured to use mysqlnd. - Add --with-mysqli parameter to PHP's ./configure build step --- 16.04/Dockerfile | 3 ++- 17.10/Dockerfile | 3 ++- 18.04/Dockerfile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index 6903f21..ac96193 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -27,7 +27,8 @@ RUN apt update && \ # Build and install PHP v5.5.38 cd /php-src && ./buildconf --force && \ - ./configure --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts && \ + ./configure --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts \ + --with-mysqli && \ make && make install && \ # Clean up build environment diff --git a/17.10/Dockerfile b/17.10/Dockerfile index f348e37..6f9c768 100644 --- a/17.10/Dockerfile +++ b/17.10/Dockerfile @@ -27,7 +27,8 @@ RUN apt update && \ # Build and install PHP v5.5.38 cd /php-src && ./buildconf --force && \ - ./configure --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts && \ + ./configure --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts \ + --with-mysqli && \ make && make install && \ # Clean up build environment diff --git a/18.04/Dockerfile b/18.04/Dockerfile index 0a867f2..c861ac9 100644 --- a/18.04/Dockerfile +++ b/18.04/Dockerfile @@ -27,7 +27,8 @@ RUN apt update && \ # Build and install PHP v5.5.38 cd /php-src && ./buildconf --force && \ - ./configure --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts && \ + ./configure --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts \ + --with-mysqli && \ make && make install && \ # Clean up build environment From a31b2c00426575e8f20a6b073a6f31511f96e384 Mon Sep 17 00:00:00 2001 From: Ghifari160 Date: Wed, 13 Jun 2018 21:23:26 -0500 Subject: [PATCH 2/2] Enable Xdebug Xdebug increase the ease of debuging in PHP. - Add Xdebug build step - Add xdebug.so Zend module to PHP.ini --- 16.04/Dockerfile | 11 ++++++++++- 17.10/Dockerfile | 11 ++++++++++- 18.04/Dockerfile | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index ac96193..4097565 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -31,8 +31,17 @@ RUN apt update && \ --with-mysqli && \ make && make install && \ +# Build and install Xdebug + cd / && \ + wget https://xdebug.org/files/xdebug-2.5.5.tgz -O xdebug.tar.gz && \ + tar -xvzf xdebug.tar.gz && cd /xdebug-2.5.5 && \ + phpize && \ + ./configure --enable-xdebug && \ + make && make install && \ + # Clean up build environment - rm -rf /php-src/* /bison-2.7/* /bison-2.7.tar.gz && \ + rm -rf /php-src/* /bison-2.7/* /bison-2.7.tar.gz /xdebug-2.5.5/* \ + /xdebug.tar.gz && \ # Uninstall build prerequisites apt remove --autoremove -y autoconf automake libtool gcc g++ \ diff --git a/17.10/Dockerfile b/17.10/Dockerfile index 6f9c768..30821ad 100644 --- a/17.10/Dockerfile +++ b/17.10/Dockerfile @@ -31,8 +31,17 @@ RUN apt update && \ --with-mysqli && \ make && make install && \ +# Build and install Xdebug + cd / && \ + wget https://xdebug.org/files/xdebug-2.5.5.tgz -O xdebug.tar.gz && \ + tar -xvzf xdebug.tar.gz && cd /xdebug-2.5.5 && \ + phpize && \ + ./configure --enable-xdebug && \ + make && make install && \ + # Clean up build environment - rm -rf /php-src/* /bison-2.7/* /bison-2.7.tar.gz && \ + rm -rf /php-src/* /bison-2.7/* /bison-2.7.tar.gz /xdebug-2.5.5/* \ + /xdebug.tar.gz && \ # Uninstall build prerequisites apt remove --autoremove -y autoconf automake libtool gcc g++ \ diff --git a/18.04/Dockerfile b/18.04/Dockerfile index c861ac9..2958a18 100644 --- a/18.04/Dockerfile +++ b/18.04/Dockerfile @@ -31,8 +31,17 @@ RUN apt update && \ --with-mysqli && \ make && make install && \ +# Build and install Xdebug + cd / && \ + wget https://xdebug.org/files/xdebug-2.5.5.tgz -O xdebug.tar.gz && \ + tar -xvzf xdebug.tar.gz && cd /xdebug-2.5.5 && \ + phpize && \ + ./configure --enable-xdebug && \ + make && make install && \ + # Clean up build environment - rm -rf /php-src/* /bison-2.7/* /bison-2.7.tar.gz && \ + rm -rf /php-src/* /bison-2.7/* /bison-2.7.tar.gz /xdebug-2.5.5/* \ + /xdebug.tar.gz && \ # Uninstall build prerequisites apt remove --autoremove -y autoconf automake libtool gcc g++ \