Skip to content

Commit 1586e13

Browse files
authored
New PHP version deps (#1305)
1 parent 486bc40 commit 1586e13

File tree

8 files changed

+32
-82
lines changed

8 files changed

+32
-82
lines changed

.github/workflows/build-php-8-1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
tags: |
3535
markoshust/magento-php:8.1-fpm
36-
markoshust/magento-php:8.1-fpm-7
36+
markoshust/magento-php:8.1-fpm-8

.github/workflows/build-php-8-2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
tags: |
3535
markoshust/magento-php:8.2-fpm
36-
markoshust/magento-php:8.2-fpm-6
36+
markoshust/magento-php:8.2-fpm-7

.github/workflows/build-php-8-3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
tags: |
3535
markoshust/magento-php:8.3-fpm
36-
markoshust/magento-php:8.3-fpm-4
36+
markoshust/magento-php:8.3-fpm-5

.github/workflows/build-php-8-4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
platforms: linux/amd64,linux/arm64
3333
push: true
3434
tags: |
35-
markoshust/magento-php:8.4-fpm-dev
35+
markoshust/magento-php:8.4-fpm-0

images/php/8.1/Dockerfile

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN groupadd -g "$APP_ID" app \
88
RUN mkdir -p /etc/nginx/html /var/www/html /sock \
99
&& chown -R app:app /etc/nginx /var/www /usr/local/etc/php/conf.d /sock
1010

11-
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
11+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
1212

1313
RUN apt-get update && apt-get install -y \
1414
cron \
@@ -42,26 +42,14 @@ RUN apt-get update && apt-get install -y \
4242
&& rm -rf /var/lib/apt/lists/*
4343

4444
RUN pecl channel-update pecl.php.net && pecl install \
45-
redis-6.1.0 \
45+
redis-6.2.0 \
4646
ssh2-1.4.1 \
47-
swoole-6.0.0 \
48-
xdebug-3.4.1 \
47+
swoole-6.0.2 \
48+
xdebug-3.4.2 \
49+
imagick-3.8.0RC2 \
4950
&& pecl clear-cache \
5051
&& rm -rf /tmp/pear
5152

52-
RUN imagick_branch="28f27044e435a2b203e32675e942eb8de620ee58" \
53-
&& curl -L https://github.com/Imagick/imagick/archive/$imagick_branch.zip -o imagick.zip \
54-
&& unzip imagick.zip \
55-
&& rm imagick.zip \
56-
&& cd imagick-$imagick_branch \
57-
&& phpize \
58-
&& ./configure --with-php-config=/usr/local/bin/php-config \
59-
&& make \
60-
&& make install \
61-
&& echo "extension=imagick.so" >> $PHP_INI_DIR/conf.d/imagick.ini \
62-
&& cd .. \
63-
&& rm -rf imagick-$imagick_branch
64-
6553
RUN docker-php-ext-configure \
6654
gd --with-freetype --with-jpeg --with-webp \
6755
&& docker-php-ext-install \
@@ -99,15 +87,15 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
9987
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
10088
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
10189

102-
RUN git clone --branch v0.4.17 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
90+
RUN git clone --branch v0.4.18 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
10391
&& cd /usr/lib/php-spx \
10492
&& phpize \
10593
&& ./configure \
10694
&& make \
10795
&& make install
10896

10997
RUN curl -sS https://getcomposer.org/installer | \
110-
php -- --version=2.2.24 --install-dir=/usr/local/bin --filename=composer
98+
php -- --version=2.7.9 --install-dir=/usr/local/bin --filename=composer
11199

112100
COPY conf/blackfire.ini $PHP_INI_DIR/conf.d/blackfire.ini
113101
COPY conf/spx.ini $PHP_INI_DIR/conf.d/spx.ini

images/php/8.2/Dockerfile

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN groupadd -g "$APP_ID" app \
88
RUN mkdir -p /etc/nginx/html /var/www/html /sock \
99
&& chown -R app:app /etc/nginx /var/www /usr/local/etc/php/conf.d /sock
1010

11-
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
11+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
1212

1313
RUN apt-get update && apt-get install -y \
1414
cron \
@@ -42,26 +42,14 @@ RUN apt-get update && apt-get install -y \
4242
&& rm -rf /var/lib/apt/lists/*
4343

4444
RUN pecl channel-update pecl.php.net && pecl install \
45-
redis-6.1.0 \
45+
redis-6.2.0 \
4646
ssh2-1.4.1 \
47-
swoole-6.0.0 \
48-
xdebug-3.4.1 \
47+
swoole-6.0.2 \
48+
xdebug-3.4.2 \
49+
imagick-3.8.0RC2 \
4950
&& pecl clear-cache \
5051
&& rm -rf /tmp/pear
5152

52-
RUN imagick_branch="28f27044e435a2b203e32675e942eb8de620ee58" \
53-
&& curl -L https://github.com/Imagick/imagick/archive/$imagick_branch.zip -o imagick.zip \
54-
&& unzip imagick.zip \
55-
&& rm imagick.zip \
56-
&& cd imagick-$imagick_branch \
57-
&& phpize \
58-
&& ./configure --with-php-config=/usr/local/bin/php-config \
59-
&& make \
60-
&& make install \
61-
&& echo "extension=imagick.so" >> $PHP_INI_DIR/conf.d/imagick.ini \
62-
&& cd .. \
63-
&& rm -rf imagick-$imagick_branch
64-
6553
RUN docker-php-ext-configure \
6654
gd --with-freetype --with-jpeg --with-webp \
6755
&& docker-php-ext-install \
@@ -100,15 +88,15 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
10088
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
10189
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
10290

103-
RUN git clone --branch v0.4.17 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
91+
RUN git clone --branch v0.4.18 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
10492
&& cd /usr/lib/php-spx \
10593
&& phpize \
10694
&& ./configure \
10795
&& make \
10896
&& make install
10997

11098
RUN curl -sS https://getcomposer.org/installer | \
111-
php -- --version=2.7.9 --install-dir=/usr/local/bin --filename=composer
99+
php -- --version=2.8.6 --install-dir=/usr/local/bin --filename=composer
112100

113101
COPY conf/blackfire.ini $PHP_INI_DIR/conf.d/blackfire.ini
114102
COPY conf/spx.ini $PHP_INI_DIR/conf.d/spx.ini

images/php/8.3/Dockerfile

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN groupadd -g "$APP_ID" app \
88
RUN mkdir -p /etc/nginx/html /var/www/html /sock \
99
&& chown -R app:app /etc/nginx /var/www /usr/local/etc/php/conf.d /sock
1010

11-
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
11+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
1212

1313
RUN apt-get update && apt-get install -y \
1414
cron \
@@ -42,26 +42,14 @@ RUN apt-get update && apt-get install -y \
4242
&& rm -rf /var/lib/apt/lists/*
4343

4444
RUN pecl channel-update pecl.php.net && pecl install \
45-
redis-6.1.0 \
45+
redis-6.2.0 \
4646
ssh2-1.4.1 \
47-
swoole-6.0.0 \
48-
xdebug-3.4.1 \
47+
swoole-6.0.2 \
48+
xdebug-3.4.2 \
49+
imagick-3.8.0RC2 \
4950
&& pecl clear-cache \
5051
&& rm -rf /tmp/pear
5152

52-
RUN imagick_branch="28f27044e435a2b203e32675e942eb8de620ee58" \
53-
&& curl -L https://github.com/Imagick/imagick/archive/$imagick_branch.zip -o imagick.zip \
54-
&& unzip imagick.zip \
55-
&& rm imagick.zip \
56-
&& cd imagick-$imagick_branch \
57-
&& phpize \
58-
&& ./configure --with-php-config=/usr/local/bin/php-config \
59-
&& make \
60-
&& make install \
61-
&& echo "extension=imagick.so" >> $PHP_INI_DIR/conf.d/imagick.ini \
62-
&& cd .. \
63-
&& rm -rf imagick-$imagick_branch
64-
6553
RUN docker-php-ext-configure \
6654
gd --with-freetype --with-jpeg --with-webp \
6755
&& docker-php-ext-install \
@@ -100,15 +88,15 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
10088
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
10189
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
10290

103-
RUN git clone --branch v0.4.17 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
91+
RUN git clone --branch v0.4.18 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
10492
&& cd /usr/lib/php-spx \
10593
&& phpize \
10694
&& ./configure \
10795
&& make \
10896
&& make install
10997

11098
RUN curl -sS https://getcomposer.org/installer | \
111-
php -- --version=2.7.9 --install-dir=/usr/local/bin --filename=composer
99+
php -- --version=2.8.6 --install-dir=/usr/local/bin --filename=composer
112100

113101
COPY conf/blackfire.ini $PHP_INI_DIR/conf.d/blackfire.ini
114102
COPY conf/spx.ini $PHP_INI_DIR/conf.d/spx.ini

images/php/8.4/Dockerfile

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN groupadd -g "$APP_ID" app \
88
RUN mkdir -p /etc/nginx/html /var/www/html /sock \
99
&& chown -R app:app /etc/nginx /var/www /usr/local/etc/php/conf.d /sock
1010

11-
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
11+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
1212

1313
RUN apt-get update && apt-get install -y \
1414
cron \
@@ -42,26 +42,14 @@ RUN apt-get update && apt-get install -y \
4242
&& rm -rf /var/lib/apt/lists/*
4343

4444
RUN pecl channel-update pecl.php.net && pecl install \
45-
redis-6.1.0 \
45+
redis-6.2.0 \
4646
ssh2-1.4.1 \
47-
swoole-6.0.0 \
48-
xdebug-3.4.1 \
47+
swoole-6.0.2 \
48+
xdebug-3.4.2 \
49+
imagick-3.8.0RC2 \
4950
&& pecl clear-cache \
5051
&& rm -rf /tmp/pear
5152

52-
RUN imagick_branch="28f27044e435a2b203e32675e942eb8de620ee58" \
53-
&& curl -L https://github.com/Imagick/imagick/archive/$imagick_branch.zip -o imagick.zip \
54-
&& unzip imagick.zip \
55-
&& rm imagick.zip \
56-
&& cd imagick-$imagick_branch \
57-
&& phpize \
58-
&& ./configure --with-php-config=/usr/local/bin/php-config \
59-
&& make \
60-
&& make install \
61-
&& echo "extension=imagick.so" >> $PHP_INI_DIR/conf.d/imagick.ini \
62-
&& cd .. \
63-
&& rm -rf imagick-$imagick_branch
64-
6553
RUN docker-php-ext-configure \
6654
gd --with-freetype --with-jpeg --with-webp \
6755
&& docker-php-ext-install \
@@ -92,25 +80,23 @@ RUN docker-php-ext-configure \
9280
ssh2 \
9381
xdebug
9482

95-
# Temporary workaround for PHP 8.4
9683
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
97-
&& version=83 \
9884
&& architecture=$(uname -m) \
9985
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/$architecture/$version \
10086
&& mkdir -p /tmp/blackfire \
10187
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
10288
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
10389
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
10490

105-
RUN git clone --branch v0.4.17 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
91+
RUN git clone --branch v0.4.18 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \
10692
&& cd /usr/lib/php-spx \
10793
&& phpize \
10894
&& ./configure \
10995
&& make \
11096
&& make install
11197

11298
RUN curl -sS https://getcomposer.org/installer | \
113-
php -- --version=2.7.9 --install-dir=/usr/local/bin --filename=composer
99+
php -- --version=2.8.6 --install-dir=/usr/local/bin --filename=composer
114100

115101
COPY conf/blackfire.ini $PHP_INI_DIR/conf.d/blackfire.ini
116102
COPY conf/spx.ini $PHP_INI_DIR/conf.d/spx.ini

0 commit comments

Comments
 (0)