Path changes solve

This commit is contained in:
Einar Lanfranco
2022-11-18 13:55:20 -03:00
parent 2123f04205
commit f9c139ecc0
4 changed files with 13 additions and 18 deletions

View File

@@ -19,11 +19,7 @@ RUN sudo chmod +x /opt/entrypoint-dev.sh \
RUN sudo chmod +x /opt/install_reqs_and_deploy_bots.sh \
&& sudo chown intelmq:intelmq /opt/install_reqs_and_deploy_bots.sh
# This section is just for install all the default bots dependencies
RUN for req in $(find /etc/intelmq/intelmq/bots/ -name "*REQUIREMENTS.txt"); do cat $req >> /tmp/fullrequirements.txt; done
RUN cat /tmp/fullrequirements.txt | sort | uniq > /tmp/orderfullrequirements.txt
RUN cat /tmp/orderfullrequirements.txt |grep -Eo '(^[^#]+)' | xargs -d "\n" -I {} sh -c 'pip3 install "$1"|| exit 0' sh {}
USER intelmq:intelmq
USER intelmq
ENTRYPOINT [ "/opt/entrypoint-dev.sh" ]

View File

@@ -24,8 +24,7 @@ fi
if [[ $1 == "selftest" ]]
then
export INTELMQ_TEST_EXOTIC=1
nosetests3 /etc/intelmq/intelmq/tests
nosetests3 /opt/intelmq/intelmq/tests
else
cd /etc/intelmq-api && hug -m intelmq_api.serve -p8080
fi
cd /opt/intelmq-api && hug -m intelmq_api.serve -p8080
fi