-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
316 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:6.0.0-beta. | ||
# 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.30" | ||
- "8.2.24" | ||
- "8.3.12" | ||
image: | ||
composer: | ||
version: "2.8.1" | ||
php_extensions: | ||
redis: | ||
version: "6.1.0" | ||
configureoptions: "enable-redis-igbinary=\"no\" enable-redis-lzf=\"no\" enable-redis-zstd=\"no\"" | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.1 /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/v6.0.0-beta.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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.1 /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 6.0.0-beta \ | ||
--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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM php:8.1.30-cli-alpine3.20 | ||
|
||
COPY --from=composer:2.8.1 /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/v6.0.0-beta.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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM php:8.1.30-cli | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TERM=xterm-color | ||
|
||
ARG DEV_MODE | ||
ENV DEV_MODE=$DEV_MODE | ||
|
||
COPY --from=composer:2.8.1 /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 6.0.0-beta \ | ||
--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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM php:8.2.24-cli-alpine3.20 | ||
|
||
COPY --from=composer:2.8.1 /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/v6.0.0-beta.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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM php:8.2.24-cli | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TERM=xterm-color | ||
|
||
ARG DEV_MODE | ||
ENV DEV_MODE=$DEV_MODE | ||
|
||
COPY --from=composer:2.8.1 /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 6.0.0-beta \ | ||
--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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM php:8.3.12-cli-alpine3.20 | ||
|
||
COPY --from=composer:2.8.1 /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/v6.0.0-beta.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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM php:8.3.12-cli | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TERM=xterm-color | ||
|
||
ARG DEV_MODE | ||
ENV DEV_MODE=$DEV_MODE | ||
|
||
COPY --from=composer:2.8.1 /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 6.0.0-beta \ | ||
--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/" |