-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (29 loc) · 919 Bytes
/
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
37
38
39
40
41
FROM ubuntu:latest
ARG DEBIAN_FRONTEND="noninteractive"
ARG IAMLIVE_VERSION=0.40.0
ARG TERRAFORM_VERSION=1.0.3
RUN apt update
## Install general tools
RUN apt-get -y install zip unzip
## Install aws cli
RUN apt -y install python3 python3-pip wget
RUN pip3 install awscli
## Install terraform
ADD ./scripts/install_terraform.sh /install_terraform.sh
RUN /install_terraform.sh ${TERRAFORM_VERSION}
## Install iamlive
ADD ./scripts/install_iamlive.sh /install_iamlive.sh
RUN /install_iamlive.sh ${IAMLIVE_VERSION}
#
RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
RUN mv "jq-linux64" "/bin/jq"
RUN chmod +x "/bin/jq"
COPY ./scripts/terraform.jq /bin/terraform.jq
COPY ./scripts/plan-cost.sh /bin/plan-cost
RUN chmod +x "/bin/terraform.jq"
RUN chmod +x "/bin/plan-cost"
#
WORKDIR "/bin/"
COPY ./scripts/entrypoint.sh .
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]