Skip to content

Commit

Permalink
Add OpenTofu as terraform alternative (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Jun 4, 2024
1 parent e51e263 commit ffacc96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ RUN apk add --update --no-cache go bats vert@cloudposse \
terraform-1@cloudposse=1.5.7-r0 \
opentofu@community

# Install `tofu` as an alternative to `terraform`, if it is available.
# Set priority to 5, which is lower than any other Cloud Posse Terraform package,
# so that it is available, if Terraform is not installed, but does not interfere with Terraform installations.
RUN command -v tofu >/dev/null && update-alternatives --install /usr/bin/terraform terraform $(command -v tofu) 5

COPY test/ /test/

# Our old Makefiles conditionally set TF_CLI_ARGS_init=-get-plugins=true but that
Expand Down

0 comments on commit ffacc96

Please sign in to comment.