From 6f5847f90d5347bc733df1773e839ca822ed9810 Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Fri, 7 Apr 2017 09:39:10 -0500 Subject: [PATCH] Update build process for plugin Favor grabbing release directly and pinning version --- .drone.yml | 2 +- Dockerfile | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index af394f7..49045d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ workspace: pipeline: test: - image: golang:1.6 + image: golang:1.8 environment: - CGO_ENABLED=0 commands: diff --git a/Dockerfile b/Dockerfile index 95b76ea..50bb94d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,16 @@ FROM alpine:3.4 -RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \ - apk -U add \ +RUN apk -U add \ ca-certificates \ git \ - terraform && \ + wget && \ rm -rf /var/cache/apk/* +ENV TERRAFORM_VERSION 0.8.8 +RUN wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O terraform.zip && \ + unzip terraform.zip -d /bin && \ + rm -f terraform.zip + ADD drone-terraform /bin/ ENTRYPOINT ["/bin/drone-terraform"]