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

Support passing env vars from a file #1913

Open
drehelis opened this issue Sep 6, 2023 · 0 comments
Open

Support passing env vars from a file #1913

drehelis opened this issue Sep 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@drehelis
Copy link
Contributor

drehelis commented Sep 6, 2023

A feature request to have an option to specify --env-file argument (multiple?) with the mirrord binary and/or env: {"env_file": file} in the configuration file.

Use-case:
We manage a long list of env vars in bunch of .env files and use packages such as python-dotenv, godotenv and npms's dotenv etc. to load them.

Currently, the only option is to explicitly type them on the command line / source it or duplicate it to a mirrord.json config file and use -f switch

Current situation:

ENV=production DB_HOST_NAME=postgres.host DB_USER_NAME=xxx DB_PASSWORD=yyy DB_NAME=zzz ./mirrord exec npx -- sequelize-cli db:migrate

Expected:

./mirrord exec --env-file ./env -- npx sequelize-cli db:migrate

Discussion on Discord,

@drehelis drehelis added the enhancement New feature or request label Sep 6, 2023
@drehelis drehelis changed the title Support Support passing env vars from a file Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant