Skip to content

Commit bed640f

Browse files
committed
PHP8 Image working
1 parent 225b3cb commit bed640f

13 files changed

Lines changed: 55 additions & 16 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
version: [7.1, 7.2, 7.3, 7.4]
14+
version: [7.1, 7.2, 7.3, 7.4, 8.0]
1515
type: ['', '-prod']
1616

1717
steps:

7.1-prod/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ RUN adduser -D -u 1337 kool \
5252
soap \
5353
xml \
5454
zip \
55-
&& pecl install imagick redis \
55+
&& pecl install imagick \
56+
&& pecl install redis \
5657
&& docker-php-ext-enable imagick \
5758
&& docker-php-ext-enable redis \
5859
&& cp "/usr/local/etc/php/php.ini-production" "/usr/local/etc/php/php.ini" \

7.1/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ RUN adduser -D -u 1337 kool \
5252
soap \
5353
xml \
5454
zip \
55-
&& pecl install imagick redis xdebug \
55+
&& pecl install imagick \
56+
&& pecl install redis xdebug \
5657
&& docker-php-ext-enable imagick \
5758
&& docker-php-ext-enable redis \
5859
&& cp "/usr/local/etc/php/php.ini-development" "/usr/local/etc/php/php.ini" \

7.2-prod/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ RUN adduser -D -u 1337 kool \
5252
soap \
5353
xml \
5454
zip \
55-
&& pecl install imagick redis \
55+
&& pecl install imagick \
56+
&& pecl install redis \
5657
&& docker-php-ext-enable imagick \
5758
&& docker-php-ext-enable redis \
5859
&& cp "/usr/local/etc/php/php.ini-production" "/usr/local/etc/php/php.ini" \

7.2/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ RUN adduser -D -u 1337 kool \
5252
soap \
5353
xml \
5454
zip \
55-
&& pecl install imagick redis xdebug \
55+
&& pecl install imagick \
56+
&& pecl install redis xdebug \
5657
&& docker-php-ext-enable imagick \
5758
&& docker-php-ext-enable redis \
5859
&& cp "/usr/local/etc/php/php.ini-development" "/usr/local/etc/php/php.ini" \

7.3-prod/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ RUN adduser -D -u 1337 kool \
5252
soap \
5353
xml \
5454
zip \
55-
&& pecl install imagick redis \
55+
&& pecl install imagick \
56+
&& pecl install redis \
5657
&& docker-php-ext-enable imagick \
5758
&& docker-php-ext-enable redis \
5859
&& cp "/usr/local/etc/php/php.ini-production" "/usr/local/etc/php/php.ini" \

7.3/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ RUN adduser -D -u 1337 kool \
5252
soap \
5353
xml \
5454
zip \
55-
&& pecl install imagick redis xdebug \
55+
&& pecl install imagick \
56+
&& pecl install redis xdebug \
5657
&& docker-php-ext-enable imagick \
5758
&& docker-php-ext-enable redis \
5859
&& cp "/usr/local/etc/php/php.ini-development" "/usr/local/etc/php/php.ini" \

7.4-prod/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ RUN adduser -D -u 1337 kool \
4949
soap \
5050
xml \
5151
zip \
52-
&& pecl install imagick redis \
52+
&& pecl install imagick \
53+
&& pecl install redis \
5354
&& docker-php-ext-enable imagick \
5455
&& docker-php-ext-enable redis \
5556
&& cp "/usr/local/etc/php/php.ini-production" "/usr/local/etc/php/php.ini" \

7.4/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ RUN adduser -D -u 1337 kool \
4949
soap \
5050
xml \
5151
zip \
52-
&& pecl install imagick redis xdebug \
52+
&& pecl install imagick \
53+
&& pecl install redis xdebug \
5354
&& docker-php-ext-enable imagick \
5455
&& docker-php-ext-enable redis \
5556
&& cp "/usr/local/etc/php/php.ini-development" "/usr/local/etc/php/php.ini" \

8.0-prod/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.0-rc-fpm-alpine
1+
FROM php:8.0-fpm-alpine
22

33
ENV ASUSER= \
44
UID= \
@@ -49,7 +49,16 @@ RUN adduser -D -u 1337 kool \
4949
soap \
5050
xml \
5151
zip \
52-
&& pecl install imagick redis \
52+
# Temporarily building for PHP 8.0: https://github.com/Imagick/imagick/issues/358
53+
&& git clone https://github.com/Imagick/imagick \
54+
&& cd imagick \
55+
&& phpize \
56+
&& ./configure \
57+
&& make \
58+
&& make install \
59+
&& cd ../ \
60+
&& rm -rf imagick \
61+
&& pecl install redis \
5362
&& docker-php-ext-enable imagick \
5463
&& docker-php-ext-enable redis \
5564
&& cp "/usr/local/etc/php/php.ini-production" "/usr/local/etc/php/php.ini" \

0 commit comments

Comments
 (0)