Skip to content

Commit

Permalink
chore: add source imagick extension to php 8.3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Oct 27, 2024
1 parent c6a861b commit ed94d43
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
19 changes: 15 additions & 4 deletions 8.3-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ ARG SWOOLE_VERSION="5.1.5"
# # Phalcon - https://github.com/phalcon/cphalcon
ARG PHALCON_VERSION="5.8.0"

# Imagick - https://github.com/Imagick/imagick
ARG IMAGICK_COMMIT="28f27044e435a2b203e32675e942eb8de620ee58"

# Install dependencies
RUN set -eux \
&& apk add --no-cache \
Expand Down Expand Up @@ -154,10 +157,18 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) imap \
&& true \
\
# # Install imagick
# && pecl install imagick \
# && docker-php-ext-enable imagick \
# && true \
# Install imagick from source (temporarily)
&& mkdir -p /opt/imagick \
&& cd /opt/imagick \
&& git init \
&& git remote add origin https://github.com/Imagick/imagick.git \
&& git fetch origin ${IMAGICK_COMMIT} \
&& git checkout ${IMAGICK_COMMIT} \
&& phpize && ./configure \
&& make -j$(nproc) \
&& make -j$(nproc) install \
&& docker-php-ext-enable imagick \
&& true \
\
# Install igbinary
&& pecl install igbinary \
Expand Down
2 changes: 2 additions & 0 deletions 8.3-fpm/extensions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gd
gettext
gmp
igbinary
imagick
imap
intl
lz4
Expand All @@ -22,6 +23,7 @@ pdo_mysql
pdo_pgsql
pdo_sqlsrv
pgsql
phalcon
psr
rdkafka
redis
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ However, you can still find legacy versions like `7.4.x` or `8.0.x` on [Releases
| gd ||||
| gettext ||||
| gmp ||||
| imagick ||| ? |
| imagick ||| |
| igbinary ||||
| imap ||||
| intl ||||
Expand All @@ -66,7 +66,7 @@ However, you can still find legacy versions like `7.4.x` or `8.0.x` on [Releases
| pdo_pgsql ||||
| pdo_sqlsrv | ✓ <sup>(64-bit only)</sub> | ✓ <sup>(64-bit only)</sub> | ✓ <sup>(64-bit only)</sub> |
| pgsql ||||
| phalcon ||| ? |
| phalcon ||| |
| psr ||||
| redis ||||
| rdkafka ||||
Expand Down

0 comments on commit ed94d43

Please sign in to comment.