When setting the securityContext.readOnlyRootFilesystem: true on the container, the container fails to run, failing at https://github.com/sclorg/postgresql-container/blob/master/16/root/usr/share/container-scripts/postgresql/common.sh#L196-L205 while trying to create the /var/lib/pgsql/passwd file.
It looks like the bitnami postgresql container (https://github.com/bitnami/containers/tree/main/bitnami/postgresql) does not have the same issue and also has the readOnlyRootFilesystem set to true by default.
We are running the container on OCP 4, do you have any recommendations for working around this issue?