Comments (3)
Likely yes but it would be great to have actual benchmarks.
from yii2-docker.
sure, here is what I was referring to: https://habr.com/en/articles/646397/
Also, our app runs fine in this environment/setup since the official unit image is based on the official php-cli image -- but we could also use it as a baseimage intermediate to pull the unitd binaries + modules from:
root@8418299f6480:/app# php -v
PHP 8.2.6 (cli) (built: May 23 2023 04:11:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
root@8418299f6480:/app#
root@8418299f6480:/app# unitd --version
unit version: 1.30.0
configured as ./configure --prefix=/usr --statedir=/var/lib/unit --control=unix:/var/run/control.unit.sock --pid=/var/run/unit.pid --log=/var/log/unit.log --tmpdir=/var/tmp --user=unit --group=unit --openssl --libdir=/usr/lib/aarch64-linux-gnu --njs --cc-opt='-g -O2 -ffile-prefix-map=/unit=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --ld-opt='-specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --modulesdir=/usr/lib/unit/modules
root@8418299f6480:/app# php requirements.php
Yii Application Requirement Checker
This script checks if your server configuration meets the requirements
for running Yii application.
It checks if the server is running the right version of PHP,
if appropriate PHP extensions have been loaded, and if php.ini file settings are correct.
Check conclusion:
-----------------
PHP version: OK
Reflection extension: OK
PCRE extension: OK
SPL extension: OK
Ctype extension: OK
MBString extension: OK
OpenSSL extension: OK
Intl extension: OK
ICU version: OK
ICU Data version: OK
Fileinfo extension: OK
DOM extension: OK
IPv6 support: OK
PDO extension: OK
PDO SQLite extension: OK
PDO MySQL extension: OK
PDO PostgreSQL extension: WARNING!!!
Required by: All DB-related classes
Memo: Required for PostgreSQL database.
Memcache extension: WARNING!!!
Required by: MemCache
GD PHP extension with FreeType support: OK
ImageMagick PHP extension with PNG support: WARNING!!!
Required by: Captcha
Memo: Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support is required for image CAPTCHA.
Expose PHP: WARNING!!!
Required by: Security reasons
Memo: "expose_php" should be disabled at php.ini
PHP allow url include: OK
PHP mail SMTP: OK
------------------------------------------
Errors: 0 Warnings: 4 Total checks: 23
root@8418299f6480:/app#
from yii2-docker.
@razvanphp
Here's a very rough first "build layout":
https://github.com/yiisoft/yii2-docker/tree/feature/nginxunit
It builds, but the correct config is missing, you might start from there to create a working image.
It might be possible to re-unify the Dockerfile
s, but this depends maily on the OS used in the Docker image.
PS:
Comment Apache
section and uncomment https://github.com/yiisoft/yii2-docker/blob/feature/nginxunit/.env-dist#L26-L30 after files has been copied to .env
from yii2-docker.
Related Issues (20)
- Composer Error `Your github oauth token for github.com contains invalid characters` HOT 5
- Add pcov base image to make speedier tests HOT 1
- yii command running from vendor/bin doesn't load config HOT 10
- manifest unknown HOT 1
- Add MsSQL extensions HOT 3
- 8.1 pipeline fails HOT 6
- yiisoftware/yii2-php:7.4-fpm + mac m1 architecture HOT 15
- Install unzip command HOT 3
- Build failed - compose file invalid - unsupported option target HOT 2
- Create alpine version of docker images. HOT 19
- PDOException: could not find driver (trying to use mysql) HOT 16
- Security issue related to Apache 2.4.54 HOT 4
- Usage of this docker with existing yii2 project? HOT 4
- Apply for OpenSource account at Docker hub HOT 5
- Images incorrectly tagged? HOT 1
- Not all extensions are visible in phpinfo HOT 6
- Error on Windows HOT 2
- Feature FrankenPHP HOT 1
- Curl/libcurl vulnerabilities HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-docker.