Skip to content

Commit

Permalink
feat: add five new extensions for php 7.4, 8.0, 8.1 (#15)
Browse files Browse the repository at this point in the history
- opcache
- sqlsrv
- pdo_sqlsrv
- redis
- rdkafka
  • Loading branch information
joseluisq authored Nov 23, 2022
1 parent c729098 commit d60ce9b
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 13 deletions.
31 changes: 30 additions & 1 deletion 7.4-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN set -eux \
libmcrypt \
libpng \
libpq \
librdkafka \
libssh2 \
libstdc++ \
libtool \
Expand All @@ -39,6 +40,7 @@ RUN set -eux \
rabbitmq-c \
tidyhtml \
tzdata \
unixodbc \
vips \
yaml

Expand All @@ -55,6 +57,7 @@ RUN set -eux \
curl-dev \
freetds-dev \
freetype-dev \
g++ \
gcc \
gettext-dev \
git \
Expand All @@ -67,6 +70,7 @@ RUN set -eux \
libjpeg-turbo-dev \
libmcrypt-dev \
libpng-dev \
librdkafka-dev \
libssh2-dev \
libwebp-dev \
libxml2-dev \
Expand All @@ -80,6 +84,7 @@ RUN set -eux \
postgresql-dev \
rabbitmq-c-dev \
tidyhtml-dev \
unixodbc-dev \
vips-dev \
yaml-dev \
zlib-dev \
Expand All @@ -97,7 +102,7 @@ RUN set -eux \
################################
\
# Install gd
&& ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \
&& ln -s /usr/lib/$(apk --print-arch)-linux-gnu/libXpm.* /usr/lib/ \
&& docker-php-ext-configure gd \
--enable-gd \
--with-webp \
Expand Down Expand Up @@ -181,6 +186,10 @@ RUN set -eux \
&& docker-php-ext-enable oauth \
&& true \
\
# Install opcache
&& docker-php-ext-install -j$(nproc) opcache \
&& true \
\
# Install pdo_mysql
&& docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
Expand All @@ -202,11 +211,31 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) pgsql \
&& true \
\
# Install sqlsrv
&& pecl install sqlsrv \
&& docker-php-ext-enable sqlsrv \
&& true \
\
# Install pdo_sqlsrv
&& pecl install pdo_sqlsrv \
&& docker-php-ext-enable pdo_sqlsrv \
&& true \
\
# Install psr
&& pecl install psr \
&& docker-php-ext-enable psr \
&& true \
\
# Install redis
&& pecl install redis \
&& docker-php-ext-enable redis \
&& true \
\
# Install rdkafka
&& pecl install rdkafka \
&& docker-php-ext-enable rdkafka \
&& true \
\
# Install soap
&& docker-php-ext-install -j$(nproc) soap \
&& true \
Expand Down
31 changes: 30 additions & 1 deletion 8.0-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN set -eux \
libmcrypt \
libpng \
libpq \
librdkafka \
libssh2 \
libstdc++ \
libtool \
Expand All @@ -39,6 +40,7 @@ RUN set -eux \
rabbitmq-c \
tidyhtml \
tzdata \
unixodbc \
vips \
yaml

Expand All @@ -55,6 +57,7 @@ RUN set -eux \
curl-dev \
freetds-dev \
freetype-dev \
g++ \
gcc \
gettext-dev \
git \
Expand All @@ -67,6 +70,7 @@ RUN set -eux \
libjpeg-turbo-dev \
libmcrypt-dev \
libpng-dev \
librdkafka-dev \
libssh2-dev \
libwebp-dev \
libxml2-dev \
Expand All @@ -79,6 +83,7 @@ RUN set -eux \
postgresql-dev \
rabbitmq-c-dev \
tidyhtml-dev \
unixodbc-dev \
vips-dev \
yaml-dev \
zlib-dev \
Expand All @@ -97,7 +102,7 @@ RUN set -eux \
################################
\
# Install gd
&& ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \
&& ln -s /usr/lib/$(apk --print-arch)-linux-gnu/libXpm.* /usr/lib/ \
&& docker-php-ext-configure gd \
--enable-gd \
--with-webp \
Expand Down Expand Up @@ -183,6 +188,10 @@ RUN set -eux \
&& docker-php-ext-enable oauth \
&& true \
\
# Install opcache
&& docker-php-ext-install -j$(nproc) opcache \
&& true \
\
# Install pdo_mysql
&& docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
Expand All @@ -204,11 +213,31 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) pgsql \
&& true \
\
# Install sqlsrv
&& pecl install sqlsrv \
&& docker-php-ext-enable sqlsrv \
&& true \
\
# Install pdo_sqlsrv
&& pecl install pdo_sqlsrv \
&& docker-php-ext-enable pdo_sqlsrv \
&& true \
\
# Install psr
&& pecl install psr \
&& docker-php-ext-enable psr \
&& true \
\
# Install redis
&& pecl install redis \
&& docker-php-ext-enable redis \
&& true \
\
# Install rdkafka
&& pecl install rdkafka \
&& docker-php-ext-enable rdkafka \
&& true \
\
# Install soap
&& docker-php-ext-install -j$(nproc) soap \
&& true \
Expand Down
43 changes: 36 additions & 7 deletions 8.1-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN set -eux \
libjpeg-turbo \
libpng \
libpq \
librdkafka \
libssh2 \
libstdc++ \
libtool \
Expand All @@ -38,6 +39,7 @@ RUN set -eux \
rabbitmq-c \
tidyhtml \
tzdata \
unixodbc \
vips \
yaml

