docker-library / docker-library/postgres
Add an option to skip DB init check
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 2.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/docker-library/postgres/blob/master/16/alpine3.19/docker-entrypoint.sh#L234
Currently, checking if the DB is initialized is by checking if $PGDATA/PG_VERSION if exist.
However, PGDATA may not be the real data directory.
The real data directory can be overwritten by $PGDATA/postgresql.conf with data_directory = ''.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with 16/alpine3.19/docker-entrypoint.sh around line 234 and trace how the PG_VERSION check determines whether the database is initialized. Review how postgresql.conf and data_directory affect the real data location, then define and implement the skip option so the entrypoint honors it; done means initialization detection can be bypassed as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, shell
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100