-
Notifications
You must be signed in to change notification settings - Fork 1
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
build: use opentofu binary in harness terraform image #217
Open
seemywingz
wants to merge
19
commits into
main
Choose a base branch
from
PROD-2223-use-opentofu-binary-in-terraform-dockerfile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
91a9c15
use opentofu binary in harness terraform image
seemywingz 7e6f699
update tofu terraform tag
seemywingz b9d8f06
update tofu terraform tag
seemywingz fe3b028
update tofu terraform tag
seemywingz 21c85fa
add Terraform Version to publish-harness-terraform version matrix
seemywingz ac42531
Merge remote-tracking branch 'origin/main' into PROD-2223-use-opentof…
seemywingz 0f2fb54
rename opentofu.Dockerfile
seemywingz 145b352
Merge remote-tracking branch 'origin/main' into PROD-2223-use-opentof…
seemywingz 693ca99
update opentofu dockerfile user
seemywingz a47a487
don't use latest in tofu dockerfile
seemywingz bfd2b35
merge main
seemywingz 25c32de
Merge remote-tracking branch 'origin/main' into PROD-2223-use-opentof…
seemywingz 113a341
adding tofurc
seemywingz 8e4f1ba
Merge remote-tracking branch 'origin/main' into PROD-2223-use-opentof…
seemywingz 14bd633
update tofurc
seemywingz baeec9c
update tofurc
seemywingz 9702e2a
rm tofu config
seemywingz 8ed5f4c
update tofurc
seemywingz 0cb44b5
update tofurc
seemywingz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG TOFU_IMAGE_TAG=1.7.1 | ||
|
||
ARG TOFU_IMAGE=ghcr.io/opentofu/opentofu:$TOFU_IMAGE_TAG | ||
|
||
ARG HARNESS_BASE_IMAGE_TAG=latest | ||
ARG HARNESS_BASE_IMAGE_REPO=harness-base | ||
ARG HARNESS_BASE_IMAGE=$HARNESS_BASE_IMAGE_REPO:$HARNESS_BASE_IMAGE_TAG | ||
|
||
FROM $TOFU_IMAGE as tofu | ||
|
||
FROM $HARNESS_BASE_IMAGE as final | ||
|
||
|
||
COPY --from=tofu /usr/local/bin/tofu /bin/terraform | ||
|
||
# Switch to the non-root user | ||
USER 65532:65532 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these versions actually aligned? Looks like the tofu version is always
1.6.2
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, according to OpenTofu Migration Docs
But with a caveat: