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

fix: docker-compose non-dev #25055

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes docker-compose -f docker-compose-non-dev.yml up error reported here.

Follow-up of #25003

TESTING INSTRUCTIONS

Make sure docker-compose -f docker-compose-non-dev.yml up is working.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API


# database engine specific environment variables
# change the below if you prefer another database engine
DATABASE_PORT=5432
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

EXAMPLES_HOST = os.getenv("EXAMPLES_HOST", "db")
EXAMPLES_PORT = os.getenv("EXAMPLES_PORT", "5432")
EXAMPLES_DB = os.getenv("EXAMPLES_DB", "examples")
DATABASE_DIALECT = os.getenv("DATABASE_DIALECT")
Copy link
Member

Choose a reason for hiding this comment

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

I think this is acceptable. The only other formulation I can think is having Python parse the .env-non-dev file to read the fallbacks from there. It seems like the file adheres to the configparser format.

Copy link
Member

Choose a reason for hiding this comment

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

Spoke with @michael-s-molina offline who confirmed that the Docker variables are environment variables and thus my previous comment can be ignored.

@michael-s-molina michael-s-molina merged commit 7317d9c into apache:master Aug 22, 2023
27 checks passed
@john-bodley john-bodley added the review:checkpoint Last PR reviewed during the daily review standup label Aug 22, 2023
@michael-s-molina michael-s-molina added the v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch label Aug 22, 2023
michael-s-molina added a commit that referenced this pull request Aug 23, 2023
(cherry picked from commit 7317d9c)
@john-bodley john-bodley removed the review:checkpoint Last PR reviewed during the daily review standup label Aug 23, 2023
@mistercrunch mistercrunch added 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants