-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM hashicorp/terraform:0.12.29
LABEL maintainer="The Muse"
# Install common useful utils: awscli, bash, curl, git, and jq
RUN apk add --no-cache aws-cli bash curl git jq
# Install terragrunt
ENV TERRAGRUNT_VERSION 0.23.10
RUN set -eux && \
wget -O /usr/bin/terragrunt \
/~https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 && \
chmod +x /usr/bin/terragrunt && \
terragrunt --version
# Plugin setup
RUN mkdir -p $HOME/.terraform.d/plugins
# Install Kafka provider
ENV KAFKA_PROVIDER_VERSION 0.2.4
RUN set -eux && \
mkdir -p /tmp/kafka && \
wget -O /tmp/kafka/provider.tar.gz \
/~https://github.com/Mongey/terraform-provider-kafka/releases/download/v${KAFKA_PROVIDER_VERSION}/terraform-provider-kafka_${KAFKA_PROVIDER_VERSION}_linux_amd64.tar.gz && \
tar xzf /tmp/kafka/provider.tar.gz -C $HOME/.terraform.d/plugins && \
rm -rf /tmp/kafka
# Change entrypoint to shell, since terraform is already in PATH. No reason
# to limit ourselves to terraform commands.
ENTRYPOINT ["/bin/sh", "-c"]
CMD ["terraform", "--version"]