From 4dceee675760737d1a0011de8cbe838b6fe2eb6a Mon Sep 17 00:00:00 2001
From: Alan Nelson <alan.nelson@nebraska.edu>
Date: Thu, 7 Oct 2021 15:03:38 -0500
Subject: [PATCH] Add PHP dependencies to Unit Test images

---
 php-unit-test/7.3/Dockerfile | 4 +++-
 php-unit-test/7.4/Dockerfile | 4 +++-
 php-unit-test/8.0/Dockerfile | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/php-unit-test/7.3/Dockerfile b/php-unit-test/7.3/Dockerfile
index 244fc6a..23d6386 100644
--- a/php-unit-test/7.3/Dockerfile
+++ b/php-unit-test/7.3/Dockerfile
@@ -12,9 +12,11 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
       org.label-schema.schema-version="1.0" \
       maintainer="Alan Nelson <alan.nelson@nebraska.edu>"
 
-RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \
+RUN export BUILD_DEPS="bzip2-dev icu-dev libpng-dev libzip-dev openldap-dev" \
+    && apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS $BUILD_DEPS \
     && pecl channel-update pecl.php.net \
     && pecl install xdebug redis \
+    && docker-php-ext-install bz2 gd intl ldap mysqli pdo_mysql zip \
     && docker-php-ext-enable xdebug redis \
     && apk del --no-cache $PHPIZE_DEPS
 RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \
diff --git a/php-unit-test/7.4/Dockerfile b/php-unit-test/7.4/Dockerfile
index 91b4219..e547b9e 100644
--- a/php-unit-test/7.4/Dockerfile
+++ b/php-unit-test/7.4/Dockerfile
@@ -12,9 +12,11 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
       org.label-schema.schema-version="1.0" \
       maintainer="Alan Nelson <alan.nelson@nebraska.edu>"
 
-RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \
+RUN export BUILD_DEPS="bzip2-dev icu-dev libpng-dev libzip-dev openldap-dev" \
+    && apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS $BUILD_DEPS \
     && pecl channel-update pecl.php.net \
     && pecl install xdebug redis \
+    && docker-php-ext-install bz2 gd intl ldap mysqli pdo_mysql zip \
     && docker-php-ext-enable xdebug redis \
     && apk del --no-cache $PHPIZE_DEPS
 RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \
diff --git a/php-unit-test/8.0/Dockerfile b/php-unit-test/8.0/Dockerfile
index b2a4f21..f5721eb 100644
--- a/php-unit-test/8.0/Dockerfile
+++ b/php-unit-test/8.0/Dockerfile
@@ -12,9 +12,11 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
       org.label-schema.schema-version="1.0" \
       maintainer="Alan Nelson <alan.nelson@nebraska.edu>"
 
-RUN apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS \
+RUN export BUILD_DEPS="bzip2-dev icu-dev libpng-dev libzip-dev openldap-dev" \
+    && apk add --no-cache bash nodejs nodejs-npm $PHPIZE_DEPS $BUILD_DEPS \
     && pecl channel-update pecl.php.net \
     && pecl install xdebug redis \
+    && docker-php-ext-install bz2 gd intl ldap mysqli pdo_mysql zip \
     && docker-php-ext-enable xdebug redis \
     && apk del --no-cache $PHPIZE_DEPS
 RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \
-- 
GitLab