From 4794426cbd4abeabc5335eb17827b3ba6c555a38 Mon Sep 17 00:00:00 2001 From: Simon Swanson Date: Wed, 25 Aug 2021 10:04:31 -0700 Subject: [PATCH] Add curl to images Curl is a super valuable tool to have available for debugging and execution, as certain Terraform modules assume the tool is available on the system. Wget is less common on systems and most tools assume the existence of curl before wget. For example: wait_for_cluster_command in CloudPosse's EKS cluster module uses curl by default. While this can be overridden to use wget, not all the environments we run Terraform in have wget installed and we would prefer to not introduce a bunch of conditional logic: https://github.com/cloudposse/terraform-aws-eks-cluster/blob/783799fa64f20cde64ae19e74e046263072c8595/variables.tf#L142 --- docker-dev/Dockerfile | 2 +- docker-prod/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-dev/Dockerfile b/docker-dev/Dockerfile index 33ef8be9..89a48a76 100644 --- a/docker-dev/Dockerfile +++ b/docker-dev/Dockerfile @@ -6,7 +6,7 @@ ARG TARGETARCH RUN echo '@previous http://nl.alpinelinux.org/alpine/v3.11/community' >> /etc/apk/repositories RUN apk update && \ apk --no-cache add ca-certificates git bash wget gnupg zip unzip make \ - openssh-client build-base bzr@previous + openssh-client build-base bzr@previous curl # this glibc compatibility module is needed for some downloaded binaries, # such as aws cli, to run in provisioners. diff --git a/docker-prod/Dockerfile b/docker-prod/Dockerfile index e13e02bb..13f2f85e 100644 --- a/docker-prod/Dockerfile +++ b/docker-prod/Dockerfile @@ -3,7 +3,7 @@ FROM alpine:latest ARG TARGETARCH RUN apk update && \ - apk add ca-certificates git bash openssh-client + apk add ca-certificates git bash openssh-client curl # this glibc compatibility module is needed for some downloaded binaries, # such as aws cli, to run in provisioners.