forked from wallarm/libdetection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 674 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (18 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:jessie
RUN apt-get update && \
apt-get -y install git cmake libcunit1-dev bison re2c && \
mkdir -p /opt/libwallarmmisc
RUN git clone https://github.com/wallarm/libwallarmmisc.git /opt/libwallarmmisc
RUN cd /opt/libwallarmmisc && \
./config -DCMAKE_INSTALL_PREFIX=/usr/local && \
make -C build && \
make -C build install
RUN mkdir -p /opt/libdetection
WORKDIR /opt/libdetection
ADD ./ .
RUN ./config && \
cd build && \
make && \
export LD_LIBRARY_PATH=/usr/local/lib && \
echo '123e2union select-id FRoM users--a-' |./perf/libdetection_perf -evvv && \
echo '123; DROP DATABASE users; ' |./perf/libdetection_perf -evvv