Actualizados para los cambios de 3.0.2 que trajeron muchos problemas

This commit is contained in:
Einar Lanfranco
2022-05-10 18:06:11 -03:00
committed by Sebastian Waldbauer
parent 9d9bef0248
commit 08859e2108
4 changed files with 18 additions and 8 deletions

View File

@@ -11,8 +11,13 @@ RUN sudo apt-get update \
&& sudo rm -rf /var/lib/apt/lists/*
WORKDIR /opt
ADD entrypoint-dev.sh /opt/entrypoint-dev.sh
ADD install_reqs_and_deploy_bots /opt/install_reqs_and_deploy_bots.sh
RUN sudo chmod +x /opt/entrypoint-dev.sh \
&& sudo chown intelmq:intelmq /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
USER intelmq:intelmq
ENTRYPOINT [ "/opt/entrypoint-dev.sh" ]

View File

@@ -7,7 +7,6 @@ done
cat /tmp/fullrequirements.txt | sort | uniq > /tmp/orderfullrequirements.txt
sudo pip3 install -r /tmp/orderfullrequirements.txt;
#cd /etc/intelmq
#sudo pip3 install --no-cache-dir -e .
#sudo intelmqsetup
cd /etc/intelmq
sudo pip3 install --no-cache-dir -e .
sudo intelmqsetup

View File

@@ -30,7 +30,13 @@ docker-compose -f docker-compose-dev.yml up
### Volumes:
- **./my_fork_of_intelmq/intelmq:/etc/intelmq/intelmq** -> this is the folder where your source code need to be, we decide to use fork from intelmq so you could inherit intelmq changes and upgrades to your bots code directly.
- **./my_fork_of_intelmq/:/my_fork_of_intelmq** -> this is the folder where your source code need to be, we decide to use fork from intelmq so you could inherit intelmq changes and upgrades to your bots code directly.
### Environment
#Folder where you clone your repository
MY_FORK: "/my_fork_of_intelmq"
#Foder in your repo where bots are located
MY_BOTS_FOLDER: "intelmq/bots"
### Add your own bots

View File

@@ -24,7 +24,7 @@ services:
- ./example_config/intelmq-api/config.json:/etc/intelmq/api-config.json
- ./intelmq_logs:/opt/intelmq/var/log
- ./intelmq_output:/opt/intelmq/var/lib/bots
- ./my_fork_of_intelmq/:${MY_FORK}/${MY_BOTS_FOLDER}
- ./mybots:/my_fork_of_intelmq
depends_on:
- redis
environment:
@@ -36,8 +36,8 @@ services:
INTELMQ_SOURCE_PIPELINE_HOST: redis
INTELMQ_DESTINATION_PIPELINE_HOST: redis
INTELMQ_REDIS_CACHE_HOST: redis
MY_FORK: "my_fork_of_intelmq"
MY_BOTS_FOLDER: "intelmq/bots"
MY_FORK: "/my_fork_of_intelmq"
MY_BOTS_FOLDER: "bots"
networks:
- intelmq-internal
networks: