Save yourself time, to copy this gist type
git clone https://gist.github.com/desnij/e0982c73bb04dead12828201b27883c4
THEHIVE_USER=1000
CORTEX_USER=1
ELASTICSEACH_USER=1000
mkdir -p ./data/thehive/data/ ./data/cortex/data ./data/cassandra1 ./data/elasticsearch
# if you are not UID 1000 you may need to do this
sudo chown -R ${THEHIVE_USER} ./data/thehive/
sudo chown -R ${ELASTICSEACH_USER} ./data/elasticsearch
#chown -R ${CASSANDRA_USER} ./data/cassandra1
# add and upfate
cd data/cortex
git clone https://github.com/TheHive-Project/Cortex-Analyzers
sudo chown -R ${CORTEX_USER} .
docker run --name tmp -v "$PWD":/opt -v $PWD/data:/data --workdir=/opt -e HOME=/data/HOME_PYTHON_INSTALLED --entrypoint=bash thehiveproject/cortex -c 'for I in $(find Cortex-Analyzers -name requirements.txt); do pip3 install -r $I ; done'
./data/thehive/application.conf ./data/cortex/cortex.conf
cp data_thehive_application.conf ./data/thehive/application.conf
cp data_cortex_cortex.conf ./data/cortex/cortex.conf