Skip to content

Commit

Permalink
add a suricata dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AlyaGomaa committed Mar 27, 2024
1 parent b007378 commit 88d3afb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions docker/suricata/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ubuntu:20.04
# To avoid user interaction when installing libraries
ENV DEBIAN_FRONTEND=noninteractive

RUN apt update \
&& apt install -y --no-install-recommends software-properties-common \
&& add-apt-repository ppa:oisf/suricata-beta \
&& apt update \
&& apt upgrade \
&& apt install -y --no-install-recommends \
suricata \
tree \
tmux \
nano \
wget \
ca-certificates \
git \
curl \
gnupg \
lsb-release \
python3 \
python3-pip \
python3-certifi \
python3-dev \
build-essential \
file \
lsof \
iptables \
iproute2 \
python3-tzlocal \
net-tools \
vim \
less

RUN pip3 install --no-cache-dir --upgrade pip
WORKDIR /suricata/output
CMD /bin/bash
2 changes: 1 addition & 1 deletion plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def line(self,
for metric in metrics_to_plot:
y = []
# Plot each metric as a separate line
for threshold, experiments in metrics.items():
for threshold, experiments in metrics.items():
_sum = 0
for exp_name, exp_values in experiments.items():
_sum += exp_values[metric]
Expand Down

0 comments on commit 88d3afb

Please sign in to comment.