ci: add terraform + jq to concourse/unit
we should control this dependency more carefully, plus we need jq now to
parse `terraform output -json` since it censors sensitive values without
json
FROM golang:1
-# basic setup for adding new apt sources
+# basic setup for adding new apt sources and installing packages
RUN apt-get update && apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
- software-properties-common
+ software-properties-common \
+ unzip
# install PostgreSQL for DB tests
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
@@ -60,3 +61,9 @@ RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add
# install helm for k8s-related jobs
RUN curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+
+# install Terraform and jq for bin-smoke
+RUN curl -fsSL https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip -o /tmp/terraform.zip && \
+ unzip /tmp/terraform.zip -d /usr/local/bin && \
+ rm /tmp/terraform.zip
+RUN apt-get update && apt-get -y install jq
