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

feat: Implement Database Import and Streamlit Dashboard Setup via Doc… #474

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

Runtee
Copy link
Contributor

@Runtee Runtee commented Feb 25, 2025

  • Update docker-compose.dashboard-app.yaml to define services for PostgreSQL and Streamlit.
  • Added a PostgreSQL 16 database service with environment variables for credentials.
  • Implemented a healthcheck for the database service to ensure it's ready before Streamlit starts.
  • Created .entrypoint.sh script to:
    • Wait for the database to be ready.
    • Import data from derisk_dump_part_aa.sql.
    • Provide an interactive prompt to continue without data import if the dump file is missing.
    • Start the Streamlit application.
  • Mounted the SQL dump file and Streamlit application code into the Docker containers.

@Runtee
Copy link
Contributor Author

Runtee commented Feb 25, 2025

I was not able to upload the full dump file.
it's a bit too large(almost 700mb) and wasn't even able to extract completely.
I just uploaded a fraction of it to the repo.

@djeck1432 djeck1432 self-requested a review February 26, 2025 08:15
@djeck1432 djeck1432 linked an issue Feb 26, 2025 that may be closed by this pull request
@djeck1432
Copy link
Collaborator

@Runtee Any updates?

Copy link
Collaborator

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

LGTM


CMD ["streamlit", "run", "dashboard.py"]
# Copy the requirements file and install Python dependencies
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove comment please

@djeck1432
Copy link
Collaborator

LGTM

@djeck1432 djeck1432 merged commit 65fb87c into CarmineOptions:master Feb 27, 2025
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.

[Dashboard app] Add import db from pg_dump file
2 participants