0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-22 00:30:40 +00:00

fix: add dependencies required by tofu or providers (#10)

This commit is contained in:
Robert Kaussow 2024-02-07 13:48:35 +01:00 committed by GitHub
parent 8f9221028e
commit 9785aac2c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,8 @@ ARG TOFU_VERSION
# renovate: datasource=github-releases depName=opentofu/opentofu # renovate: datasource=github-releases depName=opentofu/opentofu
ENV TOFU_VERSION="${TOFU_VERSION:-v1.6.1}" ENV TOFU_VERSION="${TOFU_VERSION:-v1.6.1}"
RUN apk --update add --virtual .build-deps curl libarchive-tools && \ RUN apk --update add --virtual .build-deps libarchive-tools && \
apk add --no-cache curl git openssh-client && \
curl -SsfL "https://github.com/opentofu/opentofu/releases/download/${TOFU_VERSION}/tofu_${TOFU_VERSION##v}_linux_amd64.zip" | \ curl -SsfL "https://github.com/opentofu/opentofu/releases/download/${TOFU_VERSION}/tofu_${TOFU_VERSION##v}_linux_amd64.zip" | \
bsdtar -xf - -C /usr/local/bin tofu && \ bsdtar -xf - -C /usr/local/bin tofu && \
chmod 755 /usr/local/bin/tofu && \ chmod 755 /usr/local/bin/tofu && \