-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geoserver: wait for DB and DB user to be available #4
base: main
Are you sure you want to change the base?
Conversation
Waiting just for Postgres to be accepting TCP connections is not enough. The Postgres service is slow to set up during the first deploy. GeoFence would fail to create its tables (as the DB is not ready yet), and stay broken instead of crashing or trying again. Note that an image including psql is necessary.
charts/geonode/values.yaml
Outdated
@@ -348,9 +348,9 @@ geoserver: | |||
container_name: geoserver-wait-for-db | |||
image: | |||
# init container image | |||
name: jwilder/dockerize | |||
name: governmentpaas/psql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use an official image instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish, but which image is an official image with just psql? I don't want a big image just for psql.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the big image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
evantually the same used by the zalando cluster if available in the values file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. My latest commit uses postgres:16-alpine
.
Waiting just for Postgres to be accepting TCP connections is not enough.
The Postgres service is slow to set up during the first deploy. GeoFence would fail to create its tables (as the DB is not ready yet), and stay broken instead of crashing or trying again.
Note that an image including psql is necessary. Here I'm using
governmentpaas/psql
but maybe we'll want to create our own.