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

Create app schema automatically #508

Merged
merged 3 commits into from
Jul 6, 2024
Merged

Create app schema automatically #508

merged 3 commits into from
Jul 6, 2024

Conversation

snpaul22
Copy link
Contributor

@snpaul22 snpaul22 commented May 4, 2024

When running Lube Logger with a Postgres backend, Lube Logger requires you to create an app schema in the database before the program will be functional. This commit is two part:

  1. Created the initialization script that will check the Postgres db for the existence of the app schema. It will create it automatically at start if it doesn't exist. It will skip and continue starting if it does exist.
  2. Added a bind mount for the init.sql initialization script to the docker-entrypoint-initdb.d make the script run on container startup.

snpaul22 added 2 commits May 4, 2024 11:23
Added Postgres volume bind for initialization script
Script checks for "app" schema in Postgres during startup. It will create the schema automatically if it doesn't exist or skip if it does exist.
@snpaul22 snpaul22 closed this Jul 6, 2024
@snpaul22 snpaul22 reopened this Jul 6, 2024
Copy link
Owner

@hargata hargata left a comment

Choose a reason for hiding this comment

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

looks good, thank you!

@hargata hargata merged commit 9dcdcf9 into hargata:main Jul 6, 2024
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.

3 participants