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

enable env vars into containers #1475

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

BenediktMKuehne
Copy link
Member

@BenediktMKuehne BenediktMKuehne commented Feb 20, 2025

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    enable defaults overwrite and into container
    add .env which hold global default vars inside and outside container (helps with debugging too)

  • What is the current behavior? (You can also link to an open issue here)
    profile>defaults>environment

  • What is the new behavior (if this is a feature change)? If possible add a screenshot.
    profile>environment>defaults

Setting env vars writes them into ./config/.env
and gets used through docker-compose directly

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    no

  • Other information:
    ⚠️ Although unlikely, this change could lead to race-conditions when 2 runs start simultaneously with different settings

@BenediktMKuehne BenediktMKuehne marked this pull request as ready for review February 24, 2025 13:12
@BenediktMKuehne BenediktMKuehne marked this pull request as draft February 25, 2025 16:07
@BenediktMKuehne BenediktMKuehne added EMBA enhancement New feature or request labels Feb 26, 2025
@BenediktMKuehne
Copy link
Member Author

BenediktMKuehne commented Feb 26, 2025

For testing:
sudo GPT_QUESTION="WHATEVERYOUWANT" ./emba -d2
Writes to ./config/.env and actually overwrites default value (unless specified in profile)

@BenediktMKuehne BenediktMKuehne marked this pull request as ready for review February 26, 2025 14:36
@BenediktMKuehne BenediktMKuehne marked this pull request as draft February 27, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EMBA EMBArk enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant