From 743743bc1726c30847cef657fc6b498c80d4075f Mon Sep 17 00:00:00 2001 From: Bruce Dou Date: Sun, 10 Dec 2023 21:15:53 +0000 Subject: [PATCH] 22.1.2 --- config/22.1.2.yml | 11 ++++++ dockerfiles/22.1.2/php8.1/alpine/Dockerfile | 26 ++++++++++++++ dockerfiles/22.1.2/php8.1/cli/Dockerfile | 39 +++++++++++++++++++++ dockerfiles/22.1.2/php8.2/alpine/Dockerfile | 26 ++++++++++++++ dockerfiles/22.1.2/php8.2/cli/Dockerfile | 39 +++++++++++++++++++++ dockerfiles/22.1.2/php8.3/alpine/Dockerfile | 26 ++++++++++++++ dockerfiles/22.1.2/php8.3/cli/Dockerfile | 39 +++++++++++++++++++++ 7 files changed, 206 insertions(+) create mode 100644 config/22.1.2.yml create mode 100644 dockerfiles/22.1.2/php8.1/alpine/Dockerfile create mode 100644 dockerfiles/22.1.2/php8.1/cli/Dockerfile create mode 100644 dockerfiles/22.1.2/php8.2/alpine/Dockerfile create mode 100644 dockerfiles/22.1.2/php8.2/cli/Dockerfile create mode 100644 dockerfiles/22.1.2/php8.3/alpine/Dockerfile create mode 100644 dockerfiles/22.1.2/php8.3/cli/Dockerfile diff --git a/config/22.1.2.yml b/config/22.1.2.yml new file mode 100644 index 0000000..01aee7d --- /dev/null +++ b/config/22.1.2.yml @@ -0,0 +1,11 @@ +# The YAML configuration file for generating Dockerfile of image openswoole/swoole:4.8.1. +# For technical details of the configuration file, please check comments and sample configurations in file /config.yml. +# +status: "under development" +php: + - "8.1.11" + - "8.2.0" + - "8.3.0" +image: + composer: + version: "2.6.6" \ No newline at end of file diff --git a/dockerfiles/22.1.2/php8.1/alpine/Dockerfile b/dockerfiles/22.1.2/php8.1/alpine/Dockerfile new file mode 100644 index 0000000..994c1cf --- /dev/null +++ b/dockerfiles/22.1.2/php8.1/alpine/Dockerfile @@ -0,0 +1,26 @@ +FROM php:8.1.11-cli-alpine3.16 + +RUN \ + curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ + chmod +x /usr/bin/composer && \ + composer self-update --clean-backups 2.6.6 && \ + apk update && \ + apk add --no-cache linux-headers && \ + apk add --no-cache libstdc++ postgresql-dev libpq && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + docker-php-ext-install sockets && \ + docker-php-source extract && \ + mkdir /usr/src/php/ext/openswoole && \ + curl -sfL https://github.com/openswoole/ext-openswoole/archive/v22.1.2.tar.gz -o openswoole.tar.gz && \ + tar xfz openswoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \ + docker-php-ext-configure openswoole \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets --enable-hook-curl --with-postgres && \ + docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \ + rm -f openswoole.tar.gz $HOME/.composer/*-old.phar && \ + docker-php-source delete && \ + apk del .build-deps + +WORKDIR "/var/www/" diff --git a/dockerfiles/22.1.2/php8.1/cli/Dockerfile b/dockerfiles/22.1.2/php8.1/cli/Dockerfile new file mode 100644 index 0000000..bb84019 --- /dev/null +++ b/dockerfiles/22.1.2/php8.1/cli/Dockerfile @@ -0,0 +1,39 @@ +FROM php:8.1.11-cli + +ENV DEBIAN_FRONTEND noninteractive +ENV TERM xterm-color + +ARG DEV_MODE +ENV DEV_MODE $DEV_MODE + +ENV TINI_VERSION v0.19.0 +RUN dpkgArch="$(dpkg --print-architecture)" && curl -s -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch} +RUN chmod +x /tini + +COPY ./rootfilesystem/ / + +RUN \ + curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ + chmod +x /usr/bin/composer && \ + composer self-update 2.6.6 && \ + apt-get update && \ + apt-get install -y \ + libcurl4-openssl-dev \ + libpq-dev \ + libssl-dev \ + supervisor \ + unzip \ + zlib1g-dev \ + --no-install-recommends && \ + install-swoole.sh 22.1.2 \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets --enable-hook-curl --with-postgres && \ + mkdir -p /var/log/supervisor && \ + rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static + +ENTRYPOINT ["/tini", "-g", "--", "/entrypoint.sh"] +CMD [] + +WORKDIR "/var/www/" diff --git a/dockerfiles/22.1.2/php8.2/alpine/Dockerfile b/dockerfiles/22.1.2/php8.2/alpine/Dockerfile new file mode 100644 index 0000000..b6d348f --- /dev/null +++ b/dockerfiles/22.1.2/php8.2/alpine/Dockerfile @@ -0,0 +1,26 @@ +FROM php:8.2.0-cli-alpine3.16 + +RUN \ + curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ + chmod +x /usr/bin/composer && \ + composer self-update --clean-backups 2.6.6 && \ + apk update && \ + apk add --no-cache linux-headers && \ + apk add --no-cache libstdc++ postgresql-dev libpq && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + docker-php-ext-install sockets && \ + docker-php-source extract && \ + mkdir /usr/src/php/ext/openswoole && \ + curl -sfL https://github.com/openswoole/ext-openswoole/archive/v22.1.2.tar.gz -o openswoole.tar.gz && \ + tar xfz openswoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \ + docker-php-ext-configure openswoole \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets --enable-hook-curl --with-postgres && \ + docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \ + rm -f openswoole.tar.gz $HOME/.composer/*-old.phar && \ + docker-php-source delete && \ + apk del .build-deps + +WORKDIR "/var/www/" diff --git a/dockerfiles/22.1.2/php8.2/cli/Dockerfile b/dockerfiles/22.1.2/php8.2/cli/Dockerfile new file mode 100644 index 0000000..b8b7ec1 --- /dev/null +++ b/dockerfiles/22.1.2/php8.2/cli/Dockerfile @@ -0,0 +1,39 @@ +FROM php:8.2.0-cli + +ENV DEBIAN_FRONTEND noninteractive +ENV TERM xterm-color + +ARG DEV_MODE +ENV DEV_MODE $DEV_MODE + +ENV TINI_VERSION v0.19.0 +RUN dpkgArch="$(dpkg --print-architecture)" && curl -s -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch} +RUN chmod +x /tini + +COPY ./rootfilesystem/ / + +RUN \ + curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ + chmod +x /usr/bin/composer && \ + composer self-update 2.6.6 && \ + apt-get update && \ + apt-get install -y \ + libcurl4-openssl-dev \ + libpq-dev \ + libssl-dev \ + supervisor \ + unzip \ + zlib1g-dev \ + --no-install-recommends && \ + install-swoole.sh 22.1.2 \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets --enable-hook-curl --with-postgres && \ + mkdir -p /var/log/supervisor && \ + rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static + +ENTRYPOINT ["/tini", "-g", "--", "/entrypoint.sh"] +CMD [] + +WORKDIR "/var/www/" diff --git a/dockerfiles/22.1.2/php8.3/alpine/Dockerfile b/dockerfiles/22.1.2/php8.3/alpine/Dockerfile new file mode 100644 index 0000000..fe540ce --- /dev/null +++ b/dockerfiles/22.1.2/php8.3/alpine/Dockerfile @@ -0,0 +1,26 @@ +FROM php:8.3.0-cli-alpine3.18 + +RUN \ + curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ + chmod +x /usr/bin/composer && \ + composer self-update --clean-backups 2.6.6 && \ + apk update && \ + apk add --no-cache linux-headers && \ + apk add --no-cache libstdc++ postgresql-dev libpq && \ + apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ + docker-php-ext-install sockets && \ + docker-php-source extract && \ + mkdir /usr/src/php/ext/openswoole && \ + curl -sfL https://github.com/openswoole/ext-openswoole/archive/v22.1.2.tar.gz -o openswoole.tar.gz && \ + tar xfz openswoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \ + docker-php-ext-configure openswoole \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets --enable-hook-curl --with-postgres && \ + docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \ + rm -f openswoole.tar.gz $HOME/.composer/*-old.phar && \ + docker-php-source delete && \ + apk del .build-deps + +WORKDIR "/var/www/" diff --git a/dockerfiles/22.1.2/php8.3/cli/Dockerfile b/dockerfiles/22.1.2/php8.3/cli/Dockerfile new file mode 100644 index 0000000..38b53bb --- /dev/null +++ b/dockerfiles/22.1.2/php8.3/cli/Dockerfile @@ -0,0 +1,39 @@ +FROM php:8.3.0-cli + +ENV DEBIAN_FRONTEND noninteractive +ENV TERM xterm-color + +ARG DEV_MODE +ENV DEV_MODE $DEV_MODE + +ENV TINI_VERSION v0.19.0 +RUN dpkgArch="$(dpkg --print-architecture)" && curl -s -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch} +RUN chmod +x /tini + +COPY ./rootfilesystem/ / + +RUN \ + curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ + chmod +x /usr/bin/composer && \ + composer self-update 2.6.6 && \ + apt-get update && \ + apt-get install -y \ + libcurl4-openssl-dev \ + libpq-dev \ + libssl-dev \ + supervisor \ + unzip \ + zlib1g-dev \ + --no-install-recommends && \ + install-swoole.sh 22.1.2 \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets --enable-hook-curl --with-postgres && \ + mkdir -p /var/log/supervisor && \ + rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static + +ENTRYPOINT ["/tini", "-g", "--", "/entrypoint.sh"] +CMD [] + +WORKDIR "/var/www/"