mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-06 17:22:57 +01:00
Develop guide md
This commit is contained in:
35
DEVELOP-GUIDE.md
Normal file
35
DEVELOP-GUIDE.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# intelmq-docker
|
||||
|
||||
## Run & deploy containers in dev mode:
|
||||
|
||||
1. `docker-compose -f docker-compose-dev.yml up`
|
||||
|
||||
## Docker-compose-dev.yml file
|
||||
|
||||
### Volume:
|
||||
|
||||
**./mybots:/opt/dev/mybots** -> this is the folder where your source code need to be, you could see one expert example in mybots/bots/experts/example and a BOTS json definition file containing the default configuration for example expert.
|
||||
|
||||
### Add your own bots
|
||||
|
||||
Just start coding or pull your bots repository in ,/mybots folder
|
||||
|
||||
|
||||
### How to install and look yours bots runnig
|
||||
|
||||
|
||||
Just run /opt/dev/update.sh in the container:
|
||||
|
||||
1. `docker-compose exec -f docker-compose-dev.yml intelmq /opt/bin/update.sh`
|
||||
|
||||
When you do this:
|
||||
|
||||
* Yours BOTS files will be mixed with intelmq original BOTS
|
||||
* Yours bots will be installed
|
||||
|
||||
### Additional environment variables
|
||||
|
||||
Check options in docker-compose-dev.yml:
|
||||
|
||||
* LOG_MAIL_* -> these variables add support for mail handler (to tell intelmq to notificate you errors using email)
|
||||
* ENABLE_BOTNET_AT_BOOT: true/false, to configure if bot has to start at docker boot or not.
|
||||
Reference in New Issue
Block a user