mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-22 10:40:39 +00:00
Merge pull request #23 from jmccann/feature/alpine-package
Install terraform from new package
This commit is contained in:
commit
7c6f13212c
23
Dockerfile
23
Dockerfile
@ -1,19 +1,16 @@
|
|||||||
# Docker image for Drone's terraform deployment plugin
|
# Docker image for the Drone Terraform plugin
|
||||||
#
|
#
|
||||||
# CGO_ENABLED=0 go build -a -tags netgo
|
# cd $GOPATH/src/github.com/drone-plugins/drone-terraform
|
||||||
# docker build --rm=true -t plugins/drone-terraform .
|
# make deps build docker
|
||||||
|
|
||||||
FROM gliderlabs/alpine:3.2
|
FROM alpine:3.4
|
||||||
RUN apk-install ca-certificates git
|
|
||||||
|
|
||||||
ENV TERRAFORM_VERSION 0.7.5
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \
|
||||||
|
apk -U add \
|
||||||
RUN apk update && \
|
ca-certificates \
|
||||||
wget -q "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.21-r2/glibc-2.21-r2.apk" && \
|
git \
|
||||||
apk add --allow-untrusted glibc-2.21-r2.apk && \
|
terraform && \
|
||||||
wget -q -O terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
|
rm -rf /var/cache/apk/*
|
||||||
unzip terraform.zip -d /bin && \
|
|
||||||
rm -rf /var/cache/apk/* glibc-2.21-r2.apk terraform.zip
|
|
||||||
|
|
||||||
ADD drone-terraform /bin/
|
ADD drone-terraform /bin/
|
||||||
ENTRYPOINT ["/bin/drone-terraform"]
|
ENTRYPOINT ["/bin/drone-terraform"]
|
||||||
|
Loading…
Reference in New Issue
Block a user