Closed naingthet closed 1 month ago
Hi,
If you want to user root then you need to run set runAsUser: 0. However, in this kind of scenarios what we recommend is to create a fork of the PostgreSQL container.
This should help you: https://github.com/bitnami/containers/issues/32677#issuecomment-1537857717
This helped a lot, thanks so much!
FWIW, I only managed to get this working by completely reverting the security context settings for the primary container:
- primary:
containerSecurityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
privileged: true
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
preInitDb:
scripts:
preinit.sh: |
#!/bin/sh
apt update
...
Name and Version
bitnami/postgresql:15.5.0-debian-11-r25
What architecture are you using?
amd64
What steps will reproduce the bug?
Hello, I am new to using bitnami and having quite a bit of trouble installing postgresql extensions. I am attempting to use
preInitDb
but have not had any success. Am I properly configuring root user?Using this config:
What is the expected behavior?
pgvector
is installed into the environment andvector
extension is created successfullyWhat do you see instead?
This does not seem to successfully install the
vector
extension, and migrations are unable to use the extension.Additional information
No response