Expand All @@ -54,6 +56,7 @@ RUN set -eux \
curl-dev \
freetds-dev \
freetype-dev \
g++ \
gcc \
gettext-dev \
git \
Expand All @@ -65,6 +68,7 @@ RUN set -eux \
libc-dev \
libjpeg-turbo-dev \
libpng-dev \
librdkafka-dev \
libssh2-dev \
libwebp-dev \
libxml2-dev \
Expand All @@ -77,6 +81,7 @@ RUN set -eux \
postgresql-dev \
rabbitmq-c-dev \
tidyhtml-dev \
unixodbc-dev \
vips-dev \
yaml-dev \
zlib-dev \
Expand All @@ -95,7 +100,7 @@ RUN set -eux \
################################
\
# Install gd
&& ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/ \
&& ln -s /usr/lib/$(apk --print-arch)-linux-gnu/libXpm.* /usr/lib/ \
&& docker-php-ext-configure gd \
--enable-gd \
--with-webp \
Expand Down Expand Up @@ -150,12 +155,12 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) intl \
&& true \
\
# # Install mcrypt
# DEPRECATED: This dependency is dead so move to `libsodium` or `openssl`
# && pecl install mcrypt-1.0.4 \
# && docker-php-ext-enable mcrypt \
# && true \
# \
## Install mcrypt
## DEPRECATED: This dependency is dead so move to `libsodium` or `openssl`
## && pecl install mcrypt-1.0.4 \
## && docker-php-ext-enable mcrypt \
## && true \
## \
# Install memcache
&& pecl install memcache \
&& docker-php-ext-enable memcache \
Expand All @@ -175,6 +180,10 @@ RUN set -eux \
&& docker-php-ext-enable oauth \
&& true \
\
# Install opcache
&& docker-php-ext-install -j$(nproc) opcache \
&& true \
\
# Install pdo_mysql
&& docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
Expand All @@ -196,11 +205,31 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) pgsql \
&& true \
\
# Install sqlsrv
&& pecl install sqlsrv \
&& docker-php-ext-enable sqlsrv \
&& true \
\
# Install pdo_sqlsrv
&& pecl install pdo_sqlsrv \
&& docker-php-ext-enable pdo_sqlsrv \
&& true \
\
# Install psr
&& pecl install psr \
&& docker-php-ext-enable psr \
&& true \
\
# Install redis
&& pecl install redis \
&& docker-php-ext-enable redis \
&& true \
\
# Install rdkafka
&& pecl install rdkafka \
&& docker-php-ext-enable rdkafka \
&& true \
\
# Install soap
&& docker-php-ext-install -j$(nproc) soap \
&& true \
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,29 @@
| mongodb ||||
| mysqli ||||
| oauth ||||
| opcache ||||
| pcntl ||||
| pdo_dblib ||||
| pdo_mysql ||||
| pdo_pgsql ||||
| pdo_sqlsrv ||||
| pgsql ||||
| psr ||||
| redis ||||
| rdkafka ||||
| soap ||||
| sockets ||||
| sqlsrv ||||
| ssh2 ||||
| swoole ||||
| sysvmsg ||||
| sysvsem ||||
| sysvshm ||||
| tidy ||||
| vips ||||
| xmlrpc || ? | ? |
| xsl ||||
| yaml ||||
| swoole ||||
| sysvmsg ||||
| sysvsem ||||
| sysvshm ||||
| zip ||||
|   |   |   |   |
| **Others** | | | |
Expand Down

0 comments on commit d60ce9b

Please sign in to comment.