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

Rocky8 support + CCP_PG_EXTENSIONS env for easy install additional extensions #1475

Closed pere3 closed 1 year ago

pere3 commented 1 year ago

Checklist:

Type of Changes:

What is the current behavior? (link to any open issues here) currently there is no way to build yourself a crunchy-containers if you are not a crunchy data customer (because ubi8 images requires licences) and centos8 support is broken since centos8 went EOL (December 31st, 2021)

there is also no easy way to customize images with additional pg_extensions you may need https://github.com/CrunchyData/crunchy-containers/issues/1335 https://github.com/CrunchyData/postgres-operator/issues/2016

What is the new behavior (if this is a feature change)? i've added rocky8 support as it currently stands as centos replacement and also introduced CCP_PG_EXTENSIONS env which can be used to easily add list of extensions for your build

export CCP_PG_EXTENSIONS="pg_qualstats_$CCP_PGVERSION hypopg_$CCP_PGVERSION powa_$CCP_PGVERSION"

there is also official postgres repo added for community builds

Other information: there is no way for me to tests this builds on PG11 and PG12, as this versions is not available at https://repo.developers.crunchydata.com/, but PG13 and PG14 build just fine

Successfully tagged crunchydata/crunchy-base:rocky8-13.8-5.2.0-0
Successfully tagged crunchydata/crunchy-postgres:rocky8-13.8-5.2.0-0
Successfully tagged crunchydata/crunchy-pgbackrest:rocky8-13.8-5.2.0-0

Successfully tagged crunchydata/crunchy-base:rocky8-14.5-5.2.0-0
Successfully tagged crunchydata/crunchy-postgres:rocky8-14.5-5.2.0-0
Successfully tagged crunchydata/crunchy-pgbackrest:rocky8-14.5-5.2.0-0

also only version 2.36 of pgbackrest is available here and 4.20 for pgadmin4

jelmer commented 1 year ago

I've tested this PR and can confirm it works well. I did need to explicitly specify the registry URL for rocky8 - see https://github.com/pere3/crunchy-containers/pull/1