From ede77dd0f298e02db4dcfda6b659b84b4943fbe6 Mon Sep 17 00:00:00 2001 From: zaioll Date: Fri, 31 Dec 2021 22:32:48 -0400 Subject: [PATCH] Fix info about installed libs --- Dockerfile.build | 37 +++ README.md | 341 +++++++------------------ benckmarks/installed-libs.md | 208 +++++++++++++++ benckmarks/installed-php-extensions.md | 69 +++++ install/post-install | 7 + 5 files changed, 416 insertions(+), 246 deletions(-) create mode 100644 Dockerfile.build create mode 100644 benckmarks/installed-libs.md create mode 100644 benckmarks/installed-php-extensions.md diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000..5da9330 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,37 @@ +FROM --platform=amd64 zaioll/debian:stretch-slim as build + +LABEL maintener 'Láyro Chrystofer ' + +ENV php_version=7.4 +ENV usuario developer +ENV HOME "/home/${usuario}" + +#COPY install /install +#COPY configure /configure +# +#RUN \ +# /install/requirements/pre-install \ +# && /install/download \ +# && /install/packages/install \ +# && /configure/_run.sh \ +# && DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y nginx \ +# && /install/post-install + +COPY install/requirements /install/requirements +RUN /install/requirements/pre-install + +COPY install/download /install/download +RUN /install/download + +COPY install/packages /install/packages +RUN /install/packages/install + +COPY configure /configure +RUN configure/_run.sh + +COPY init /run/init + +EXPOSE 80 8000 + +STOPSIGNAL SIGTERM +CMD ["/bin/bash", "/run/init/start"] diff --git a/README.md b/README.md index ffabe19..8fa73f2 100644 --- a/README.md +++ b/README.md @@ -8,279 +8,119 @@ PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world. -## PHP Documentation +## Getting start -The PHP manual is available at [php.net/docs](https://php.net/docs). +### Daemon -## Docker image +When running docker image as a daemon, the `/run/init/start` shell script is executed at startup. -### Possible PHP versions +```bash +user@host:$ docker run -d -it --name ${my_container_name} -v "${host_path}:/var/www/html" zaioll/php-zts:${php_version} +``` -At every compilation, the last **patch** version is fetched. +To share the socket file, create shared volume first: -[EBNF](https://bnfplayground.pauliankline.com/?bnf=%3Cphp_version_installed%3E%20%20%20%3A%3A%3D%20%3Cphp_version%3E%20%3Cseparator%3E%20%3Cpatch%3E%0A%3Cphp_version%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%3Cmajor%3E%20%3Cseparator%3E%20%3Cminor%3E%0A%3Cmajor%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%227%22%0A%3Cseparator%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%22.%22%0A%3Cminor%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%222%22%20%7C%20%224%22%0A%3Cpatch%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%20(%20%220%22%20%7C%20%5B1-9%5D%20%5B0-9%5D*)%20%20&name=): +```bash +user@host:$ docker volume create sock +``` - ::= - ::= - ::= "7" - ::= "." - ::= "2" | "4" - ::= ( "0" | [1-9] [0-9]*) +Then, run the container passing the created shared volume. -## Getting start +```bash +user@host:$ docker run -d -it -v "sock:/run/php" -v "${host_path}:/var/www/html" --name ${my_container_name} zaioll/php-zts:${php_version} +``` -### Environment configuration variables +> The `/run/init/hook-start` shell script is called at the end of `/run/init/start` running process and before start `supervisord`. Add your custom shell script commands into it to run it. -- `PHP_FPM_SOCKET`=( 0 | 1 ) (default `1`) - - To enable PHP-FPM socket, set `ENABLE_FPM_SOCKET` env var to `1` to create and communicate through unix socket file **/run/php/php7-fpm.sock** or set to `0` for communication through **tcp/9000** port instead. -- `ENABLE_OPCACHE`=( 0 | 1 ) (default `1`) -- `ENABLE_PARALLEL`=( 0 | 1 ) (default `1`) -- `ENABLE_XDEBUG`=( 0 | 1 ) (default `0`) -- [`XDEBUG_CONFIG`](https://xdebug.org/docs/remote)="" +### Interactive + +When running docker image as a iteractive form, the `/run/init/start` shell script is not executed. Then, PHP-FPM is not started. It needs manual run. + + + +### Configuration with environment variables + +- `APP_ENV` = ( ^dev* | ^prod* | debug ) Default: `dev` + - Main diretive to configure the entire environment. When **APP_ENV** is configured with "dev" value, the **xdebug** will be enabled and configured and PHP (and webserver if it's enabled) default *timeouts* and *time limits* will be incresead at **8 times**. On the other hand, if **APP_ENV** is configured with "prod" value, the **opcache** will be enabled and configured. PHP defaults values for *timeouts* will be decreased to 10% of the default values. + + - Default overwritten prod PHP config: + + ```bash + PHP_INI=" + cgi.fix_pathinfo=0 + display_startup_errors=Off + memory_limit=${memory_limit}M + zend.assertions=-1 + report_memleaks=Off + display_errors=Off + log_errors=Off + expose_php=Off + max_execution_time=${max_execution_time} + date.time_zone=America/Manaus + session.cookie_secure=On" + ``` + + - Default overwritten dev PHP config: + + ```bash + PHP_INI=" + cgi.fix_pathinfo=0 + display_startup_errors=On + implicit_flush=On + memory_limit=${memory_limit}M + display_errors=On + log_errors=On + expose_php=On + max_execution_time=${max_execution_time} + date.time_zone=America/Manaus + session.cookie_secure=Off" + ``` + +- `PHP_FPM_SOCKET`=( off | on ) Default: `on` + - To enable PHP-FPM socket, set `ENABLE_FPM_SOCKET` env var to `on` to create and communicate through unix socket file **/run/php/php7-fpm.sock** or set to `off` for communication through **tcp/9000** port instead. +- `WEB_SERVER`=( on | off ) Default: `on` +- `OPCACHE_CONF`=( off | \$config ) Default: `$config` when prod environment +- [`XDEBUG_CONFIG`](https://xdebug.org/docs/remote) = ( off | \$config ) Default: `$config` when dev environment - If Xdebug is enabled, the PHP-FPM expects xdebug configuration through `XDEBUG_CONFIG` env var. - > If `PHP_FPM_SOCKET` == 0, **xdebug.remote_port** must be different of **9000**. + > If `ENABLE_FPM_SOCKET` = "off", **xdebug.remote_port** will be configured to use **9003** port. -### Daemon +- `REDIS`=( on | off ) Default: `off` +- `ENABLE_MEMCACHED`=( on | off ) Default: `off` +- `ENABLE_PARALLEL`=( on | off ) Default: `on` +- `ENABLE_MONGODB`=( on | off ) Default: `off` +- `ENABLE_SWOOLE`=( on | off ) Default: `off` +- `ENABLE_AMQP`=( on | off ) Default: `off` +- `ENABLE_SODIUM`=( on | off ) Default: `on` +- `ENABLE_DECIMAL`=( on | off ) Default: `on` -When running docker image as a daemon, `/run/start.sh` a shell script is executed at startup +## PHP Documentation -```shell - $ docker run -d -it --name ${my_container_name} -v "${host_path}:/var/www/html" zaioll/php-zts:${php_version} -``` +The PHP manual is available at [php.net/docs](https://php.net/docs). -To share the socket file, create shared volume first: +## Docker image -```shell - $ docker volume create sock -``` +### Possible PHP versions -Then, run the container passing the created shared volume. +At every compilation, the last **patch** version is fetched. -```shell - $ docker run -d -it -v "sock:/run/php" -v "${host_path}:/var/www/html" --name ${my_container_name} zaioll/php-zts:${php_version} -``` +[EBNF](https://bnfplayground.pauliankline.com/?bnf=%3Cphp_version_installed%3E%20%20%20%3A%3A%3D%20%3Cphp_version%3E%20%3Cseparator%3E%20%3Cpatch%3E%0A%3Cphp_version%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%3Cmajor%3E%20%3Cseparator%3E%20%3Cminor%3E%0A%3Cmajor%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%227%22%0A%3Cseparator%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%22.%22%0A%3Cminor%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%222%22%20%7C%20%224%22%0A%3Cpatch%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3A%3D%20%20(%20%220%22%20%7C%20%5B1-9%5D%20%5B0-9%5D*)%20%20&name=): -### Interactive + ::= + ::= + ::= "7" + ::= "." + ::= "1" | "2" | "3" | "4" + ::= ( "0" | [1-9] [0-9]*) -When running docker image as a iteractive form, the `/run/start.sh` shell script is not executed. Then, PHP-FPM is not started. It needs manual run. ## Features - [Composer 2.X](https://getcomposer.org/) for dependency management in PHP. +- Nginx and Apache2 webservers - [PhpBench](https://github.com/phpbench/phpbench) tool. - [Phive](https://phar.io/) -### Installed libs - -| Library | Version | -| :---: | :---: | -| libacl1 | 2.2.52-3+b1 | -| libapt-pkg5.0 | 1.4.9 | -| libaspell15 | 0.60.7~20110707-3+b2 | -| libassuan0 | 2.4.3-2 | -| libattr1 | 1:2.4.47-2+b2 | -| libaudit-common | 1:2.6.7-2 | -| libaudit1 | 1:2.6.7-2 | -| libblkid1 | 2.29.2-1+deb9u1 | -| libbsd0 | 0.8.3-1 | -| libbz2-1.0 | 1.0.6-8.1 | -| libc-bin | 2.24-11+deb9u4 | -| libc-client2007e | 8:2007f~dfsg-5 | -| libc-dev-bin | 2.24-11+deb9u4 | -| libc-l10n | 2.24-11+deb9u4 | -| libc6 | 2.24-11+deb9u4 | -| libc6-dev | 2.24-11+deb9u4 | -| libcap-ng0 | 0.7.7-3+b1 | -| libcap2 | 1:2.25-1 | -| libcomerr2 | 1.43.4-2+deb9u1 | -| libcurl3 | 7.52.1-5+deb9u10 | -| libcurl3-gnutls | 7.52.1-5+deb9u10 | -| libdb5.3 | 5.3.28-12+deb9u1 | -| libdebconfclient0 | 0.227 | -| libedit2 | 3.1-20160903-3 | -| libelf1 | 0.168-1 | -| libenchant1c2a | 1.6.0-11+b1 | -| liberror-perl | 0.17024-1 | -| libevent-2.0-5 | 2.0.21-stable-3 | -| libexpat1 | 2.2.0-2+deb9u3 | -| libfbclient2 | 3.0.1.32609.ds4-14 | -| libfcgi-bin | 2.4.0-8.4+b1 | -| libfcgi0ldbl | 2.4.0-8.4+b1 | -| libfdisk1 | 2.29.2-1+deb9u1 | -| libffi6 | 3.2.1-6 | -| libfreetype6 | 2.6.3-3.2+deb9u1 | -| libgcc1 | 1:6.3.0-18+deb9u1 | -| libgcrypt20 | 1.7.6-2+deb9u3 | -| libgdbm3 | 1.8.3-14 | -| libglib2.0-0 | 2.50.3-2+deb9u2 | -| libglib2.0-data | 2.50.3-2+deb9u2 | -| libgmp10 | 2:6.1.2+dfsg-1 | -| libgmpxx4ldbl | 2:6.1.2+dfsg-1 | -| libgnutls30 | 3.5.8-5+deb9u4 | -| libgpg-error0 | 1.26-2 | -| libgpm2 | 1.20.4-6.2+b1 | -| libgssapi-krb5-2 | 1.15-1+deb9u1 | -| libgssrpc4 | 1.15-1+deb9u1 | -| libhogweed4 | 3.3-1+b2 | -| libhunspell-1.4-0 | 1.4.1-2+b2 | -| libicu57 | 57.1-6+deb9u4 | -| libidn11 | 1.33-1+deb9u1 | -| libidn2-0 | 0.16-1+deb9u1 | -| libinotifytools0 | 3.14-2 | -| libjpeg62-turbo | 1:1.5.1-2 | -| libk5crypto3 | 1.15-1+deb9u1 | -| libkadm5clnt-mit11 | 1.15-1+deb9u1 | -| libkadm5srv-mit11 | 1.15-1+deb9u1 | -| libkdb5-8 | 1.15-1+deb9u1 | -| libkeyutils1 | 1.5.9-9 | -| libkrb5-3 | 1.15-1+deb9u1 | -| libkrb5support0 | 1.15-1+deb9u1 | -| libksba8 | 1.3.5-2 | -| libldap-2.4-2 | 2.4.44+dfsg-5+deb9u3 | -| libldap-common | 2.4.44+dfsg-5+deb9u3 | -| libltdl7 | 2.4.6-2 | -| liblz4-1 | 0.0~r131-2+b1 | -| liblzma5 | 5.2.2-1.2+b1 | -| libmcrypt4 | 2.5.8-3.3 | -| libmemcached11 | 1.0.18-4.1 | -| libmemcachedutil2 | 1.0.18-4.1 | -| libmnl0 | 1.0.4-2 | -| libmongo-client0 | 0.1.8-3.1 | -| libmount1 | 2.29.2-1+deb9u1 | -| libmpdec2 | 2.4.2-1 | -| libncurses5 | 6.0+20161126-1+deb9u2 | -| libncursesw5 | 6.0+20161126-1+deb9u2 | -| libnettle6 | 3.3-1+b2 | -| libnghttp2-14 | 1.18.1-1+deb9u1 | -| libnpth0 | 1.3-1 | -| libonig4 | 6.1.3-2 | -| libp11-kit0 | 0.23.3-2 | -| libpam-modules | 1.1.8-3.6 | -| libpam-modules-bin | 1.1.8-3.6 | -| libpam-runtime | 1.1.8-3.6 | -| libpam0g | 1.1.8-3.6 | -| libpci3 | 1:3.5.2-1 | -| libpcre3 | 2:8.39-3 | -| libperl5.24 | 5.24.1-3+deb9u6 | -| libpng16-16 | 1.6.28-1+deb9u1 | -| libpopt0 | 1.16-10+b2 | -| libpq5 | 9.6.17-0+deb9u1 | -| libpsl5 | 0.17.0-3 | -| libpython-stdlib | 2.7.13-2 | -| libpython2.7-minimal | 2.7.13-2+deb9u3 | -| libpython2.7-stdlib | 2.7.13-2+deb9u3 | -| libpython3-stdlib | 3.5.3-1 | -| libpython3.5-minimal | 3.5.3-1+deb9u1 | -| libpython3.5-stdlib | 3.5.3-1+deb9u1 | -| libreadline7 | 7.0-3 | -| librecode0 | 3.6-23 | -| librtmp1 | 2.4+20151223.gitfa8646d.1-1+b1 | -| libsasl2-2 | 2.1.27~101-g0780600+dfsg-3+deb | -| libsasl2-modules | 2.1.27~101-g0780600+dfsg-3+deb | -| libsasl2-modules-db | 2.1.27~101-g0780600+dfsg-3+deb | -| libselinux1 | 2.6-3+b3 | -| libsemanage-common | 2.6-2 | -| libsemanage1 | 2.6-2 | -| libsensors4 | 1:3.4.0-4 | -| libsepol1 | 2.6-2 | -| libsmartcols1 | 2.29.2-1+deb9u1 | -| libsnmp-base | 5.7.3+dfsg-1.7+deb9u1 | -| libsnmp30 | 5.7.3+dfsg-1.7+deb9u1 | -| libsqlite3-0 | 3.16.2-5+deb9u1 | -| libss2 | 1.43.4-2+deb9u1 | -| libssh2-1 | 1.7.0-1+deb9u1 | -| libssl1.0.2 | 1.0.2u-1~deb9u1 | -| libssl1.1 | 1.1.0l-1~deb9u1 | -| libstdc++6 | 6.3.0-18+deb9u1 | -| libsystemd0 | 232-25+deb9u12 | -| libtasn1-6 | 4.10-1.1+deb9u1 | -| libtext-iconv-perl | 1.7-5+b4 | -| libtinfo5 | 6.0+20161126-1+deb9u2 | -| libtommath1 | 1.0-4 | -| libudev1 | 232-25+deb9u12 | -| libunistring0 | 0.9.6+really0.9.3-0.1 | -| libustr-1.0-1 | 1.0.4-6 | -| libuuid1 | 2.29.2-1+deb9u1 | -| libwrap0 | 7.6.q-26 | -| libx11-6 | 2:1.6.4-3+deb9u1 | -| libx11-data | 2:1.6.4-3+deb9u1 | -| libxau6 | 1:1.0.8-1 | -| libxcb1 | 1.12-1 | -| libxdmcp6 | 1:1.1.2-3 | -| libxext6 | 2:1.3.3-1+b2 | -| libxml2 | 2.9.4+dfsg1-2.2+deb9u2 | -| libxmuu1 | 2:1.1.2-2 | -| libxslt1.1 | 1.1.29-2.1+deb9u2 | -| libzip4 | 1.1.2-1.1+b1 | - -### Installed PHP extensions - -| Extension | Version | -| :---: | :---: | -| FFI | | -| Core | 7.4.4 | -| date | 7.4.4 | -| libxml | 7.4.4 | -| openssl | 7.4.4 | -| pcre | 7.4.4 | -| sqlite3 | 7.4.4 | -| zlib | 7.4.4 | -| bcmath | 7.4.4 | -| bz2 | 7.4.4 | -| calendar | 7.4.4 | -| ctype | 7.4.4 | -| curl | 7.4.4 | -| dom | 20031129 | -| enchant | 7.4.4 | -| hash | 7.4.4 | -| fileinfo | 7.4.4 | -| filter | 7.4.4 | -| ftp | 7.4.4 | -| gd | 7.4.4 | -| gettext | 7.4.4 | -| SPL | 7.4.4 | -| iconv | 7.4.4 | -| session | 7.4.4 | -| intl | 7.4.4 | -| json | 7.4.4 | -| mbstring | 7.4.4 | -| standard | 7.4.4 | -| pcntl | 7.4.4 | -| PDO | 7.4.4 | -| PDO_Firebird | 7.4.4 | -| mysqlnd | mysqlnd | -| pdo_pgsql | 7.4.4 | -| pdo_sqlite | 7.4.4 | -| pgsql | 7.4.4 | -| Phar | 7.4.4 | -| posix | 7.4.4 | -| pspell | 7.4.4 | -| readline | 7.4.4 | -| Reflection | 7.4.4 | -| imap | 7.4.4 | -| SimpleXML | 7.4.4 | -| soap | 7.4.4 | -| sockets | 7.4.4 | -| pdo_mysql | 7.4.4 | -| exif | 7.4.4 | -| sysvsem | 7.4.4 | -| sysvshm | 7.4.4 | -| tokenizer | 7.4.4 | -| xml | 7.4.4 | -| xmlreader | 7.4.4 | -| xmlrpc | 7.4.4 | -| xmlwriter | 7.4.4 | -| xsl | 7.4.4 | -| zip | 1.15.6 | -| mysqli | 7.4.4 | -| decimal | 1.3.1 | -| memcached | 3.1.5 | -| parallel | 1.1.3 | -| redis | 5.2.1 | -| Zend | OPcache | -| xdebug | 2.9.4 | - ### Modules - [Parallel](https://https://github.com/krakjoe/parallel.git) @@ -290,6 +130,15 @@ When running docker image as a iteractive form, the `/run/start.sh` shell script - [Memcached](https://github.com/php-memcached-dev/php-memcached.git) - [Mongodb](https://github.com/mongodb/mongo-php-driver.git) - [Redis](https://github.com/phpredis/phpredis.git) +- [Sodium] +- [PHP AMQP](https://github.com/php-amqp/php-amqp) + +### Installed libs and extensions + +Inside `/info/` directory are compile and info logs files + +- [Installed Libs](benckmarks/installed-libs.md) +- [Installed PHP extensions](benckmarks/installed-php-extensions.md) ## Benchmarks diff --git a/benckmarks/installed-libs.md b/benckmarks/installed-libs.md new file mode 100644 index 0000000..51c25ea --- /dev/null +++ b/benckmarks/installed-libs.md @@ -0,0 +1,208 @@ +### Installed libs + +| Library | Version | +| :---: | :---: | +|libacl1 | 2.2.52-3+b1| +|libapt-pkg5.0 | 1.4.11| +|libaspell15 | 0.60.7~20110707-3+b2| +|libassuan0 | 2.4.3-2| +|libatm1 | 1:2.5.1-2| +|libattr1 | 1:2.4.47-2+b2| +|libaudit-common | 1:2.6.7-2| +|libaudit1 | 1:2.6.7-2| +|libblkid1 | 2.29.2-1+deb9u1| +|libbsd0 | 0.8.3-1+deb9u1| +|libbz2-1.0 | 1.0.6-8.1| +|libc-bin | 2.24-11+deb9u4| +|libc-client2007e | 8:2007f~dfsg-5| +|libc-dev-bin | 2.24-11+deb9u4| +|libc-l10n | 2.24-11+deb9u4| +|libc6 | 2.24-11+deb9u4| +|libc6-dev | 2.24-11+deb9u4| +|libcap-ng0 | 0.7.7-3+b1| +|libcomerr2 | 1.43.4-2+deb9u2| +|libcurl3 | 7.52.1-5+deb9u14| +|libcurl3-gnutls | 7.52.1-5+deb9u14| +|libdb5.3 | 5.3.28-12+deb9u1| +|libdebconfclient0 | 0.227| +|libedit2 | 3.1-20160903-3| +|libelf1 | 0.168-1| +|libenchant1c2a | 1.6.0-11+b1| +|libevent-2.0-5 | 2.0.21-stable-3| +|libexpat1 | 2.2.0-2+deb9u3| +|libfbclient2 | 3.0.1.32609.ds4-14| +|libfcgi-bin | 2.4.0-8.4+b1| +|libfcgi0ldbl | 2.4.0-8.4+b1| +|libfdisk1 | 2.29.2-1+deb9u1| +|libffi6 | 3.2.1-6| +|libfontconfig1 | 2.11.0-6.7+b1| +|libfreetype6 | 2.6.3-3.2+deb9u2| +|libgcc1 | 1:6.3.0-18+deb9u1| +|libgcrypt20 | 1.7.6-2+deb9u4| +|libgd3 | 2.2.4-2+deb9u5| +|libgdbm3 | 1.8.3-14| +|libgeoip1 | 1.6.9-4| +|libglib2.0-0 | 2.50.3-2+deb9u2| +|libglib2.0-data | 2.50.3-2+deb9u2| +|libgmp10 | 2:6.1.2+dfsg-1| +|libgmpxx4ldbl | 2:6.1.2+dfsg-1| +|libgnutls30 | 3.5.8-5+deb9u5| +|libgpg-error0 | 1.26-2| +|libgpm2 | 1.20.4-6.2+b1| +|libgssapi-krb5-2 | 1.15-1+deb9u2| +|libgssrpc4 | 1.15-1+deb9u2| +|libhogweed4 | 3.3-1+b2| +|libhunspell-1.4-0 | 1.4.1-2+b2| +|libicu57 | 57.1-6+deb9u4| +|libidn11 | 1.33-1+deb9u1| +|libidn2-0 | 0.16-1+deb9u1| +|libinotifytools0 | 3.14-2| +|libjbig0 | 2.1-3.1+b2| +|libjpeg62-turbo | 1:1.5.1-2+deb9u1| +|libk5crypto3 | 1.15-1+deb9u2| +|libkadm5clnt-mit11 | 1.15-1+deb9u2| +|libkadm5srv-mit11 | 1.15-1+deb9u2| +|libkdb5-8 | 1.15-1+deb9u2| +|libkeyutils1 | 1.5.9-9| +|libkrb5-3 | 1.15-1+deb9u2| +|libkrb5support0 | 1.15-1+deb9u2| +|libksba8 | 1.3.5-2| +|libldap-2.4-2 | 2.4.44+dfsg-5+deb9u8| +|libldap-common | 2.4.44+dfsg-5+deb9u8| +|libltdl7 | 2.4.6-2| +|liblz4-1 | 0.0~r131-2+deb9u1| +|liblzma5 | 5.2.2-1.2+b1| +|libmcrypt4 | 2.5.8-3.3| +|libmemcached11 | 1.0.18-4.1| +|libmemcachedutil2 | 1.0.18-4.1| +|libmnl0 | 1.0.4-2| +|libmongo-client0 | 0.1.8-3.1| +|libmount1 | 2.29.2-1+deb9u1| +|libmpdec2 | 2.4.2-1| +|libncurses5 | 6.0+20161126-1+deb9u2| +|libncursesw5 | 6.0+20161126-1+deb9u2| +|libnettle6 | 3.3-1+b2| +|libnghttp2-14 | 1.18.1-1+deb9u1| +|libnginx-mod-http-auth-pam | 1.10.3-1+deb9u7| +|libnginx-mod-http-dav-ext | 1.10.3-1+deb9u7| +|libnginx-mod-http-echo | 1.10.3-1+deb9u7| +|libnginx-mod-http-geoip | 1.10.3-1+deb9u7| +|libnginx-mod-http-image-filter| 1.10.3-1+deb9u7| +|libnginx-mod-http-subs-filter | 1.10.3-1+deb9u7| +|libnginx-mod-http-upstream-fai| 1.10.3-1+deb9u7| +|libnginx-mod-http-xslt-filter | 1.10.3-1+deb9u7| +|libnginx-mod-mail | 1.10.3-1+deb9u7| +|libnginx-mod-stream | 1.10.3-1+deb9u7| +|libnpth0 | 1.3-1| +|libonig4 | 6.1.3-2+deb9u2| +|libp11-kit0 | 0.23.3-2+deb9u1| +|libpam-modules | 1.1.8-3.6| +|libpam-modules-bin | 1.1.8-3.6| +|libpam-runtime | 1.1.8-3.6| +|libpam0g | 1.1.8-3.6| +|libpci3 | 1:3.5.2-1| +|libpcre3 | 2:8.39-3| +|libperl5.24 | 5.24.1-3+deb9u7| +|libpng16-16 | 1.6.28-1+deb9u1| +|libpq5 | 9.6.22-0+deb9u1| +|libpsl5 | 0.17.0-3| +|libpython-stdlib | 2.7.13-2| +|libpython2.7-minimal | 2.7.13-2+deb9u5| +|libpython2.7-stdlib | 2.7.13-2+deb9u5| +|librabbitmq4 | 0.8.0-1+b3| +|libreadline7 | 7.0-3| +|librecode0 | 3.6-23| +|librtmp1 | 2.4+20151223.gitfa8646d.1-1+b1| +|libsasl2-2 | 2.1.27~101-g0780600+dfsg-3+deb| +|libsasl2-modules | 2.1.27~101-g0780600+dfsg-3+deb| +|libsasl2-modules-db | 2.1.27~101-g0780600+dfsg-3+deb| +|libselinux1 | 2.6-3+b3| +|libsemanage-common | 2.6-2| +|libsemanage1 | 2.6-2| +|libsensors4 | 1:3.4.0-4| +|libsepol1 | 2.6-2| +|libsmartcols1 | 2.29.2-1+deb9u1| +|libsnappy1v5 | 1.1.3-3| +|libsnmp-base | 5.7.3+dfsg-1.7+deb9u3| +|libsnmp30 | 5.7.3+dfsg-1.7+deb9u3| +|libsodium18 | 1.0.11-2| +|libsqlite3-0 | 3.16.2-5+deb9u3| +|libss2 | 1.43.4-2+deb9u2| +|libssh2-1 | 1.7.0-1+deb9u1| +|libssl1.0.2 | 1.0.2u-1~deb9u4| +|libssl1.1 | 1.1.0l-1~deb9u3| +|libstdc++6 | 6.3.0-18+deb9u1| +|libsystemd0 | 232-25+deb9u12| +|libtasn1-6 | 4.10-1.1+deb9u1| +|libtext-iconv-perl | 1.7-5+b4| +|libtiff5 | 4.0.8-2+deb9u6| +|libtinfo5 | 6.0+20161126-1+deb9u2| +|libtommath1 | 1.0-4| +|libudev1 | 232-25+deb9u12| +|libunistring0 | 0.9.6+really0.9.3-0.1| +|libustr-1.0-1 | 1.0.4-6| +|libuuid1 | 2.29.2-1+deb9u1| +|libwebp6 | 0.5.2-1+deb9u1| +|libwrap0 | 7.6.q-26| +|libx11-6 | 2:1.6.4-3+deb9u4| +|libx11-data | 2:1.6.4-3+deb9u4| +|libxau6 | 1:1.0.8-1| +|libxcb1 | 1.12-1| +|libxdmcp6 | 1:1.1.2-3| +|libxml2 | 2.9.4+dfsg1-2.2+deb9u5| +|libxpm4 | 1:3.5.12-1| +|libxslt1.1 | 1.1.29-2.1+deb9u2| +|libxtables12 | 1.6.0+snapshot20161117-6| +|libzip4 | 1.1.2-1.1+b1| +root@46548931ca91:/info# cat installed-libs | more +| Library | Version | +|libacl1 | 2.2.52-3+b1| +|libapt-pkg5.0 | 1.4.11| +|libaspell15 | 0.60.7~20110707-3+b2| +|libassuan0 | 2.4.3-2| +|libatm1 | 1:2.5.1-2| +|libattr1 | 1:2.4.47-2+b2| +|libaudit-common | 1:2.6.7-2| +|libaudit1 | 1:2.6.7-2| +|libblkid1 | 2.29.2-1+deb9u1| +|libbsd0 | 0.8.3-1+deb9u1| +|libbz2-1.0 | 1.0.6-8.1| +|libc-bin | 2.24-11+deb9u4| +|libc-client2007e | 8:2007f~dfsg-5| +|libc-dev-bin | 2.24-11+deb9u4| +|libc-l10n | 2.24-11+deb9u4| +|libc6 | 2.24-11+deb9u4| +|libc6-dev | 2.24-11+deb9u4| +|libcap-ng0 | 0.7.7-3+b1| +|libcomerr2 | 1.43.4-2+deb9u2| +|libcurl3 | 7.52.1-5+deb9u14| +|libcurl3-gnutls | 7.52.1-5+deb9u14| +|libdb5.3 | 5.3.28-12+deb9u1| +|libdebconfclient0 | 0.227| +|libedit2 | 3.1-20160903-3| +|libelf1 | 0.168-1| +|libenchant1c2a | 1.6.0-11+b1| +|libevent-2.0-5 | 2.0.21-stable-3| +|libexpat1 | 2.2.0-2+deb9u3| +|libfbclient2 | 3.0.1.32609.ds4-14| +|libfcgi-bin | 2.4.0-8.4+b1| +|libfcgi0ldbl | 2.4.0-8.4+b1| +|libfdisk1 | 2.29.2-1+deb9u1| +|libffi6 | 3.2.1-6| +|libfontconfig1 | 2.11.0-6.7+b1| +|libfreetype6 | 2.6.3-3.2+deb9u2| +|libgcc1 | 1:6.3.0-18+deb9u1| +|libgcrypt20 | 1.7.6-2+deb9u4| +|libgd3 | 2.2.4-2+deb9u5| +|libgdbm3 | 1.8.3-14| +|libgeoip1 | 1.6.9-4| +|libglib2.0-0 | 2.50.3-2+deb9u2| +|libglib2.0-data | 2.50.3-2+deb9u2| +|libgmp10 | 2:6.1.2+dfsg-1| +|libgmpxx4ldbl | 2:6.1.2+dfsg-1| +|libgnutls30 | 3.5.8-5+deb9u5| +|libgpg-error0 | 1.26-2| +|libgpm2 | 1.20.4-6.2+b1| +|libgssapi-krb5-2 | 1.15-1+deb9u2| +|libgssrpc4 | 1.15-1+deb9u2| +|libhogweed4 | 3.3-1+b2| diff --git a/benckmarks/installed-php-extensions.md b/benckmarks/installed-php-extensions.md new file mode 100644 index 0000000..de65feb --- /dev/null +++ b/benckmarks/installed-php-extensions.md @@ -0,0 +1,69 @@ +| Extension | Version | +| :---: | :---: | +|Core | 7.4.21| +|date | 7.4.21| +|libxml | 7.4.21| +|openssl | 7.4.21| +|pcre | 7.4.21| +|sqlite3 | 7.4.21| +|zlib | 7.4.21| +|bcmath | 7.4.21| +|bz2 | 7.4.21| +|calendar | 7.4.21| +|ctype | 7.4.21| +|curl | 7.4.21| +|dom | 20031129| +|enchant | 7.4.21| +|hash | 7.4.21| +|FFI | 7.4.21| +|fileinfo | 7.4.21| +|filter | 7.4.21| +|ftp | 7.4.21| +|gd | 7.4.21| +|gettext | 7.4.21| +|gmp | 7.4.21| +|SPL | 7.4.21| +|iconv | 7.4.21| +|session | 7.4.21| +|intl | 7.4.21| +|json | 7.4.21| +|mbstring | 7.4.21| +|standard | 7.4.21| +|pcntl | 7.4.21| +|PDO | 7.4.21| +|PDO_Firebird | 7.4.21| +|mysqlnd | mysqlnd| +|pdo_pgsql | 7.4.21| +|pdo_sqlite | 7.4.21| +|pgsql | 7.4.21| +|Phar | 7.4.21| +|posix | 7.4.21| +|pspell | 7.4.21| +|readline | 7.4.21| +|Reflection | 7.4.21| +|imap | 7.4.21| +|SimpleXML | 7.4.21| +|soap | 7.4.21| +|sockets | 7.4.21| +|pdo_mysql | 7.4.21| +|exif | 7.4.21| +|sysvsem | 7.4.21| +|sysvshm | 7.4.21| +|tokenizer | 7.4.21| +|xml | 7.4.21| +|xmlreader | 7.4.21| +|xmlrpc | 7.4.21| +|xmlwriter | 7.4.21| +|xsl | 7.4.21| +|zip | 1.15.6| +|mysqli | 7.4.21| +|amqp | 1.10.2| +|decimal | 1.4.0| +|memcached | 3.1.5| +|mongodb | 1.9.1| +|parallel | 1.1.4| +|redis | 5.3.4| +|sodium | 2.0.23| +|swoole | 4.6.7| +|Zend | OPcache| +|xdebug | 3.0.4| diff --git a/install/post-install b/install/post-install index bbf344d..eea5c7c 100755 --- a/install/post-install +++ b/install/post-install @@ -13,6 +13,10 @@ rm -rf /tmp/* dpkg-query --show --showformat='${Package;-30} ${Version;-30} ${Status}\n' | grep installed | grep ^lib | awk '{printf "%-30s %s\n",$1,$2}'>/info/installed-libs +echo "| Library | Version |" > /info/installed-libs.md +echo "| :---: | :---: |" >> /info/installed-libs.md +dpkg-query --show --showformat='${Package;-30} ${Version;-30} ${Status}\n' | grep installed | grep ^lib | awk '{printf "|%-30s| %s|\n",$1,$2}' >> /info/installed-libs.md + ext_dir=$(php-config --extension-dir) all_ext_ini=/etc/php/all-ext.ini :>${all_ext_ini} @@ -27,6 +31,9 @@ done php -c ${all_ext_ini} -r 'foreach (get_loaded_extensions() as $e) { echo "$e\t" . phpversion($e) . "\n"; }' | awk '{printf "%-30s %s\n",$1,$2}'>/info/installed-php-extensions +echo "| Extension | Version |" > /info/installed-php-extensions.md +echo "| :---: | :---: |" >> /info/installed-php-extensions.md +php -c ${all_ext_ini} -r 'foreach (get_loaded_extensions() as $e) { echo "$e\t" . phpversion($e) . "\n"; }' | awk '{printf "|%-30s| %s|\n",$1,$2}' >> /info/installed-php-extensions.md rm -rf /usr/local/src/* rm -rf /install