forked from StamusNetworks/scirius-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (27 loc) · 1.24 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
FROM debian:latest
ENV VERSION 1.2.3
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y wget python-pip python-dev git gcc gunicorn tcpdump gnupg2
ADD stamus-packages.list /etc/apt/sources.list.d/
WORKDIR /tmp/
RUN wget -O stamus.key -q http://packages.stamus-networks.com/packages.stamus-networks.com.gpg.key
RUN apt-key add stamus.key
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y suricata
RUN wget https://github.com/StamusNetworks/scirius/archive/scirius-${VERSION}.tar.gz
RUN mkdir -p /opt/selks/sciriusdata
WORKDIR /opt/selks
RUN tar zxf /tmp/scirius-${VERSION}.tar.gz
RUN ln -sf /opt/selks/scirius-scirius-${VERSION} /opt/selks/scirius
WORKDIR /opt/selks/scirius
RUN pip install --upgrade six
RUN pip install -r requirements.txt
RUN ln -s /etc/scirius/local_settings.py /opt/selks/scirius/scirius/
ADD django/scirius.json /tmp/
ADD django/scirius.sh /opt/selks/bin/
RUN chmod ugo+x /opt/selks/bin/scirius.sh
ADD kibana/reset_dashboards.sh /opt/selks/bin/
RUN chmod ugo+x /opt/selks/bin/reset_dashboards.sh
RUN git clone https://github.com/StamusNetworks/KTS.git /opt/kibana-dashboards/
RUN pip install elasticsearch-curator
ENTRYPOINT ["/opt/selks/bin/scirius.sh"]