Skip to content

Commit

Permalink
use builtin terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
moss2k13 committed Apr 18, 2024
1 parent 5a0d371 commit 255a0f0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ FROM ghcr.io/runatlantis/atlantis:${ATLANTIS_VERSION} AS base
ARG ASDF_VERSION=v0.14.0
ARG K8S_VERSION=1.29.2
ARG HELM_VERSION=3.14.2
ARG TF_VERSION=1.5.7
ARG TG_VERSION=0.55.13
ARG TG_ATLANTIS_VERSION=1.17.4
ARG CONFTEST_VERSION=0.50.0
Expand Down Expand Up @@ -70,7 +69,6 @@ RUN bash -l -c " \
asdf plugin-add kubectl && \
asdf plugin-add helm && \
asdf plugin-add terragrunt && \
asdf plugin-add terraform && \
asdf plugin-add conftest && \
asdf plugin-add glab && \
asdf plugin-add gojq && \
Expand All @@ -83,7 +81,6 @@ RUN bash -l -c " \
cd /home/atlantis/ && \
asdf install kubectl ${K8S_VERSION} && \
asdf install helm ${HELM_VERSION} && \
asdf install terraform ${TF_VERSION} && \
asdf install terragrunt ${TG_VERSION} && \
asdf install conftest ${CONFTEST_VERSION} && \
asdf install glab ${GLAB_VERSION} && \
Expand All @@ -93,7 +90,6 @@ RUN bash -l -c " \
asdf install yq ${YQ_VERSION} && \
asdf global kubectl ${K8S_VERSION} && \
asdf global helm ${HELM_VERSION} && \
asdf global terraform ${TF_VERSION} && \
asdf global terragrunt ${TG_VERSION} && \
asdf global conftest ${CONFTEST_VERSION} && \
asdf global glab ${GLAB_VERSION} && \
Expand All @@ -103,10 +99,8 @@ RUN bash -l -c " \
asdf global yq ${YQ_VERSION}"

USER root
# Additional cleanup for multiple existing terraform versions
RUN rm -f /usr/local/bin/terraform* && \
rm -rf /tmp/*

# Additional cleanup
RUN rm -rf /tmp/*
# Add 'alias' `jq` to `gojq`
RUN echo -e '#!/bin/bash \nexec gojq "$@"' > /usr/local/bin/jq && chmod +x /usr/local/bin/jq

Expand Down

0 comments on commit 255a0f0

Please sign in to comment.