-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Added entrypoint for tools to perform initialization. #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
Conversation
fbbf772 to
5a0279d
Compare
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.
Pull Request Overview
Adds Docker entrypoint functionality to enable initialization scripts for tools, allowing automated database setup and data source configuration when containers start.
- Implements modular entrypoint system that executes initialization scripts from
/entrypoint.d/ - Adds database initialization and data source creation capabilities
- Updates Docker configuration to use standard PostgreSQL image with proper environment variables
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| docker/entrypoint.sh | Main entrypoint script that executes initialization scripts and passes through commands |
| docker/entrypoint.d/datasource-init.sh | Creates Senzing data sources based on SENZING_DATASOURCES environment variable |
| docker/entrypoint.d/database-init.sh | Initializes PostgreSQL database with Senzing schema if not already present |
| docker-compose.yaml | Updates to use standard postgres image and adds PostgreSQL connection environment variables |
| Dockerfile.tools | Installs PostgreSQL client, copies entrypoint scripts, and sets up proper entrypoint |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
lgtm
Given the changes to the Bitnami catalog, which prevents us from pinning the database container to a version, this also swaps out the database container for the official PostgreSQL one.