Set up a containerized development environment
Set up a Docker-based Cortex XSIAM content development environment with Visual Studio Code and Dev Containers.
You can set up a fully functional development environment in a Docker container. The containerized development environment includes all the necessary tools and dependencies needed to develop content in the demisto/content repository.
Requirements
The following must be installed on the host machine as described in System Requirements.
Recommended hots requirements are specified in devcontainer.json.
4 CPUs
8GB of memory
32GB free disk space
You also need a forked/cloned content repository on the host machine.
Installation
Install Docker, Visual Studio Code, and the Dev Containers extension, following the installation instructions on the Visual Studio Code website.
Open the repository in Visual Studio Code
In Visual Studio Code, go to File → Open Folder.
Select the cloned/forked repository.
Create a new branch to use for your development.
Open the dev container in Visual Studio Code
In Visual Studio Code, click the green button.

Usage
Once the dev container is ready, a new Visual Studio Code window opens and the content repository is available.

The environment contains demisto-sdk, zsh, git, pyenv, poetry, preinstalled system and Python dependencies, and recommended extensions, including the Cortex XSOAR Visual Studio Code Extension.
Troubleshooting
If there are errors when opening the dev container, try the following:
Update Docker
Run the following command to clean up Docker:
docker system prune -a --volumes
Last updated
Was this helpful?
