You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ot...@apache.org on 2019/03/06 12:46:56 UTC

[metron-bro-plugin-kafka] branch master updated: METRON-2025 Bro Kafka Plugin Docker should yum clean (ottobackwards) closes apache/metron-bro-plugin-kafka#33

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 1d62215  METRON-2025 Bro Kafka Plugin Docker should yum clean (ottobackwards) closes apache/metron-bro-plugin-kafka#33
1d62215 is described below

commit 1d6221531140bbe010590d107bf5890aa1cd9894
Author: ottobackwards <ot...@gmail.com>
AuthorDate: Wed Mar 6 06:36:31 2019 -0500

    METRON-2025 Bro Kafka Plugin Docker should yum clean (ottobackwards) closes apache/metron-bro-plugin-kafka#33
---
 docker/containers/bro-localbuild-container/Dockerfile | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/docker/containers/bro-localbuild-container/Dockerfile b/docker/containers/bro-localbuild-container/Dockerfile
index d8ab804..6a881f5 100644
--- a/docker/containers/bro-localbuild-container/Dockerfile
+++ b/docker/containers/bro-localbuild-container/Dockerfile
@@ -36,17 +36,16 @@ RUN ./configure
 RUN make
 RUN make install
 ENV PATH="${PATH}:/usr/local/bro/bin"
+ENV PATH="${PATH}:/usr/bin"
 
 # install pip
-RUN yum -y update
-RUN yum -y install epel-release
-RUN yum -y install python-pip
-RUN pip install --upgrade pip
-
-# install bro-pkg
-RUN pip install bro-pkg
-ENV PATH="${PATH}:/usr/bin"
-RUN bro-pkg autoconfig
+RUN yum -y update && \
+    yum -y install epel-release && \
+    yum -y install python-pip && \
+    yum clean all && \
+    pip install --upgrade pip && \
+    pip install bro-pkg && \
+    bro-pkg autoconfig
 
 # install librdkafka
 RUN curl -L https://github.com/edenhill/librdkafka/archive/v0.11.5.tar.gz | tar xvz