From 9076f30e2a3a8b58b7a437424dade5754a0adae5 Mon Sep 17 00:00:00 2001 From: dlee35 Date: Fri, 6 Jul 2018 08:40:27 -0400 Subject: [PATCH 1/2] Specified 127 address in misp-module due to failure when running localhost (default) --- misp-web/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp-web/Dockerfile b/misp-web/Dockerfile index 3d390c7..d04cc16 100644 --- a/misp-web/Dockerfile +++ b/misp-web/Dockerfile @@ -137,7 +137,7 @@ RUN pip3 install --upgrade --ignore-installed urllib3 RUN pip3 install --upgrade --ignore-installed requests RUN pip3 install -I -r REQUIREMENTS RUN pip3 install -I . -RUN echo "sudo -u www-data misp-modules -s &" >>/etc/rc.local +RUN echo "sudo -u www-data misp-modules -s -l 127.0.0.1 &" >>/etc/rc.local # Supervisord Setup RUN echo '[supervisord]' >> /etc/supervisor/conf.d/supervisord.conf From b471221acd7fbdc83757dbcbfb30ac20ce5a4939 Mon Sep 17 00:00:00 2001 From: dlee35 Date: Fri, 6 Jul 2018 08:58:06 -0400 Subject: [PATCH 2/2] Fixed command and user for misp-modules in supervisord.conf --- misp-web/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misp-web/Dockerfile b/misp-web/Dockerfile index d04cc16..677c39e 100644 --- a/misp-web/Dockerfile +++ b/misp-web/Dockerfile @@ -163,8 +163,8 @@ RUN echo 'startsecs = 0' >> /etc/supervisor/conf.d/supervisord.conf RUN echo 'autorestart = false' >> /etc/supervisor/conf.d/supervisord.conf RUN echo '' >> /etc/supervisor/conf.d/supervisord.conf RUN echo '[program:misp-modules]' >> /etc/supervisor/conf.d/supervisord.conf -RUN echo 'command=/bin/bash -c "cd /opt/misp-modules/bin && /usr/bin/python3 misp-modules.py"' >> /etc/supervisor/conf.d/supervisord.conf -RUN echo 'user = root' >> /etc/supervisor/conf.d/supervisord.conf +RUN echo 'command=/bin/bash -c "misp-modules -s -l 127.0.0.1"' >> /etc/supervisor/conf.d/supervisord.conf +RUN echo 'user = www-data' >> /etc/supervisor/conf.d/supervisord.conf RUN echo 'startsecs = 0' >> /etc/supervisor/conf.d/supervisord.conf RUN echo 'autorestart = false' >> /etc/supervisor/conf.d/supervisord.conf