Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

reduce analyzer requirements installation time #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions installation/install-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ git clone https://github.com/TheHive-Project/Cortex-Analyzers
Each analyzer comes with its own, pip compatible `requirements.txt` file. You can install all requirements with the following commands:

```
for I in $(find Cortex-Analyzers -name 'requirements.txt'); do sudo -H pip2 install -r $I; done && \
for I in $(find Cortex-Analyzers -name 'requirements.txt'); do sudo -H pip3 install -r $I || true; done
for I in $(find Cortex-Analyzers -name 'requirements.txt'); do cat >> combined_requirements.txt < $I; sort -u -o combined_requirements.txt combined_requirements.txt; done
sudo -H pip2 install -r combined_requirements.txt
sudo -H pip3 install -r combined_requirements.txt
rm combined_requirements.txt
```

Next, you'll need to tell Cortex where to find the analyzers. Analyzers may be in different directories as shown in this dummy example of the Cortex configuration file (`application.conf`):
Expand Down