diff --git a/docker.sbt b/docker.sbt index 368ce52a7..79a5e3556 100644 --- a/docker.sbt +++ b/docker.sbt @@ -32,8 +32,8 @@ dockerCommands ~= { dc => "pip3 install -U pip setuptools && " + "cd /opt && " + "git clone https://github.com/TheHive-Project/Cortex-Analyzers.git && " + - "for I in Cortex-Analyzers/analyzers/*/requirements.txt; do pip2 install -r $I; done && " + - "for I in Cortex-Analyzers/analyzers/*/requirements.txt; do pip3 install -r $I || true; done"), + "for I in Cortex-Analyzers/analyzers/*/requirements.txt Cortex-Analyzers/responders/*/requirements.txt; do pip2 install -r $I; done && " + + "for I in Cortex-Analyzers/analyzers/*/requirements.txt Cortex-Analyzers/responders/*/requirements.txt; do pip3 install -r $I || true; done"), Cmd("ADD", "var", "/var"), Cmd("ADD", "etc", "/etc"), ExecCmd("RUN", "chown", "-R", "daemon:root", "/var/log/cortex"), diff --git a/package/docker/entrypoint b/package/docker/entrypoint index 59e97e1ff..5f78fe577 100755 --- a/package/docker/entrypoint +++ b/package/docker/entrypoint @@ -6,6 +6,7 @@ CONFIG_ES=1 CONFIG=1 CONFIG_FILE=/etc/cortex/application.conf ANALYZER_PATH=/opt/Cortex-Analyzers/analyzers +RESPONDER_PATH=/opt/Cortex-Analyzers/responders function usage { cat <<- _EOF_ @@ -17,6 +18,7 @@ function usage { --es-hostname | resolve this hostname to find elasticseach instances --secret | secret to secure sessions --analyzer-path | where analyzers are located + --responder-path | where responders are located _EOF_ exit 1 } @@ -32,6 +34,7 @@ do "--es-hostname") shift; ES_HOSTNAME=$1;; "--secret") shift; SECRET=$1;; "--analyzer-path") shift; ANALYZER_PATH=$1;; + "--responder-path") shift; RESPONDER_PATH=$1;; "--") STOP=1;; *) usage esac @@ -79,6 +82,7 @@ then fi echo analyzer.path=[\"$ANALYZER_PATH\"] >> $CONFIG_FILE + echo responder.path=[\"$RESPONDER_PATH\"] >> $CONFIG_FILE echo 'include file("/etc/cortex/application.conf")' >> $CONFIG_FILE fi