Skip to content

Commit

Permalink
build Swoole 5.1.6 images
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Nov 28, 2024
1 parent 57b4872 commit c413a38
Show file tree
Hide file tree
Showing 12 changed files with 321 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Table of Contents
=================

* [Swoole 5.1](#swoole-51)
* [5.1.6](#516)
* [5.1.5](#515)
* [5.1.4](#514)
* [5.1.3](#513)
Expand Down Expand Up @@ -74,6 +75,8 @@ Table of Contents

# Swoole 5.1

## 5.1.6

## 5.1.5

### Changed
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ Note: We don't have development tools built in for Alpine images. There is no Do

| PHP Versions | Default Images | Dev Images | Alpine Images |
|-|-|-|-|
| PHP 8.3 | [5.1.5-php8.3, 5.1-php8.3,<br />5.1, latest](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.3/cli/Dockerfile) | [5.1.5-php8.3-dev, 5.1-php8.3-dev,<br />5.1-dev, latest-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.3/cli/Dockerfile) | [5.1.5-php8.3-alpine, 5.1-php8.3-alpine,<br />5.1-alpine, latest-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.3/alpine/Dockerfile) |
| PHP 8.2 | [5.1.5-php8.2, 5.1-php8.2](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.2/cli/Dockerfile) | [5.1.5-php8.2-dev, 5.1-php8.2-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.2/cli/Dockerfile) | [5.1.5-php8.2-alpine, 5.1-php8.2-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.2/alpine/Dockerfile) |
| PHP 8.1 | [5.1.5-php8.1, 5.1-php8.1](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.1/cli/Dockerfile) | [5.1.5-php8.1-dev, 5.1-php8.1-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.1/cli/Dockerfile) | [5.1.5-php8.1-alpine, 5.1-php8.1-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.1/alpine/Dockerfile) |
| PHP 8.0 | [5.1.5-php8.0, 5.1-php8.0](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.0/cli/Dockerfile) | [5.1.5-php8.0-dev, 5.1-php8.0-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.0/cli/Dockerfile) | [5.1.5-php8.0-alpine, 5.1-php8.0-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.5/php8.0/alpine/Dockerfile) |
| PHP 8.3 | [5.1.6-php8.3, 5.1-php8.3,<br />5.1, latest](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.3/cli/Dockerfile) | [5.1.6-php8.3-dev, 5.1-php8.3-dev,<br />5.1-dev, latest-dev](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.3/cli/Dockerfile) | [5.1.6-php8.3-alpine, 5.1-php8.3-alpine,<br />5.1-alpine, latest-alpine](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.3/alpine/Dockerfile) |
| PHP 8.2 | [5.1.6-php8.2, 5.1-php8.2](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.2/cli/Dockerfile) | [5.1.6-php8.2-dev, 5.1-php8.2-dev](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.2/cli/Dockerfile) | [5.1.6-php8.2-alpine, 5.1-php8.2-alpine](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.2/alpine/Dockerfile) |
| PHP 8.1 | [5.1.6-php8.1, 5.1-php8.1](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.1/cli/Dockerfile) | [5.1.6-php8.1-dev, 5.1-php8.1-dev](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.1/cli/Dockerfile) | [5.1.6-php8.1-alpine, 5.1-php8.1-alpine](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.1/alpine/Dockerfile) |
| PHP 8.0 | [5.1.6-php8.0, 5.1-php8.0](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.0/cli/Dockerfile) | [5.1.6-php8.0-dev, 5.1-php8.0-dev](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.0/cli/Dockerfile) | [5.1.6-php8.0-alpine, 5.1-php8.0-alpine](https://github.com/swoole/docker-swoole/blob/5.1.6/dockerfiles/5.1.6/php8.0/alpine/Dockerfile) |

### Swoole 5.0

Expand Down
2 changes: 1 addition & 1 deletion config/5.1.5.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The YAML configuration file for generating Dockerfile of image phpswoole/swoole:5.1.5.
# For technical details of the configuration file, please check comments and sample configurations in file /config.yml.
#
status: "under development"
status: "released"
php:
- "8.0.30"
- "8.1.31"
Expand Down
17 changes: 17 additions & 0 deletions config/5.1.6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# The YAML configuration file for generating Dockerfile of image phpswoole/swoole:5.1.6.
# For technical details of the configuration file, please check comments and sample configurations in file /config.yml.
#
status: "under development"
php:
- "8.0.30"
- "8.1.31"
- "8.2.26"
- "8.3.14"
image:
composer:
version: "2.8.3"
php_extensions:
redis:
version: "6.1.0"
configureoptions: "enable-redis-igbinary=\"no\" enable-redis-lzf=\"no\" enable-redis-zstd=\"no\""
enabled: true
32 changes: 32 additions & 0 deletions dockerfiles/5.1.6/php8.0/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM php:8.0.30-cli-alpine3.16

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/

RUN \
set -ex && \
apk update && \
apk add --no-cache libstdc++ libpq && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
docker-php-ext-configure swoole \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole && \
rm -f swoole.tar.gz && \
docker-php-source delete && \
apk del .build-deps

WORKDIR "/var/www/"
42 changes: 42 additions & 0 deletions dockerfiles/5.1.6/php8.0/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM php:8.0.30-cli

ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=xterm-color

ARG DEV_MODE
ENV DEV_MODE=$DEV_MODE

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/
COPY ./rootfilesystem/ /

RUN \
set -ex && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libssl-dev \
supervisor \
unzip \
zlib1g-dev \
--no-install-recommends && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
install-swoole.sh 5.1.6 \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
mkdir -p /var/log/supervisor && \
rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static

ENTRYPOINT ["/entrypoint.sh"]
CMD []

WORKDIR "/var/www/"
32 changes: 32 additions & 0 deletions dockerfiles/5.1.6/php8.1/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM php:8.1.31-cli-alpine3.20

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/

RUN \
set -ex && \
apk update && \
apk add --no-cache libstdc++ libpq && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
docker-php-ext-configure swoole \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole && \
rm -f swoole.tar.gz && \
docker-php-source delete && \
apk del .build-deps

WORKDIR "/var/www/"
42 changes: 42 additions & 0 deletions dockerfiles/5.1.6/php8.1/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM php:8.1.31-cli

ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=xterm-color

ARG DEV_MODE
ENV DEV_MODE=$DEV_MODE

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/
COPY ./rootfilesystem/ /

RUN \
set -ex && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libssl-dev \
supervisor \
unzip \
zlib1g-dev \
--no-install-recommends && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
install-swoole.sh 5.1.6 \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
mkdir -p /var/log/supervisor && \
rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static

ENTRYPOINT ["/entrypoint.sh"]
CMD []

WORKDIR "/var/www/"
32 changes: 32 additions & 0 deletions dockerfiles/5.1.6/php8.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM php:8.2.26-cli-alpine3.20

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/

RUN \
set -ex && \
apk update && \
apk add --no-cache libstdc++ libpq && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
docker-php-ext-configure swoole \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole && \
rm -f swoole.tar.gz && \
docker-php-source delete && \
apk del .build-deps

WORKDIR "/var/www/"
42 changes: 42 additions & 0 deletions dockerfiles/5.1.6/php8.2/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM php:8.2.26-cli

ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=xterm-color

ARG DEV_MODE
ENV DEV_MODE=$DEV_MODE

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/
COPY ./rootfilesystem/ /

RUN \
set -ex && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libssl-dev \
supervisor \
unzip \
zlib1g-dev \
--no-install-recommends && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
install-swoole.sh 5.1.6 \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
mkdir -p /var/log/supervisor && \
rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static

ENTRYPOINT ["/entrypoint.sh"]
CMD []

WORKDIR "/var/www/"
32 changes: 32 additions & 0 deletions dockerfiles/5.1.6/php8.3/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM php:8.3.14-cli-alpine3.20

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/

RUN \
set -ex && \
apk update && \
apk add --no-cache libstdc++ libpq && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers brotli-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.6.tar.gz -o swoole.tar.gz && \
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
docker-php-ext-configure swoole \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole && \
rm -f swoole.tar.gz && \
docker-php-source delete && \
apk del .build-deps

WORKDIR "/var/www/"
42 changes: 42 additions & 0 deletions dockerfiles/5.1.6/php8.3/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM php:8.3.14-cli

ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=xterm-color

ARG DEV_MODE
ENV DEV_MODE=$DEV_MODE

COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/
COPY ./rootfilesystem/ /

RUN \
set -ex && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libssl-dev \
supervisor \
unzip \
zlib1g-dev \
--no-install-recommends && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
install-swoole.sh 5.1.6 \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
mkdir -p /var/log/supervisor && \
rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static

ENTRYPOINT ["/entrypoint.sh"]
CMD []

WORKDIR "/var/www/"

0 comments on commit c413a38

Please sign in to comment.