Skip to content

Commit 14aacd1

Browse files
Fix missing procps on FrankenPHP Variation (#571)
* Fix missing gettext, procps and zip on FrankenPHP Variation * Remove gettext (we don't need envsubst for FrankenPHP) * Update default configurations to include libstdc++6 and clarify procps requirements for Debian images * Removed zip -- we don't need it --------- Co-authored-by: Jay Rogers <[email protected]>
1 parent c92e7c7 commit 14aacd1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/content/docs/2.getting-started/3.default-configurations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ The following packages are installed by default:
8585
|-------------|-----------------|----------------------|------------------------|
8686
| `libfcgi-bin`<br/>(Debian)<br/>`fcgi`<br/>(Alpine) | FastCGI is a protocol for interfacing interactive programs with a web server. | *-fpm <br/> *-fpm-nginx <br/> *-fpm-apache | This is required for the webserver to interface with PHP-FPM and the [`php-fpm-healthcheck`](https://github.com/renatomefi/php-fpm-healthcheck) project. |
8787
| `gettext-base` (Debian) <br/> `gettext` (Alpine) | GNU gettext is a framework for translating user interfaces. | *-fpm-nginx <br/> *-fpm-apache | This is required for the `envsubst` command. We use this command to process templates on container initialization. |
88-
| `procps` (Debian) | The procps package contains programs for monitoring your system and its processes. | * (Debian images) | This is required for `pgrep` so we can use that for our native health checks. |
88+
| `libstdc++6`<br/>(Debian)<br/>`libstdc++` (Alpine) | The GNU Standard C++ Library is a C++ standard library. | *-frankenphp | This is [required for the watcher to run](https://github.com/php/frankenphp/blob/e917ab79742c9e4703023861fdc7a86cdb59da1e/Dockerfile#L135-L138) with FrankenPHP. |
89+
| `procps` | The procps package contains programs for monitoring your system and its processes. | * (only Debian images) | This is required for `pgrep` so we can use that for our native health checks. |
8990
| `shadow` | Shadow is required for the `usermod` command. | *-alpine | This is required to change the UID and GID of the `www-data` user in `docker-php-serversideup-set-id`. |
9091

92+
9193
## Health Checks
9294
By default, all health checks for web servers (Apache, Unit, NGINX, etc.) are located at `/healthcheck`. You should receive an `OK` response if the container is healthy.
9395

src/variations/frankenphp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ RUN if cat /etc/os-release | grep -q 'debian'; then \
116116
####################
117117
FROM common AS final
118118
ARG DEPENDENCY_PACKAGES_ALPINE='shadow libstdc++'
119-
ARG DEPENDENCY_PACKAGES_DEBIAN='libstdc++6'
119+
ARG DEPENDENCY_PACKAGES_DEBIAN='procps libstdc++6'
120120
ARG DEPENDENCY_PHP_EXTENSIONS='opcache pcntl pdo_mysql pdo_pgsql redis zip'
121121
ARG REPOSITORY_BUILD_VERSION='dev'
122122

0 commit comments

Comments
 (0)