支持webman、hyperf、laravel 的 php82 鏡像,其中安裝了能夠提升workman性能的event擴展,PHP擴展通過pecl 和 docker-php-ext-install 進行安裝,鏡像內置了nginx和supervisor支持laravel 運行。
1.webman 如何使用,項目內新建Dockerfile內容如下
FROM dockeralfred/workman-swoole:v1
WORKDIR /var/www
COPY . /var/www
RUN composer install
EXPOSE 8787
ENTRYPOINT ["php", "/var/www/start.php", "start"]
2.可以從 gitee 下載 Dockerfile 自己修改
bcmath
Core
ctype
curl
date
dom
event
fileinfo
filter
gd
hash
iconv
imagick
json
libxml
mbstring
mcrypt
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
SimpleXML
sockets
sodium
SPL
sqlite3
standard
swoole
tokenizer
xlswriter
xml
xmlreader
xmlwriter
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
可以直接使用這個
docker pull tinywan/docker-php-webman:8.2.17-swoole5.1
版本
# pecl info swoole
About pecl.php.net/swoole-5.1.1
===============================
Release Type PECL-style PHP extension (source code)
Name swoole
Channel pecl.php.net
Summary Event-driven asynchronous and concurrent
networking engine with high performance for PHP.
Description Event-driven asynchronous and concurrent
networking engine with high performance for PHP.
- event-driven
- coroutine
- asynchronous non-blocking
- multi-thread reactor
- multi-process worker
- multi-protocol
- millisecond timer
- built-in tcp/http/websocket/http2 server
- coroutine tcp/http/websocket client
- coroutine mysql client
- coroutine redis client
- coroutine read/write file system
- coroutine dns lookup
- support IPv4/IPv6/UnixSocket/TCP/UDP
- support SSL/TLS encrypted transmission
Maintainers Tianfeng Han <rango@swoole.com> (lead)
Twosee <twosee@php.net> (developer)
Shen Zhe <shenzhe163@gmail.com> (developer,
inactive)
Lu Fei <lufei@php.net> (developer)
Bruce Dou <doubaokun@php.net> (developer)
Release Date 2023-11-26 14:25:25
Release Version 5.1.1 (stable)
API Version 5.0 (stable)
License Apache2.0
(http://www.apache.org/licenses/LICENSE-2.0.html)
Release Notes - Fixed memory leak issue in HTTP coroutine
client
- Fixed the issue of can not hook pdo_odbc
- Fixed the error in executing
socket_import_stream()
- Fixed the issue with
Context::parse_multipart_data() unable to handle
empty request body
- Fixed the issue with PostgreSQL coroutine
client where the parameters are not working
- Fixed the bug where curl crashes during
destruction
- Fixed the compatibility issue between Swoole
5.x and the latest version of xdebug
- Fixed the problem of class not found error
caused by coroutine switching during the process
of class autoloading
- Fixed the issue of not being able to compile
Swoole on OpenBSD
Required Dependencies PHP version 8.0.0
PEAR installer version 1.4.0 or newer
package.xml version 2.0
Last Modified 2024-04-21 10:05
Previous Installed - None -
Version