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: transient env vars #835

Merged
merged 8 commits into from
Jun 14, 2022
Merged

feat: transient env vars #835

merged 8 commits into from
Jun 14, 2022

Conversation

branch14
Copy link
Member

@branch14 branch14 commented Jun 13, 2022

This uses an 2 step approach (bait & switch) to inject the values of environment variables post compilation.

Step 1: Scan .env.sample and build a dummy .env file (bait) that injects dummy strings that can be replaced post compilation.

Step 2: After compilation replace (switch) the dummy strings with the value of corresponding env vars. (This is cheap and runs on every start of the docker container.)

@munen
Copy link
Collaborator

munen commented Jun 14, 2022

Looking great 🎇

@munen munen merged commit 49ef5bf into master Jun 14, 2022
@branch14 branch14 deleted the feat/transient-env-vars branch June 28, 2022 13:51
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.

2 participants