mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

zeek.on('zeek_init', () => { console.log('Hello, Zeek!'); }); For interaction with external systems and HTTP APIs, JavaScript and the Node.js ecosystem beat Zeek script. Make it more easily accessible by including ZeekJS with Zeek directly. When a recent enough libnode version is found on the build system, ZeekJS is added as a builtin plugin. This behavior can be disabled via ``--disable-javascript``. Linux distributions providing such a package are Ubuntu (22.10) and Debian (testing/bookworm) as libnode-dev. Fedora provides it as nodejs-devel. This plugin takes over loading of .js or .cjs files. When no such files are provided to Zeek, Node and the V8 engine are not initialized and should not get into the way. This should be considered experimental.
41 lines
819 B
Docker
41 lines
819 B
Docker
FROM ubuntu:22.10
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles"
|
|
|
|
# A version field to invalide Cirrus's build cache when needed, as suggested in
|
|
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
|
|
ENV DOCKERFILE_VERSION 20230413
|
|
|
|
RUN apt-get update && apt-get -y install \
|
|
bc \
|
|
bison \
|
|
bsdmainutils \
|
|
ccache \
|
|
cmake \
|
|
curl \
|
|
flex \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
lcov \
|
|
libkrb5-dev \
|
|
libmaxminddb-dev \
|
|
libnode-dev \
|
|
libpcap-dev \
|
|
libssl-dev \
|
|
libuv1-dev \
|
|
make \
|
|
python3 \
|
|
python3-dev \
|
|
python3-pip\
|
|
ruby \
|
|
sqlite3 \
|
|
swig \
|
|
unzip \
|
|
wget \
|
|
zlib1g-dev \
|
|
&& apt autoclean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip3 install websockets junit2html
|
|
RUN gem install coveralls-lcov
|