On OpenShift clusters, containers will be assigned to an arbitrary user ID within the range of [1000670000, 1000679999], and they don't have permission to write /var/run/postgresql which is the default data directory of the database image.
This PR is to fix the issue above by mounting a volume into the container and let the db put data into a subdirectory, so that it will be writable.
chmod: /var/run/postgresql: Operation not permitted
On OpenShift clusters, containers will be assigned to an arbitrary user ID within the range of [1000670000, 1000679999], and they don't have permission to write
/var/run/postgresql
which is the default data directory of the database image.This PR is to fix the issue above by mounting a volume into the container and let the db put data into a subdirectory, so that it will be writable.
<Explain your change!>
Did you sign your commit? Instructions
Have you read Contributing guidelines?