2015-11-09 19:23:42 +00:00
|
|
|
# Docker image for Drone's terraform deployment plugin
|
|
|
|
#
|
|
|
|
# CGO_ENABLED=0 go build -a -tags netgo
|
|
|
|
# docker build --rm=true -t plugins/drone-terraform .
|
|
|
|
|
|
|
|
FROM gliderlabs/alpine:3.2
|
|
|
|
RUN apk-install ca-certificates
|
2015-11-10 13:56:18 +00:00
|
|
|
|
|
|
|
ENV TERRAFORM_VERSION 0.6.6
|
|
|
|
|
2015-11-10 14:16:34 +00:00
|
|
|
RUN apk update && \
|
|
|
|
wget -q "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk" && \
|
2015-11-10 13:56:18 +00:00
|
|
|
apk add --allow-untrusted glibc-2.21-r2.apk && \
|
2015-11-10 14:16:34 +00:00
|
|
|
wget -q -O terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
|
|
|
|
unzip terraform.zip -d /bin && \
|
|
|
|
rm -rf /var/cache/apk/* glibc-2.21-r2.apk terraform.zip
|
2015-11-10 13:56:18 +00:00
|
|
|
|
2015-11-09 19:23:42 +00:00
|
|
|
ADD drone-terraform /bin/
|
|
|
|
ENTRYPOINT ["/bin/drone-terraform"]
|