Installation of dependencies (Ubuntu 20.04)

If you are on a version of Debian/Ubuntu prior to 20, please refer to this GIthub issue.

$ sudo apt-get install docker docker-compose curl nodejs python3 python3-pip
$ sudo curl -sS <> | sudo apt-key add -
$ sudo echo "deb <> stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt-get update && sudo apt-get install yarn

Docker stack

As OpenCTI has a dependency to ElasticSearch, you have to set the vm.max_map_count before running the containers, as mentioned in the ElasticSearch documentation.

$ sudo sysctl -w vm.max_map_count=262144

Clone the latest version of the dev docker compose and start

$ git clone <>
$ cd docker
$ sudo docker-compose -f ./docker-compose-dev.yml up -d

Clone the project

$ git clone <>
$ cd opencti

Application dependencies

Install the API dependencies

$ cd opencti-platform/opencti-graphql
$ yarn install

Install the frontend dependencies

$ cd ../opencti-front
$ yarn install

Install the worker dependencies

$ cd ../../opencti-worker/src
$ pip3 install -r requirements.txt