Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions frameworks/PHP/swoole/swoole-async-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ RUN apt update -yqq > /dev/null \
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null \
&& apt update -yqq > /dev/null \
&& apt install git libbrotli-dev php8.4-cli php8.4-pdo-mysql php8.4-dev -y > /dev/null \
&& cd /tmp && git clone https://github.com/swoole/swoole-src.git \
&& cd /tmp/swoole-src/ && git checkout feat_llhttp \
&& phpize > /dev/null \
&& ./configure > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& pecl install swoole > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.4/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini \
&& php --ri swoole

WORKDIR /swoole

Expand Down
10 changes: 3 additions & 7 deletions frameworks/PHP/swoole/swoole-async-postgres.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ RUN apt update -yqq > /dev/null \
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null \
&& apt update -yqq > /dev/null \
&& apt install git libbrotli-dev php8.4-cli php8.4-pdo-pgsql php8.4-dev libpq-dev -y > /dev/null \
&& cd /tmp && git clone https://github.com/swoole/swoole-src.git \
&& cd /tmp/swoole-src/ && git checkout feat_llhttp \
&& phpize > /dev/null \
&& ./configure --enable-swoole-pgsql > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& pecl install -D 'enable-swoole-pgsql="yes"' swoole > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.4/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini \
&& php --ri swoole

WORKDIR /swoole

Expand Down
10 changes: 3 additions & 7 deletions frameworks/PHP/swoole/swoole-sync-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ RUN apt update -yqq > /dev/null \
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null \
&& apt update -yqq > /dev/null \
&& apt install git libbrotli-dev php8.4-cli php8.4-pdo-mysql php8.4-dev -y > /dev/null \
&& cd /tmp && git clone https://github.com/swoole/swoole-src.git \
&& cd /tmp/swoole-src/ && git checkout feat_llhttp \
&& phpize > /dev/null \
&& ./configure > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& pecl install swoole > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.4/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini \
&& php --ri swoole

WORKDIR /swoole

Expand Down
10 changes: 3 additions & 7 deletions frameworks/PHP/swoole/swoole-sync-postgres.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ RUN apt update -yqq > /dev/null \
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null \
&& apt update -yqq > /dev/null \
&& apt install git libbrotli-dev php8.4-cli php8.4-pdo-pgsql php8.4-dev libpq-dev -y > /dev/null \
&& cd /tmp && git clone https://github.com/swoole/swoole-src.git \
&& cd /tmp/swoole-src/ && git checkout feat_llhttp \
&& phpize > /dev/null \
&& ./configure > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& pecl install swoole > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.4/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini
&& echo "memory_limit=1024M" >> /etc/php/8.4/cli/php.ini \
&& php --ri swoole

WORKDIR /swoole

Expand Down
Loading