This is an automated email from the ASF dual-hosted git repository. otto pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/metron-bro-plugin-kafka.git
The following commit(s) were added to refs/heads/master by this push: new 3cbc785 METRON-2021 Add screen to bro docker image (ottobackwards) closes apache/metron-bro-plugin-kafka#32 3cbc785 is described below commit 3cbc78586a89c6c8c4385013b6ae63bdb8418b0e Author: ottobackwards <ottobackwa...@gmail.com> AuthorDate: Sat Mar 2 09:31:36 2019 -0500 METRON-2021 Add screen to bro docker image (ottobackwards) closes apache/metron-bro-plugin-kafka#32 --- .../containers/bro-localbuild-container/.screenrc | 22 ++++++++++++++++++++++ .../containers/bro-localbuild-container/Dockerfile | 12 ++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/docker/containers/bro-localbuild-container/.screenrc b/docker/containers/bro-localbuild-container/.screenrc new file mode 100644 index 0000000..97750f5 --- /dev/null +++ b/docker/containers/bro-localbuild-container/.screenrc @@ -0,0 +1,22 @@ +# terminfo and termcap for nice 256 color terminal +# allow bold colors - necessary for some reason +attrcolor b ".I" + +# tell screen how to set colors. AB = background, AF=foreground +termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' + +# erase background with current bg color +defbce "on" + +# the status at the bottom of the window +hardstatus alwayslastline +hardstatus string '%{gk}[ %{G}%H %{g}][%S][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}' + +#turn off the startup banner +startup_message off + +#i want to see all screen messages for a longer time +msgwait 86400 + +# Set scrollback to 20k +defscrollback 20000 diff --git a/docker/containers/bro-localbuild-container/Dockerfile b/docker/containers/bro-localbuild-container/Dockerfile index f7ad66f..d8ab804 100644 --- a/docker/containers/bro-localbuild-container/Dockerfile +++ b/docker/containers/bro-localbuild-container/Dockerfile @@ -18,8 +18,16 @@ FROM centos:7 WORKDIR /root # install development tools -RUN yum -y groupinstall "Development Tools" -RUN yum -y install cmake make gcc gcc-c++ flex bison libpcap libpcap-devel openssl-devel python-devel swig zlib-devel perl cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi git jq +RUN yum -y groupinstall "Development Tools" && \ + yum -y install cmake make gcc gcc-c++ \ + flex bison libpcap libpcap-devel \ + openssl-devel python-devel swig \ + zlib-devel perl \ + cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi \ + git jq screen + +# copy in the screen -rc +COPY .screenrc /root # install bro RUN curl -L https://www.bro.org/downloads/bro-2.5.5.tar.gz | tar xvz