-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (36 loc) · 1.09 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
FROM debian:stretch-slim
LABEL maintainer="[email protected]" domain="counterflow.ai"
RUN apt-get update --fix-missing
RUN apt-get install -y zlib1g-dev libluajit-5.1 liblua5.1-dev lua-socket libcurl4-openssl-dev libatlas-base-dev libhiredis-dev git make
#
#
#
#RUN git clone https://github.com/counterflow-ai/dragonfly-mle; \
RUN git clone -b devel https://github.com/counterflow-ai/dragonfly-mle; \
cd dragonfly-mle/src; make ; make install
RUN rm -rf dragonfly-mle
#
# Build redis
#
RUN git clone https://github.com/antirez/redis.git; \
cd redis/src; make ; make install
RUN rm -rf redis
#
# Build redis ML
#
RUN git clone https://github.com/RedisLabsModules/redis-ml.git; \
cd redis-ml/src; \
make ; \
mkdir /usr/local/lib ; \
cp redis-ml.so /usr/local/lib
RUN rm -rf redis-ml
#
#
#
RUN mkdir /opt/suricata/; mkdir /opt/suricata/var
RUN apt-get purge -y build-essential git make; apt-get autoremove ; apt-get autoclean
#
#
#
WORKDIR /usr/local/dragonfly-mle
ENTRYPOINT redis-server --loadmodule /usr/local/lib/redis-ml.so --daemonize yes && /usr/local/dragonfly-mle/bin/dragonfly-mle