-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (26 loc) · 1.08 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
37
38
39
40
41
FROM python:latest
USER root
RUN apt update -y
RUN apt install curl -y
RUN /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/turbot/steampipe/main/scripts/install.sh)"
ARG user=steampipe
ARG group=steampipe
ARG uid=9999
ARG gid=9999
RUN groupadd -g ${gid} ${group}
RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user}
USER ${uid}:${gid}
RUN steampipe plugin install steampipe>=1.22.7 aws theapsgroup/gitlab # azure gcp azuread kubernetes
RUN steampipe plugin update --all
WORKDIR /home/steampipe
RUN git clone --depth 1 https://github.com/turbot/steampipe-mod-aws-compliance.git
RUN git clone --depth 1 https://github.com/turbot/steampipe-mod-azure-compliance.git
RUN git clone --depth 1 https://github.com/turbot/steampipe-mod-gcp-compliance.git
RUN git clone --depth 1 https://github.com/turbot/steampipe-mod-kubernetes-compliance.git
COPY . .
COPY requirements.txt .
RUN pip3 install -r requirements.txt
RUN pip3 install --upgrade requests
ENV STEAMPIPE_DATABASE_START_TIMEOUT=300
# Replace with actual entrypoint later
# ENTRYPOINT ["python", "run_aws_steampipe.py"]