Skip to content

Support INITDB arg #20

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Support INITDB arg #20

wants to merge 1 commit into from

Conversation

half0wl
Copy link

@half0wl half0wl commented Mar 16, 2025

This adds an INITDB arg inside wrapper.sh to control whether we initialize the database (i.e. run /usr/local/bin/docker-entrypoint.sh)

If INITDB=false, it will sleep infinity instead of running the entrypoint.sh of base Postgres image. This lets us keep the container alive for railway ssh to work

This is for scenarios where we want to bootstrap the template on Railway with service configuration (env vars, tcp proxies, etc.) but we do not yet want the database to be initialized (e.g. spinning up replica instances where pgdata dir should not be initialized yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant