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

Suggestions to improve the Docker primary examples. #1434

Open roberto-mello opened 2 years ago

roberto-mello commented 2 years ago

1) The use of the $CCPROOT env var requires it be exported first, and the individual example do mention that, so I think it should just be removed.

2) Add -e MODE to run.sh, without which run.sh fails

3) Add exports of CCP_IMAGE_PREFIX and CCP_IMAGE_TAG where to find them, to the example, without which run.sh also fails

4) Add the use of PGPASSWORD to the psql example, without which the user will have to review run.sh to figure out what the password is, giving the user a little extra work

I am assuming these examples are meant for beginners getting familiar, so I believe they should just work. From them the reader will then be able to extract what one needs to deploy a proper container later.

Checklist:

Type of Changes:

What is the current behavior? (link to any open issues here)

Examples that don't work

What is the new behavior (if this is a feature change)?

Examples that work

Other information: