Skip to content

Commit 3f07471

Browse files
committed
Migrate to OpenTofu
1 parent 19ddfcf commit 3f07471

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

oci/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ ARG KUBECTL_VERSION=v1.31.3
3131
# https://github.com/kubernetes-sigs/kustomize/releases
3232
ARG KUSTOMIZE_VERSION=v5.5.0
3333

34-
# https://www.terraform.io/downloads.html
35-
# 1.5.x is the last OSS Terraform
36-
# do not update major or minor!
37-
ARG TERRAFORM_VERSION=1.5.7
34+
# https://github.com/opentofu/opentofu/releases
35+
ARG OPENTOFU_VERSION=1.11.5
3836

3937
RUN echo "KUBECTL_VERSION: ${KUBECTL_VERSION}" \
4038
&& curl -LO https://dl.k8s.io/${KUBECTL_VERSION}/kubernetes-client-linux-${TARGETARCH}.tar.gz \
@@ -49,11 +47,12 @@ RUN echo "KUSTOMIZE_VERSION: ${KUSTOMIZE_VERSION}" \
4947
&& mv kustomize /opt/bin/kustomize \
5048
&& /opt/bin/kustomize version
5149

52-
RUN echo "TERRAFORM_VERSION: ${TERRAFORM_VERSION}" \
53-
&& curl -LO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip \
54-
&& unzip terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip -d /opt/bin \
55-
&& chmod +x /opt/bin/terraform \
56-
&& /opt/bin/terraform version
50+
RUN echo "OPENTOFU_VERSION: ${OPENTOFU_VERSION}" \
51+
&& curl -LO https://github.com/opentofu/opentofu/releases/download/v${OPENTOFU_VERSION}/tofu_${OPENTOFU_VERSION}_linux_${TARGETARCH}.tar.gz \
52+
&& tar -xf tofu_${OPENTOFU_VERSION}_linux_${TARGETARCH}.tar.gz \
53+
&& mv tofu /opt/bin/tofu \
54+
&& chmod +x /opt/bin/tofu \
55+
&& /opt/bin/tofu version
5756

5857
COPY oci/entrypoint oci/entrypoint_user /opt/bin/
5958

0 commit comments

Comments
 (0)