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
3 changes: 2 additions & 1 deletion frameworks/PHP/swoole/10-opcache.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ opcache.save_comments=0
opcache.enable_file_override=1
opcache.huge_code_pages=1
opcache.jit_buffer_size=128M
opcache.jit=1225
mysqlnd.collect_statistics = Off
opcache.jit=tracing
7 changes: 3 additions & 4 deletions frameworks/PHP/swoole/swoole-async-mysql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04

ENV SWOOLE_VERSION 5.1.4
ENV SWOOLE_VERSION 5.1.5
ENV ENABLE_COROUTINE 1
ENV CPU_MULTIPLES 1
ENV DATABASE_DRIVER mysql
Expand All @@ -16,11 +16,10 @@ RUN apt update -yqq > /dev/null \
&& cd /tmp/swoole-src-${SWOOLE_VERSION} \
&& phpize > /dev/null \
&& ./configure > /dev/null \
&& make -j8 > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.3/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini \
&& php -m
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini

WORKDIR /swoole

Expand Down
7 changes: 3 additions & 4 deletions frameworks/PHP/swoole/swoole-async-postgres.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04

ENV SWOOLE_VERSION 5.1.4
ENV SWOOLE_VERSION 5.1.5
ENV ENABLE_COROUTINE 1
ENV CPU_MULTIPLES 1
ENV DATABASE_DRIVER pgsql
Expand All @@ -16,11 +16,10 @@ RUN apt update -yqq > /dev/null \
&& cd /tmp/swoole-src-${SWOOLE_VERSION} \
&& phpize > /dev/null \
&& ./configure --enable-swoole-pgsql > /dev/null \
&& make -j8 > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.3/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini \
&& php -m
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini

WORKDIR /swoole

Expand Down
3 changes: 2 additions & 1 deletion frameworks/PHP/swoole/swoole-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
'worker_num' => swoole_cpu_num() * ((int) getenv('CPU_MULTIPLES')),
'log_file' => '/dev/null',
'enable_coroutine' => $enableCoroutine,
'enable_reuse_port' => true
'enable_reuse_port' => true,
'http_compression' => false
];

if ($enableCoroutine) {
Expand Down
7 changes: 3 additions & 4 deletions frameworks/PHP/swoole/swoole-sync-mysql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04

ENV SWOOLE_VERSION 5.1.4
ENV SWOOLE_VERSION 5.1.5
ENV ENABLE_COROUTINE 0
ENV CPU_MULTIPLES 1
ENV DATABASE_DRIVER mysql
Expand All @@ -16,11 +16,10 @@ RUN apt update -yqq > /dev/null \
&& cd /tmp/swoole-src-${SWOOLE_VERSION} \
&& phpize > /dev/null \
&& ./configure > /dev/null \
&& make -j8 > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.3/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini \
&& php -m
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini

WORKDIR /swoole

Expand Down
7 changes: 3 additions & 4 deletions frameworks/PHP/swoole/swoole-sync-postgres.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04

ENV SWOOLE_VERSION 5.1.4
ENV SWOOLE_VERSION 5.1.5
ENV ENABLE_COROUTINE 0
ENV CPU_MULTIPLES 4
ENV DATABASE_DRIVER pgsql
Expand All @@ -16,11 +16,10 @@ RUN apt update -yqq > /dev/null \
&& cd /tmp/swoole-src-${SWOOLE_VERSION} \
&& phpize > /dev/null \
&& ./configure > /dev/null \
&& make -j8 > /dev/null \
&& make -j "$(nproc)" > /dev/null \
&& make install > /dev/null \
&& echo "extension=swoole.so" > /etc/php/8.3/cli/conf.d/50-swoole.ini \
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini \
&& php -m
&& echo "memory_limit=1024M" >> /etc/php/8.3/cli/php.ini

WORKDIR /swoole

Expand Down
Loading