Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

camuffo
Copy link

@camuffo camuffo commented Jun 12, 2024

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.

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.
@camuffo camuffo requested a review from randomorder June 27, 2024 08:38
@@ -348,9 +348,9 @@ geoserver:
container_name: geoserver-wait-for-db
image:
# init container image
name: jwilder/dockerize
name: governmentpaas/psql
Copy link
Member

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?

Copy link
Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the big image

Copy link
Member

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

Copy link
Author

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.

@randomorder randomorder added the DevOps This label marks this as a DevOps activity label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevOps This label marks this as a DevOps activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants