0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-25 19:50:39 +00:00
wp-opentofu/Dockerfile
Kit Ewbank 2274218548 Use terraform version 0.6.16.
Add 'parallelism' parameter to limit the number of concurrent operations as Terraform walks its graph.

Download glibc-2.21-r2.apk from 'github.com/sgerrand/alpine-pkg-glibc' as 'circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc' is not available.

Correct 'terraform apply' with parallelism option.

Run 'go fmt'.
2016-06-18 16:57:15 -04:00

20 lines
740 B
Docker

# 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 git
ENV TERRAFORM_VERSION 0.6.16
RUN apk update && \
wget -q "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.21-r2/glibc-2.21-r2.apk" && \
apk add --allow-untrusted glibc-2.21-r2.apk && \
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
ADD drone-terraform /bin/
ENTRYPOINT ["/bin/drone-terraform"]