mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-19 07:33:07 +01:00
78 lines
2.5 KiB
Markdown
78 lines
2.5 KiB
Markdown
# intelmq-docker
|
|
|
|
## Run & deploy containers in dev mode:
|
|
|
|
### Install docker and docker-compose
|
|
```
|
|
sudo apt update && sudo apt upgrade -y && sudo apt install docker.io git docker-compose
|
|
```
|
|
|
|
### Clone this repo
|
|
|
|
```
|
|
git clone https://github.com/certat/intelmq-docker.git --recursive
|
|
cd intelmq-docker
|
|
docker-compose -f docker-compose-dev.yml build
|
|
```
|
|
|
|
### In next step replace git@github.com:certtools/intelmq.git by your fork of intelmq
|
|
|
|
```
|
|
git clone git@github.com:certtools/intelmq.git my_fork_of_intelmq/
|
|
docker-compose -f docker-compose-dev.yml up
|
|
```
|
|
|
|
### Open your favourite browser -> Go to `http://127.0.0.1:1337/`
|
|
|
|
Default user/password: intelmq/intelmq
|
|
|
|
## Docker-compose-dev.yml file
|
|
|
|
### 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.
|
|
|
|
### Environment
|
|
#Folder where you clone your repository
|
|
MY_FORK: "/mybots"
|
|
#Folder in your repo where bots are located
|
|
MY_BOTS_FOLDER: "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]
|
|
|
|
### How to install and look yours bots running
|
|
|
|
After you change some bot or add something new just run command **install_reqs_and_deploy_bots.sh** in the running container
|
|
|
|
```
|
|
docker-compose exec -f docker-compose-dev.yml intelmq sudo bash /opt/install_reqs_and_deploy_bots.sh
|
|
```
|
|
|
|
When you do this:
|
|
|
|
* 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"
|
|
|
|
## Dependencies problems
|
|
|
|
Some dependencies from defaults bots are missing in original intelmq image, so we fix it in our Dockerfile build process. Neverles we still facing some issues.
|
|
|
|
### Known isues
|
|
|
|
Blueliv problem:
|
|
|
|
pip3 install git+git://github.com/Blueliv/api-python-sdk doesn't work because git+git is deprecated, to fix it you need to replace git+git with git+https
|
|
|
|
|
|
But you still will have problems because of dependency confict:
|
|
|
|
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
|
|
pymisp 2.4.148 requires requests<3.0.0,>=2.25.1, but you have requests 2.5.1 which is incompatible.
|
|
|
|
|
|
|