-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use git to clone zeek-parser-Bacnet #130
Conversation
@@ -17,6 +17,7 @@ RUN apt-get update \ | |||
flex \ | |||
kmod \ | |||
gawk \ | |||
git \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build環境へgitのinstallです。git cloneのために
@@ -76,6 +77,10 @@ RUN wget -q http://rules.emergingthreats.net/open/suricata-6.0/emerging.rules.ta | |||
&& rm rules/*ja3.rules \ | |||
&& grep -h -ve "^#" -ve "^$" rules/*.rules > /var/lib/suricata/rules/suricata.rules | |||
|
|||
# zeek-parser-Bacnetのclone | |||
WORKDIR /home/work | |||
RUN git clone https://github.com/nttcom/zeek-parser-Bacnet.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zeek-parser-Bacnetリポジトリのclone
@@ -157,6 +162,7 @@ RUN zkg install --force --skiptest \ | |||
# icsnpp-ethercat \ | |||
# icsnpp-opcua-binary \ | |||
icsnpp-modbus \ | |||
icsnpp-bacnet \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
icsnpp-bacnet moduleの追加
# zeek-parser-Bacnetのコピー | ||
COPY --from=build-env /home/work/zeek-parser-Bacnet /home/work/zeek-parser-Bacnet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build環境からzeek-parser-Bacnet をイメージの中にコピーする
&& cp -p zeek-parser-Bacnet/scripts/bacnet_ip.zeek /usr/local/zeek/share/zeek/site/icsnpp-bacnet/main.zeek \ | ||
&& cp -p zeek-parser-Bacnet/scripts/consts_bacnet_ip.zeek /usr/local/zeek/lib/zeek/plugins/packages/icsnpp-bacnet/scripts/consts.zeek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zeek-parser-Bacnetのscriptsを該当場所にコピーする
zeek-parser-Bacnetをgit cloneできるように、Dockerfileを書き換えました。
(ビルド後に、bacnet.logが出ていることを確認しました)