All Projects → roquie → docker-swoole-webapp

roquie / docker-swoole-webapp

Licence: MIT license
Simple Docker-image to build your applications based on Async PHP extensions.

Programming Languages

Dockerfile
14818 projects
PHP
23972 projects - #3 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-swoole-webapp

docker-laravel-appengine
Laravel dockerized with official Google App Engine flexible php environment + swoole.
Stars: ✭ 66 (+153.85%)
Mutual labels:  alpine, swoole
static-php-cli
Build single static PHP binary in linux, build with PHP project together, with Swoole and other popular extensions included.
Stars: ✭ 129 (+396.15%)
Mutual labels:  alpine, swoole
Alphp
A micro PHP Docker environment based on an Alpine image. Can be used for container publishing, the completed image is only 30-40M
Stars: ✭ 100 (+284.62%)
Mutual labels:  alpine, swoole
php7-alpine
Docker container for PHP 7 in Alpine Linux, with almost all extensions that you may need
Stars: ✭ 20 (-23.08%)
Mutual labels:  alpine, swoole
Framework
Swoole, PSR-15, PSR-7, PSR-11 lightweight modular anti-framework for REST micro-services.
Stars: ✭ 259 (+896.15%)
Mutual labels:  fast, swoole
Tensorflow Fast Style Transfer
A simple, concise tensorflow implementation of fast style transfer
Stars: ✭ 224 (+761.54%)
Mutual labels:  fast
Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (+846.15%)
Mutual labels:  fast
Dmd
dmd D Programming Language compiler
Stars: ✭ 2,498 (+9507.69%)
Mutual labels:  fast
Store
A beautifully-simple framework-agnostic modern state management library.
Stars: ✭ 204 (+684.62%)
Mutual labels:  fast
PyGLM
Fast OpenGL Mathematics (GLM) for Python
Stars: ✭ 167 (+542.31%)
Mutual labels:  fast
mini-async-log-c
Mini async log C port. Now with C++ wrappers.
Stars: ✭ 69 (+165.38%)
Mutual labels:  fast
Router
Router implementation for fasthttp
Stars: ✭ 234 (+800%)
Mutual labels:  fast
Ataraxia
Simple and lightweight source-based multi-platform Linux distribution with musl libc.
Stars: ✭ 226 (+769.23%)
Mutual labels:  fast
Superstring
A fast and memory-optimized string library for C++
Stars: ✭ 252 (+869.23%)
Mutual labels:  fast
Sheet Router
fast, modular client-side router
Stars: ✭ 219 (+742.31%)
Mutual labels:  fast
distrobox
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
Stars: ✭ 4,371 (+16711.54%)
Mutual labels:  alpine
Json
A C++11 or library for parsing and serializing JSON to and from a DOM container in memory.
Stars: ✭ 205 (+688.46%)
Mutual labels:  fast
Nonblocking
Implementation of a lock-free dictionary on .Net.
Stars: ✭ 237 (+811.54%)
Mutual labels:  fast
Pareto.js
An extremely small, intuitive and fast functional utility library for JavaScript
Stars: ✭ 254 (+876.92%)
Mutual labels:  fast
Csv
[DEPRECATED] See https://github.com/p-ranav/csv2
Stars: ✭ 237 (+811.54%)
Mutual labels:  fast

Docker Swoole WebApp Image

CircleCI

Simple docker image to build your applications based on Swoole PHP extension. Tuned for maximum performance.

Versions:

  • PHP 7.4, 7.3, 7.2 (out of date), 7.1 (out of date)
  • Latest Alpine
  • Swoole builds from source with versions: templates/alpine/php74.yaml.

Notice:

  • Opcache enabled for cli. It use very aggressive caching and settings. Only for production.
  • For now (28/06/2019) composer does not support PHP 7.4 :(

Every week at 00:00 on Sunday (UTC) Docker images automatically rebuilds.

Async

Image provides following async extensions:

Run

docker run --rm -it --init -p 8080:8080 roquie/docker-swoole-webapp

How to usage

Example 1:

FROM roquie/composer-parallel
COPY . /app

RUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader --ignore-platform-reqs

FROM roquie/docker-swoole-webapp
COPY --from=0 /app /app

Example 2:

FROM roquie/docker-swoole-webapp
COPY . /app

Example 3:

FROM roquie/docker-swoole-webapp

# Override default env values
ENV PHP_OPCACHE_ENABLE=0

COPY . /app

Project files must be contains index.php to start app.

Extensions

[PHP Modules]
async
brotli
Core
ctype
curl
date
dom
eio
fileinfo
filter
ftp
gmp
hash
iconv
intl
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sockets
sodium
SPL
sqlite3
standard
swoole
swoole_async
tokenizer
xml
xmlreader
xmlwriter
yaml
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Env variables

ENTRY_SCRIPT /app/index.php

PHP_MEMORY_LIMIT=-1
PHP_MAX_EXECUTION_TIME=120 # seconds
PHP_MAX_INPUT_TIME=60 # seconds
PHP_ERROR_REPORTING="E_ALL & ~E_DEPRECATED & ~E_STRICT"
PHP_DISPLAY_ERRORS=Off
PHP_POST_MAX_SIZE=512M
PHP_UPLOAD_MAX_FILESIZE=512M
PHP_MAX_FILE_UPLOADS=20
PHP_DEFAULT_MIMETYPE=application/json
PHP_SESSION_STRICT_MODE=1
PHP_SESSION_COOKIE_SECURE=1
PHP_EXPOSE_PHP=Off
PHP_DATE_TIMEZONE=UTC
PHP_SHORT_OPEN_TAG=Off
PHP_ASYNC_THREADS=auto

PHP_OPCACHE_ENABLE=1
PHP_OPCACHE_ENABLE_CLI=1
PHP_OPCACHE_MEMORY_CONSUMPTION=512
PHP_OPCACHE_INTERNED_STRINGS_BUFFER=16
PHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO=true
PHP_OPCACHE_MAX_ACCELERATED_FILES=50000 # if PHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO is `true`, files count automatically.
PHP_OPCACHE_REVALIDATE_FREQ=0
PHP_OPCACHE_ENABLE_FILE_OVERRIDE=1
PHP_OPCACHE_FILE_CACHE_ONLY=1

Tags

  • latest (PHP 7.3)
  • 7.4-latest
  • 7.3-latest
  • 7.2-latest (only swoole available, out of date)
  • 7.1-latest (only swoole available, out of date)

License

MIT License

Copyright (c) 2019 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].