mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-06 01:02:52 +01:00
Path changes solve
This commit is contained in:
@@ -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" ]
|
||||
|
||||
@@ -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
|
||||
cd /opt/intelmq-api && hug -m intelmq_api.serve -p8080
|
||||
fi
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@ LABEL maintainer="IntelMQ Team <intelmq-team@cert.at>" \
|
||||
org.opencontainers.image.documentation="https://intelmq.readthedocs.io/en/latest/" \
|
||||
org.opencontainers.image.vendor="intelmq-team"
|
||||
|
||||
###
|
||||
# libfuzzy-dev is used for pydeep
|
||||
### libfuzzy-dev is used for pydeep
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
@@ -46,7 +45,7 @@ COPY ./intelmq-api /opt/intelmq-api
|
||||
|
||||
RUN useradd -d /opt/intelmq -U -s /bin/bash intelmq \
|
||||
&& adduser intelmq sudo \
|
||||
&& echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /opt/sudoers \
|
||||
&& echo "intelmq ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/intelmq \
|
||||
&& sudo chown -R intelmq:intelmq /opt/intelmq \
|
||||
&& mkdir -p /opt/intelmq_persistence \
|
||||
&& sudo chown -R intelmq:intelmq /opt/intelmq_persistence
|
||||
|
||||
@@ -18,7 +18,8 @@ services:
|
||||
networks:
|
||||
- intelmq-internal
|
||||
intelmq:
|
||||
build: .docker/intelmq-full-dev
|
||||
# build: .docker/intelmq-full-dev
|
||||
image: certunlp/intelmq3-full-dev:latest
|
||||
volumes:
|
||||
- ./example_config/intelmq/etc/:/opt/intelmq/etc/
|
||||
- ./example_config/intelmq-api/config.json:/etc/intelmq/api-config.json
|
||||
|
||||
Reference in New Issue
Block a user