Skip to content

Commit

Permalink
22.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
doubaokun committed Dec 10, 2023
1 parent 93b0d5c commit 743743b
Show file tree
Hide file tree
Showing 7 changed files with 206 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/22.1.2.yml
Original file line number Diff line number Diff line change
@@ -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"
26 changes: 26 additions & 0 deletions dockerfiles/22.1.2/php8.1/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"
39 changes: 39 additions & 0 deletions dockerfiles/22.1.2/php8.1/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"
26 changes: 26 additions & 0 deletions dockerfiles/22.1.2/php8.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"
39 changes: 39 additions & 0 deletions dockerfiles/22.1.2/php8.2/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"
26 changes: 26 additions & 0 deletions dockerfiles/22.1.2/php8.3/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"
39 changes: 39 additions & 0 deletions dockerfiles/22.1.2/php8.3/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"

0 comments on commit 743743b

Please sign in to comment.