File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM python:3.11-alpine
33ENV TFENV_VERSION v3.0.0
44ENV TGENV_VERSION v0.0.3
55ENV TFLINT_VERSION v0.44.1
6+ ENV TFSWITCH_VERSION 0.13.1300
67ENV AZURE_CLI_VERSION 2.43.0
78
89RUN apk add --no-cache curl bash unzip git openssh-client jq \
@@ -11,12 +12,13 @@ RUN apk add --no-cache curl bash unzip git openssh-client jq \
1112 curl --fail --silent -L -o /tmp/tfenv.zip https://github.com/tfutils/tfenv/archive/refs/tags/${TFENV_VERSION}.zip && \
1213 curl --fail --silent -L -o /tmp/tgenv.zip https://github.com/cunymatthieu/tgenv/archive/refs/tags/${TGENV_VERSION}.zip && \
1314 curl --fail --silent -L -o /tmp/tflint.zip https://github.com/terraform-linters/tflint/releases/download/${TFLINT_VERSION}/tflint_linux_amd64.zip && \
15+ curl --fail --silent -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | TAG="${TFSWITCH_VERSION}}" bash \
1416 unzip -u /tmp/tfenv -d /tmp && mv /tmp/tfenv-* ~/.tfenv/ && \
1517 unzip -u /tmp/tgenv -d /tmp && mv /tmp/tgenv-* ~/.tgenv/ && \
1618 unzip -u /tmp/tflint -d /usr/local/bin && \
1719 ln -s ~/.tfenv/bin/* /usr/local/bin && \
1820 ln -s ~/.tgenv/bin/* /usr/local/bin && \
19- rm -f /tmp/*.zip && tfenv --version && tgenv --version && tflint --version && az --version && \
21+ rm -f /tmp/*.zip && tfenv --version && tgenv --version && tflint --version && az --version && tfswitch --version && \
2022 adduser -g "iac-executor" -D iac-executor
2123
2224USER iac-executor
You can’t perform that action at this time.
0 commit comments