From fd31cab87c17fddbe4c094d70a6f29f62244d870 Mon Sep 17 00:00:00 2001 From: takutaka Date: Thu, 4 Jun 2020 14:43:05 +0900 Subject: [PATCH 1/2] add kubectl --- src/terraform/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/terraform/Dockerfile b/src/terraform/Dockerfile index c47af97..bba926a 100644 --- a/src/terraform/Dockerfile +++ b/src/terraform/Dockerfile @@ -7,5 +7,9 @@ RUN wget https://releases.hashicorp.com/terraform/0.12.20/terraform_0.12.20_linu && mv terraform /bin/ \ && rm -f terraform_0.12.20_linux_amd64.zip +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \ + && chmod +x kubectl \ + && mv kubectl /bin/ + COPY ./terraform.sh /bin/ COPY ./ /app/ From 2b3bde2189aae5b1c01b2a90b2136b5ee87f00ff Mon Sep 17 00:00:00 2001 From: takutaka Date: Thu, 4 Jun 2020 15:05:07 +0900 Subject: [PATCH 2/2] add curl --- src/terraform/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terraform/Dockerfile b/src/terraform/Dockerfile index bba926a..09dfafa 100644 --- a/src/terraform/Dockerfile +++ b/src/terraform/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu -RUN apt update && apt install -y wget jq unzip +RUN apt update && apt install -y wget curl jq unzip RUN wget https://releases.hashicorp.com/terraform/0.12.20/terraform_0.12.20_linux_amd64.zip \ && unzip terraform_0.12.20_linux_amd64.zip \