forked from terrateamio/action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.base
55 lines (49 loc) · 1.88 KB
/
Dockerfile.base
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM debian:bullseye-20220622-slim
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apt-utils \
bash \
ca-certificates \
curl \
git \
git-lfs \
gnupg \
groff \
jq \
less \
libcap2 \
openssh-client \
openssl \
python3 \
python3-pip \
python3-pycryptodome \
python3-requests \
python3-yaml \
unzip \
&& rm -rf /var/lib/apt/lists/*
ENV TERRAGRUNT_VERSION v0.48.4
RUN curl -fsSL -o /usr/local/bin/terragrunt "https://github.com/terrateamio/packages/raw/main/terragrunt/terragrunt_${TERRAGRUNT_VERSION}_linux_amd64" \
&& chmod +x /usr/local/bin/terragrunt
ENV INFRACOST_VERSION v0.10.17
RUN curl -fsSL -o /tmp/infracost-linux-amd64.tar.gz "https://github.com/terrateamio/packages/raw/main/infracost/infracost-${INFRACOST_VERSION}-linux-amd64.tar.gz" \
&& tar -C /tmp -xzf /tmp/infracost-linux-amd64.tar.gz \
&& mv /tmp/infracost-linux-amd64 /usr/local/bin/infracost \
&& rm -f /tmp/infracost-linux-amd64.tar.gz
ENV CONFTEST_VERSION 0.39.0
RUN mkdir /tmp/conftest \
&& curl -fsSL -o /tmp/conftest/conftest.tar.gz "https://github.com/terrateamio/packages/raw/main/conftest/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz" \
&& tar -C /tmp/conftest -xzf /tmp/conftest/conftest.tar.gz \
&& mv /tmp/conftest/conftest /usr/local/bin/conftest \
&& rm -rf /tmp/conftest
ENV AWSCLI_VERSION 2.9.22
RUN mkdir /tmp/awscli \
&& curl -fsSL -o /tmp/awscli/awscli.zip "https://github.com/terrateamio/packages/raw/main/aws/awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip" \
&& unzip -q /tmp/awscli/awscli.zip -d /tmp/awscli/ \
&& /tmp/awscli/aws/install > /dev/null \
&& rm -rf /tmp/awscli
ENV CHECKOV_VERSION=2.3.112
RUN pip3 install checkov==${CHECKOV_VERSION}
COPY ./bin/ /usr/local/bin
ENV DEFAULT_TERRAFORM_VERSION 1.3.8
COPY ./install-terraform-version /install-terraform-version
RUN /install-terraform-version latest