-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 893 Bytes
/
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
FROM zeek/zeek:latest
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y --no-install-recommends \
build-essential \
cmake \
make \
libpcap-dev \
g++ \
redis-server \
npm \
vim
# Configure unixsocket for redis
RUN sed -i "s|# unixsocket /run/redis/redis-server.sock|unixsocket /var/run/redis/redis.sock|" /etc/redis/redis.conf
# Copy the source dir
COPY . /zeekjs-redis
# Set workdir during install
WORKDIR /zeekjs-redis
# Install package
RUN zkg install . --force
# Install the extra dependencies for the nodejs
# $HOME/.node_modules is default path for nodejs
RUN npm install
RUN mv node_modules /root/.node_modules
# Only copy the test pcap in root and then delete tmpdir
WORKDIR /root
RUN mv /zeekjs-redis/testing/Traces/*.pcap /root
RUN rm -rf /zeekjs-redis
CMD /etc/init.d/redis-server start && bash