Skip to content

Commit

Permalink
fix: added .terraformrc to configure plugin_cache_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
robcoward committed Jul 23, 2024
1 parent fdcba8a commit 9869b85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ RUN apk add --update --no-cache bash git curl gpgv tflint
ENV TFENV_INSTALL_DIR=/usr/local/tfenv
RUN git clone --depth=1 https://github.com/tfutils/tfenv.git ${TFENV_INSTALL_DIR} && \
echo 'export PATH="${TFENV_INSTALL_DIR}/bin:$PATH"' >> ~/.bash_profile && \
echo 'trust-tfenv: yes' > ${TFENV_INSTALL_DIR}/use-gpgv
echo 'trust-tfenv: yes' > ${TFENV_INSTALL_DIR}/use-gpgv && \
echo "plugin_cache_dir = \"/root/.terraform.d/plugin-cache\"" > /root/.terraformrc
ENV PATH=${TFENV_INSTALL_DIR}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


# Install the latest version of Terraform
RUN tfenv install latest && tfenv use latest

Expand Down

0 comments on commit 9869b85

Please sign in to comment.