Skip to content

Commit

Permalink
#16 sops download and add to path (#18)
Browse files Browse the repository at this point in the history
* #16 sops download and add to path

* #16 downloading to temp directory instead of working directory, and cleanup

* #16 simplifying and removing redundant removes

* #16 adding curl timeout and max retries

---------

Co-authored-by: Lisan Chen <[email protected]>
Co-authored-by: Lisan Chen <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2023
1 parent b582c1a commit 27dd2b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ RUN curl -LO "https://dl.k8s.io/release/v${KUBE_VERSION}/bin/linux/amd64/kubectl
chmod +x kubectl && \
mv kubectl /usr/local/bin

ARG SOPS_VERSION=3.8.0
RUN curl --connect-timeout 30 --retry 5 -L "https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux.amd64" -o "/usr/local/bin/sops" && \
chmod +x /usr/local/bin/sops

ARG TFLINT_VERSION=0.48.0
RUN curl --connect-timeout 30 --retry 5 -L "https://github.com/terraform-linters/tflint/releases/download/v${TFLINT_VERSION}/tflint_linux_amd64.zip" -o /tmp/tflint.zip && \
unzip -q /tmp/tflint.zip -d /tmp && \
Expand All @@ -38,6 +42,7 @@ ARG DEBIAN_FRONTEND=noninteractive
COPY --from=builder /usr/local/bin/terraform /usr/local/bin/terraform
COPY --from=builder /usr/local/aws-cli /usr/local/aws-cli
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/kubectl
COPY --from=builder /usr/local/bin/sops /usr/local/bin/sops
COPY --from=builder /usr/local/bin/tflint /usr/local/bin/tflint

RUN ln -s /usr/local/aws-cli/v2/current/dist/aws /usr/local/bin/aws && \
Expand Down

0 comments on commit 27dd2b2

Please sign in to comment.