|
@ -1,8 +1,4 @@ |
|
|
# Docker image for the Drone Terraform plugin |
|
|
FROM golang:1.8.0-alpine |
|
|
# |
|
|
|
|
|
# docker build --rm=true -t jmccann/drone-terraform:latest . |
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:3.5 |
|
|
|
|
|
|
|
|
|
|
|
ENV TERRAFORM_VERSION 0.8.8 |
|
|
ENV TERRAFORM_VERSION 0.8.8 |
|
|
|
|
|
|
|
@ -13,9 +9,13 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk |
|
|
wget && \ |
|
|
wget && \ |
|
|
rm -rf /var/cache/apk/* && \ |
|
|
rm -rf /var/cache/apk/* && \ |
|
|
wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O terraform.zip && \ |
|
|
wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O terraform.zip && \ |
|
|
unzip terraform.zip && \ |
|
|
unzip terraform.zip -d /bin && \ |
|
|
rm terraform.zip && \ |
|
|
rm -rf /var/cache/apk/* terraform.zip |
|
|
mv terraform /bin |
|
|
|
|
|
|
|
|
ADD . /go/src/github.com/jmccann/drone-terraform |
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /go/src/github.com/jmccann/drone-terraform |
|
|
|
|
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -a -tags netgo |
|
|
|
|
|
|
|
|
ADD drone-terraform /bin/ |
|
|
ENTRYPOINT ["/go/bin/drone-terraform"] |
|
|
ENTRYPOINT ["/bin/drone-terraform"] |
|
|
|
|
|