-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (47 loc) · 1.26 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM fedora:22
RUN dnf -y update
RUN dnf -y install \
cronie \
logrotate \
ed \
tar \
tcpdump \
python-pip \
nginx \
python-simplejson \
wget \
supervisor \
which \
tcpdump \
net-tools \
procps-ng \
hostname \
java-1.8.0-openjdk-headless \
findutils \
dnf-plugins-core && \
dnf -y copr enable jasonish/suricata-beta-2.1 && \
dnf -y install suricata
# Create a user to run non-root applications.
RUN useradd user
# EveBox.
ENV EVEBOX_COMMIT be8389d4ad119a1ce984718297b94daa3b0c814d
RUN mkdir -p /usr/local/src/evebox && \
cd /usr/local/src/evebox && \
curl -L -o - http://github.com/jasonish/evebox/archive/${EVEBOX_COMMIT}.tar.gz | tar zxf - --strip-components=1 && \
cp -a app /srv/evebox
# Copy in files.
COPY /etc/supervisord.d /etc/supervisord.d
COPY /etc/logrotate.d /etc/logrotate.d
COPY /etc/cron.daily /etc/cron.daily
COPY /srv /srv
COPY /start.sh /start.sh
RUN mv /etc/suricata/suricata.yaml /etc/suricata/suricata.yaml-default
COPY /etc/suricata /etc/suricata
# Fix permissions.
RUN chmod 644 /etc/logrotate.d/*
# Cleanup.
RUN dnf clean all && \
rm -rf /var/tmp/* && \
find /var/log -type f -exec rm -f {} \; && \
rm -rf /tmp/* /tmp/.[A-Za-z]*
ENTRYPOINT ["/start.sh"]