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(build): add env var to point to provider config #130

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

lbergnehr
Copy link
Contributor

@lbergnehr lbergnehr commented Jan 24, 2025

Without this in the generated dockerfile snippet, the user will have to add this environment variable to their own dockerfile and know the path to where the provider configuration file is written.

Workaround currently is to add this to the dockerfile of the bundle before # PORTER_MIXINS:

ENV TF_CLI_CONFIG_FILE=${BUNDLE_DIR}/${terraform_workdir}/provider_mirror.tfrc

where ${terraform_workdir} is the working dir as configured in the mixin declaration.

Follow up PR to #125.

@lbergnehr lbergnehr force-pushed the main branch 2 times, most recently from c77fdfe to 2c6392a Compare January 24, 2025 13:18
@kichristensen kichristensen merged commit 7234a37 into getporter:main Jan 24, 2025
2 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.

2 participants