fixing volumes in documentation

This commit is contained in:
Einar Lanfranco
2022-08-18 13:33:46 -03:00
parent 40796b5961
commit 0aee947169
2 changed files with 8 additions and 9 deletions

View File

@@ -30,17 +30,19 @@ docker-compose -f docker-compose-dev.yml up
### Volumes: ### Volumes:
- **./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. - **./my_bots:/my_bots** -> this is the folder where your bots source code need to be.
### Environment ### Environment
#Folder where you clone your repository #Folder where you clone your repository
MY_FORK: "/mybots" MY_FORK: "/my_bots"
#Folder in your repo where bots are located #Folder in your repo where bots are located
MY_BOTS_FOLDER: "bots" MY_BOTS_FOLDER: "bots"
### Add your own bots ### Add your own bots
Just start coding or pull your bots repository in ./mybots by default in a subfolder bots, so you need for example mybots/bots/[collectors,parsers,experts,output,parsers] Just start coding or pull your bots repository in ./my_bots by default in a subfolder bots, so you need for example my_bots/bots/[collectors,parsers,experts,output,parsers]
You could take a look at the folder and files in https://github.com/certtools/intelmq/tree/develop/intelmq/bots
### How to install and look yours bots running ### How to install and look yours bots running
@@ -53,8 +55,6 @@ docker-compose exec -f docker-compose-dev.yml intelmq sudo bash /opt/install_re
When you do this: When you do this:
* Yours bots REQUERIMENTS.txt and the bots will be installed * Yours bots REQUERIMENTS.txt and the bots will be installed
* Another thing, you could make your bots to be running when container startup, just setting ENABLE_BOTNET_AT_BOOT: "true" * Another thing, you could make your bots to be running when container startup, just setting ENABLE_BOTNET_AT_BOOT: "true"
## Dependencies problems ## Dependencies problems
@@ -79,4 +79,3 @@ This bot has 2 problems:
If you don't need blueliv, just don't fix git+git with git+https. If you don't need blueliv, just don't fix git+git with git+https.

View File

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