CrunchyData / crunchy-containers

Containers for Managing PostgreSQL on Kubernetes by Crunchy Data
https://www.crunchydata.com/
Apache License 2.0
1.01k stars 328 forks source link

Modified image cannot be runned #1363

Closed empeekdev closed 3 years ago

empeekdev commented 3 years ago

Which example are you working with? I’m trying to install custom extension for postgres ( plv8 library and custom pgRouting version). After modifying database pod fails to start.

What is the current behavior? After creating cluster database pod fail with Error: container has runAsNonRoot and image has non-numeric user (postgres), cannot verify user is non-root (pod: "hippo-ha83-7f9fd658f9-2f6v5_pgo(17a58d72-5c67-4256-8f37-b0db24a4df64)", container: database)

What is the expected behavior? Pod should start successfully

Other information (e.g. detailed explanation, related issues, etc) Dockerfile:

FROM registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis-ha:centos8-12.6-3.0-4.6.2

USER root

(some modifications here)

USER 26

Please tell us about your environment:

empeekdev commented 3 years ago

Also there is another one issue. If we use ha version of crunchy docker image, extensions cannot be enabled inside of pod, because there are no libc++.so.1 and libCGAL.so.13 files. But if we use non ha version and run this image in docker container, these extensions will be enabled automatically. Do you have any ideas about this too?