sclorg / s2i-php-container

PHP container images based on Red Hat Software Collections and intended for OpenShift and general usage, that provide a platform for building and running PHP applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
http://softwarecollections.org
Apache License 2.0
107 stars 331 forks source link

8.1 version of s2i-php-container web server user does not get the environment variables (env) secrets from Openshift #402

Closed olstjos closed 1 year ago

olstjos commented 1 year ago

Ok so I've tested 8.1, and have found the following:

Our secret environment variables are showing up for the pod user but the web server instance does not see our environment variables.

This crashes our application because our server cannot connect to the database.

So somewhere in the 8.1 recipe, the web server user is no longer the same user that gets the openshift secrets.

It's possible that I could maybe fix this on my end but I'm not sure where to start.

Our image is from here: https://github.com/ised-ocp-prod/sclorg-s2i-php/tree/master/8.1

pkubatrh commented 1 year ago

Duplicate of #403

joejoseph00 commented 6 months ago

PHP 8.1 is old news , PHP 8.3 is 53% faster on Drupal than compared with PHP 8.1 and Kinstas benchmarking. https://github.com/sclorg/s2i-php-container/issues/435