-
Notifications
You must be signed in to change notification settings - Fork 2
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
huanglonghui
committed
Dec 13, 2024
1 parent
4a155fd
commit 8eeee9f
Showing
6 changed files
with
291 additions
and
31 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
61 changes: 61 additions & 0 deletions
61
dockerfiles/php8/8.1.31/alpine/3.19/swoole/4.8.13/Dockerfile
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,61 @@ | ||
# Build image for easyswoolexuesi2021/easyswoole:php8.1.31-alpine3.19-swoole4.8.13 | ||
# | ||
# @link https://www.easyswoole.com | ||
# @document https://www.easyswoole.com | ||
# @contact https://www.easyswoole.com | ||
# @license https://github.com/easy-swoole/easyswoole/blob/3.x/LICENSE | ||
|
||
FROM easyswoolexuesi2021/php:8.1.31-alpine3.19-base | ||
|
||
LABEL maintainer="EasySwoole Developers https://www.easyswoole.com" version="1.0" license="Apache 2.0" | ||
|
||
## | ||
# ---------- env settings ---------- | ||
## | ||
ENV PHP_BUILD_VERSION="81" | ||
ENV SWOOLE_VERSION="4.8.13" \ | ||
COMPOSER_VERSION="2.3.10" \ | ||
# install and remove building packages | ||
PHPIZE_DEPS="autoconf dpkg-dev dpkg file g++ gcc libc-dev make php${PHP_BUILD_VERSION}-dev php${PHP_BUILD_VERSION}-pear pkgconf re2c pcre-dev pcre2-dev zlib-dev libtool automake libaio-dev openssl-dev curl-dev" | ||
|
||
# update | ||
RUN set -ex \ | ||
&& apk update \ | ||
# for swoole extension libaio linux-headers | ||
&& apk add --no-cache libstdc++ openssl git bash c-ares-dev libpq-dev \ | ||
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ | ||
# download | ||
&& cd /tmp \ | ||
&& curl -SL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" -o swoole.tar.gz \ | ||
&& ls -alh \ | ||
# php extension:swoole | ||
&& cd /tmp \ | ||
&& mkdir -p swoole \ | ||
&& tar -xf swoole.tar.gz -C swoole --strip-components=1 \ | ||
&& ln -s /usr/bin/phpize${PHP_BUILD_VERSION} /usr/local/bin/phpize \ | ||
&& ln -s /usr/bin/php-config${PHP_BUILD_VERSION} /usr/local/bin/php-config \ | ||
&& ( \ | ||
cd swoole \ | ||
&& phpize \ | ||
&& ./configure --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql \ | ||
&& make -s -j$(nproc) && make install \ | ||
) \ | ||
&& echo "memory_limit=1G" > /etc/php${PHP_BUILD_VERSION}/conf.d/00_default.ini \ | ||
&& echo "opcache.enable_cli = 'On'" >> /etc/php${PHP_BUILD_VERSION}/conf.d/00_opcache.ini \ | ||
&& echo "extension=swoole.so" > /etc/php${PHP_BUILD_VERSION}/conf.d/50_swoole.ini \ | ||
# install composer | ||
&& wget -nv -O /usr/local/bin/composer https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar \ | ||
&& chmod u+x /usr/local/bin/composer \ | ||
# ---------- clear works ---------- | ||
&& apk del .build-deps \ | ||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/local/bin/php* \ | ||
# php info | ||
&& php -v \ | ||
&& php -m \ | ||
&& php --ri swoole \ | ||
&& php --ri Zend\ OPcache \ | ||
&& composer | ||
|
||
WORKDIR /var/www | ||
|
||
RUN echo -e "\033[42;37m Build Completed :).\033[0m\n" |
61 changes: 61 additions & 0 deletions
61
dockerfiles/php8/8.1.31/alpine/3.19/swoole/5.0.3/Dockerfile
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,61 @@ | ||
# Build image for easyswoolexuesi2021/easyswoole:php8.1.31-alpine3.19-swoole5.0.3 | ||
# | ||
# @link https://www.easyswoole.com | ||
# @document https://www.easyswoole.com | ||
# @contact https://www.easyswoole.com | ||
# @license https://github.com/easy-swoole/easyswoole/blob/3.x/LICENSE | ||
|
||
FROM easyswoolexuesi2021/php:8.1.31-alpine3.19-base | ||
|
||
LABEL maintainer="EasySwoole Developers https://www.easyswoole.com" version="1.0" license="Apache 2.0" | ||
|
||
## | ||
# ---------- env settings ---------- | ||
## | ||
ENV PHP_BUILD_VERSION="81" | ||
ENV SWOOLE_VERSION="5.0.3" \ | ||
COMPOSER_VERSION="2.3.10" \ | ||
# install and remove building packages | ||
PHPIZE_DEPS="autoconf dpkg-dev dpkg file g++ gcc libc-dev make php${PHP_BUILD_VERSION}-dev php${PHP_BUILD_VERSION}-pear pkgconf re2c pcre-dev pcre2-dev zlib-dev libtool automake libaio-dev openssl-dev curl-dev" | ||
|
||
# update | ||
RUN set -ex \ | ||
&& apk update \ | ||
# for swoole extension libaio linux-headers | ||
&& apk add --no-cache libstdc++ openssl git bash c-ares-dev libpq-dev \ | ||
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ | ||
# download | ||
&& cd /tmp \ | ||
&& curl -SL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" -o swoole.tar.gz \ | ||
&& ls -alh \ | ||
# php extension:swoole | ||
&& cd /tmp \ | ||
&& mkdir -p swoole \ | ||
&& tar -xf swoole.tar.gz -C swoole --strip-components=1 \ | ||
&& ln -s /usr/bin/phpize${PHP_BUILD_VERSION} /usr/local/bin/phpize \ | ||
&& ln -s /usr/bin/php-config${PHP_BUILD_VERSION} /usr/local/bin/php-config \ | ||
&& ( \ | ||
cd swoole \ | ||
&& phpize \ | ||
&& ./configure --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql \ | ||
&& make -s -j$(nproc) && make install \ | ||
) \ | ||
&& echo "memory_limit=1G" > /etc/php${PHP_BUILD_VERSION}/conf.d/00_default.ini \ | ||
&& echo "opcache.enable_cli = 'On'" >> /etc/php${PHP_BUILD_VERSION}/conf.d/00_opcache.ini \ | ||
&& echo "extension=swoole.so" > /etc/php${PHP_BUILD_VERSION}/conf.d/50_swoole.ini \ | ||
# install composer | ||
&& wget -nv -O /usr/local/bin/composer https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar \ | ||
&& chmod u+x /usr/local/bin/composer \ | ||
# ---------- clear works ---------- | ||
&& apk del .build-deps \ | ||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/local/bin/php* \ | ||
# php info | ||
&& php -v \ | ||
&& php -m \ | ||
&& php --ri swoole \ | ||
&& php --ri Zend\ OPcache \ | ||
&& composer | ||
|
||
WORKDIR /var/www | ||
|
||
RUN echo -e "\033[42;37m Build Completed :).\033[0m\n" |
61 changes: 61 additions & 0 deletions
61
dockerfiles/php8/8.1.31/alpine/3.19/swoole/5.1.1/Dockerfile
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,61 @@ | ||
# Build image for easyswoolexuesi2021/easyswoole:php8.1.31-alpine3.19-swoole5.1.1 | ||
# | ||
# @link https://www.easyswoole.com | ||
# @document https://www.easyswoole.com | ||
# @contact https://www.easyswoole.com | ||
# @license https://github.com/easy-swoole/easyswoole/blob/3.x/LICENSE | ||
|
||
FROM easyswoolexuesi2021/php:8.1.31-alpine3.19-base | ||
|
||
LABEL maintainer="EasySwoole Developers https://www.easyswoole.com" version="1.0" license="Apache 2.0" | ||
|
||
## | ||
# ---------- env settings ---------- | ||
## | ||
ENV PHP_BUILD_VERSION="81" | ||
ENV SWOOLE_VERSION="5.1.1" \ | ||
COMPOSER_VERSION=${COMPOSER_VERSION:-"2.3.10"} \ | ||
# install and remove building packages | ||
PHPIZE_DEPS="autoconf dpkg-dev dpkg file g++ gcc libc-dev make php${PHP_BUILD_VERSION}-dev php${PHP_BUILD_VERSION}-pear pkgconf re2c pcre-dev pcre2-dev zlib-dev libtool automake libaio-dev openssl-dev curl-dev" | ||
|
||
# update | ||
RUN set -ex \ | ||
&& apk update \ | ||
# for swoole extension libaio linux-headers | ||
&& apk add --no-cache libstdc++ openssl git bash c-ares-dev libpq-dev \ | ||
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ | ||
# download | ||
&& cd /tmp \ | ||
&& curl -SL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" -o swoole.tar.gz \ | ||
&& ls -alh \ | ||
# php extension:swoole | ||
&& cd /tmp \ | ||
&& mkdir -p swoole \ | ||
&& tar -xf swoole.tar.gz -C swoole --strip-components=1 \ | ||
&& ln -s /usr/bin/phpize${PHP_BUILD_VERSION} /usr/local/bin/phpize \ | ||
&& ln -s /usr/bin/php-config${PHP_BUILD_VERSION} /usr/local/bin/php-config \ | ||
&& ( \ | ||
cd swoole \ | ||
&& phpize \ | ||
&& ./configure --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql \ | ||
&& make -s -j$(nproc) && make install \ | ||
) \ | ||
&& echo "memory_limit=1G" > /etc/php${PHP_BUILD_VERSION}/conf.d/00_default.ini \ | ||
&& echo "opcache.enable_cli = 'On'" >> /etc/php${PHP_BUILD_VERSION}/conf.d/00_opcache.ini \ | ||
&& echo "extension=swoole.so" > /etc/php${PHP_BUILD_VERSION}/conf.d/50_swoole.ini \ | ||
# install composer | ||
&& wget -nv -O /usr/local/bin/composer https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar \ | ||
&& chmod u+x /usr/local/bin/composer \ | ||
# ---------- clear works ---------- | ||
&& apk del .build-deps \ | ||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/local/bin/php* \ | ||
# php info | ||
&& php -v \ | ||
&& php -m \ | ||
&& php --ri swoole \ | ||
&& php --ri Zend\ OPcache \ | ||
&& composer | ||
|
||
WORKDIR /var/www | ||
|
||
RUN echo -e "\033[42;37m Build Completed :).\033[0m\n" |
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,68 @@ | ||
# Build image for easyswoolexuesi2021/easyswoole:php8.1.31-alpine3.19-swoole5.1.1 | ||
# | ||
# @link https://www.easyswoole.com | ||
# @document https://www.easyswoole.com | ||
# @contact https://www.easyswoole.com | ||
# @license https://github.com/easy-swoole/easyswoole/blob/3.x/LICENSE | ||
|
||
FROM easyswoolexuesi2021/php:8.1.31-alpine3.19-base | ||
|
||
LABEL maintainer="EasySwoole Developers https://www.easyswoole.com" version="1.0" license="Apache 2.0" | ||
|
||
## | ||
# ---------- env settings ---------- | ||
## | ||
# --build-arg SWOOLE_VERSION=5.1.1 COMPOSER_VERSION=2.3.10 | ||
ARG SWOOLE_VERSION | ||
ARG COMPOSER_VERSION | ||
|
||
## | ||
# ---------- env settings ---------- | ||
## | ||
ENV PHP_BUILD_VERSION="81" | ||
ENV SWOOLE_VERSION=${SWOOLE_VERSION:-"5.1.1"} \ | ||
COMPOSER_VERSION=${COMPOSER_VERSION:-"2.3.10"} \ | ||
# install and remove building packages | ||
PHPIZE_DEPS="autoconf dpkg-dev dpkg file g++ gcc libc-dev make php${PHP_BUILD_VERSION}-dev php${PHP_BUILD_VERSION}-pear pkgconf re2c pcre-dev pcre2-dev zlib-dev libtool automake libaio-dev openssl-dev curl-dev" | ||
|
||
# update | ||
RUN set -ex \ | ||
&& apk update \ | ||
# for swoole extension libaio linux-headers | ||
&& apk add --no-cache libstdc++ openssl git bash c-ares-dev libpq-dev \ | ||
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ | ||
# download | ||
&& cd /tmp \ | ||
&& curl -SL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" -o swoole.tar.gz \ | ||
&& ls -alh \ | ||
# php extension:swoole | ||
&& cd /tmp \ | ||
&& mkdir -p swoole \ | ||
&& tar -xf swoole.tar.gz -C swoole --strip-components=1 \ | ||
&& ln -s /usr/bin/phpize${PHP_BUILD_VERSION} /usr/local/bin/phpize \ | ||
&& ln -s /usr/bin/php-config${PHP_BUILD_VERSION} /usr/local/bin/php-config \ | ||
&& ( \ | ||
cd swoole \ | ||
&& phpize \ | ||
&& ./configure --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql \ | ||
&& make -s -j$(nproc) && make install \ | ||
) \ | ||
&& echo "memory_limit=1G" > /etc/php${PHP_BUILD_VERSION}/conf.d/00_default.ini \ | ||
&& echo "opcache.enable_cli = 'On'" >> /etc/php${PHP_BUILD_VERSION}/conf.d/00_opcache.ini \ | ||
&& echo "extension=swoole.so" > /etc/php${PHP_BUILD_VERSION}/conf.d/50_swoole.ini \ | ||
# install composer | ||
&& wget -nv -O /usr/local/bin/composer https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar \ | ||
&& chmod u+x /usr/local/bin/composer \ | ||
# ---------- clear works ---------- | ||
&& apk del .build-deps \ | ||
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/local/bin/php* \ | ||
# php info | ||
&& php -v \ | ||
&& php -m \ | ||
&& php --ri swoole \ | ||
&& php --ri Zend\ OPcache \ | ||
&& composer | ||
|
||
WORKDIR /var/www | ||
|
||
RUN echo -e "\033[42;37m Build Completed :).\033[0m\n" |