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

Issue #44: custom postgres docker image #45

Conversation

SonOfLope
Copy link
Contributor

Ref #44

@@ -0,0 +1,49 @@
import os
import requests

Copy link
Member

Choose a reason for hiding this comment

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

Use https://pypi.org/project/python-dotenv/ to fetch env values from Dockerfile

e.g

from dotenv import load_dotenv

if __name__ == "__main__":
    load_dotenv()

    BB_URL = os.getenv("BB_URL")
    BB_SERVICE_ACCOUNT = os.getenv("BB_SERVICE_ACCOUNT")
    BB_SERVICE_KEY = os.getenv("BB_SERVICE_KEY")
    INSTANCE_ID = os.getenv("BB_INSTANCE_ID")
    DATABASE_ID = os.getenv("BB_DATABASE_ID")

@SonOfLope SonOfLope merged commit 32394b4 into main Sep 13, 2024
6 of 7 checks passed
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.

A new Docker image is available containing the PostgreSQL database used by FertiScan.
2 participants