Skip to content

Commit 9739a6f

Browse files
committed
feat: opentofu agent binary
1 parent 6d958d4 commit 9739a6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:20.04
22
ARG TERRAFORM_VERSION=1.3.2
3+
ARG OPENTOFU_VERSION=1.6.2
34
ARG TERRAGRUNT_VERSION=0.57.0
45
ARG VAULT_VERSION=1.17.6
56
ARG YTT_VERSION=0.48.0
@@ -32,6 +33,9 @@ RUN apt-get update && apt install curl gnupg software-properties-common -y && ad
3233
RUN wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
3334
&& unzip /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin/ \
3435
&& rm /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
36+
RUN wget -q https://github.com/opentofu/opentofu/releases/download/v${OPENTOFU_VERSION}/tofu_${OPENTOFU_VERSION}_linux_amd64.zip -O /tmp/tofu_${OPENTOFU_VERSION}_linux_amd64.zip \
37+
&& unzip /tmp/tofu_${OPENTOFU_VERSION}_linux_amd64.zip -d /bin/ \
38+
&& rm /tmp/tofu_${OPENTOFU_VERSION}_linux_amd64.zip
3539
RUN wget -q https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 -O /bin/terragrunt \
3640
&& chmod +x /bin/terragrunt
3741
RUN wget -q https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip -O /tmp/vault_${VAULT_VERSION}_linux_amd64.zip \
@@ -46,6 +50,9 @@ RUN wget -q https://github.com/carvel-dev/kapp/releases/download/v${KAPP_VERSION
4650
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /bin/kubectl \
4751
&& chmod +x /bin/kubectl
4852

53+
# Set Terragrunt to use OpenTofu instead of Terraform
54+
ENV TERRAGRUNT_TFPATH=/bin/tofu
55+
4956
RUN pip3 install --upgrade pip \
5057
&& mkdir /workdir && cd /workdir \
5158
&& mkdir keys \

0 commit comments

Comments
 (0)