Skip to content

Commit

Permalink
upgrades to Swoole 4.8.13 images
Browse files Browse the repository at this point in the history
List of upgrades:

* Upgraded Composer to 2.8.1.
* Upgraded to latest PHP 8.1 and 8.2 releases.
* Alpine images are built with Alpine Linux 3.20 for PHP 8.1 and PHP 8.2.

credit: PR #52 by vs0uz4
  • Loading branch information
deminy committed Oct 12, 2024
1 parent f03a0ad commit 9b35672
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Table of Contents
## 4.8.13

### Changed
- Upgrade _Composer_ from 2.2.18 to 2.2.21.
- Upgrade _Composer_ from 2.2.18 to 2.8.1.
- Alpine images are built with Alpine Linux 3.20 for PHP 8.1 and PHP 8.2.

## 4.8.12

Expand Down
6 changes: 3 additions & 3 deletions config/4.8.13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ php:
- "7.3.33"
- "7.4.33"
- "8.0.28"
- "8.1.16"
- "8.2.3"
- "8.1.30"
- "8.2.24"
image:
composer:
version: "2.2.21"
version: "2.8.1"
php_extensions:
redis:
version: "5.3.7"
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php7.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update --clean-backups 2.2.21 && \
composer self-update --clean-backups 2.8.1 && \
apk update && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php7.2/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 2.2.21 && \
composer self-update 2.8.1 && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php7.3/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update --clean-backups 2.2.21 && \
composer self-update --clean-backups 2.8.1 && \
apk update && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php7.3/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 2.2.21 && \
composer self-update 2.8.1 && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php7.4/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update --clean-backups 2.2.21 && \
composer self-update --clean-backups 2.8.1 && \
apk update && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php7.4/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 2.2.21 && \
composer self-update 2.8.1 && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php8.0/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update --clean-backups 2.2.21 && \
composer self-update --clean-backups 2.8.1 && \
apk update && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/4.8.13/php8.0/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 2.2.21 && \
composer self-update 2.8.1 && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/4.8.13/php8.1/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM php:8.1.16-cli-alpine3.16
FROM php:8.1.30-cli-alpine3.20

RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update --clean-backups 2.2.21 && \
composer self-update --clean-backups 2.8.1 && \
apk update && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/4.8.13/php8.1/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1.16-cli
FROM php:8.1.30-cli

ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm-color
Expand All @@ -12,7 +12,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 2.2.21 && \
composer self-update 2.8.1 && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/4.8.13/php8.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM php:8.2.3-cli-alpine3.16
FROM php:8.2.24-cli-alpine3.20

RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update --clean-backups 2.2.21 && \
composer self-update --clean-backups 2.8.1 && \
apk update && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers openssl-dev pcre-dev pcre2-dev zlib-dev && \
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/4.8.13/php8.2/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.3-cli
FROM php:8.2.24-cli

ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm-color
Expand All @@ -12,7 +12,7 @@ RUN \
set -ex && \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 2.2.21 && \
composer self-update 2.8.1 && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
Expand Down
4 changes: 2 additions & 2 deletions src/Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Dockerfile
'7.3' => '3.13',
'7.4' => '3.15',
'8.0' => '3.16',
'8.1' => '3.16',
'8.2' => '3.16',
'8.1' => '3.20',
'8.2' => '3.20',
];

protected string $basePath;
Expand Down

0 comments on commit 9b35672

Please sign in to comment.