Set up a containerized development environment - Developer Guide - Cortex XSIAM - Cortex - Security Operations

Cortex XSIAM Developer Guide

Product
Cortex XSIAM
Creation date
2023-05-01
Last date published
2025-02-05
Category
Developer Guide

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
  1. In Visual Studio Code, go to FileOpen Folder.

  2. Select the cloned/forked repository.

  3. Create a new branch to use for your development.

Open the dev container in Visual Studio Code
  1. In Visual Studio Code, click the green button.

    visualstudiodevcontainer.png
  2. Click Reopen in Container. Alternatively, open the command prompt (CMD+SHIFT+P) and search for Reopen in Container.

    Note

    It may take a few minutes until the dev container is ready for use.

Usage

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

dev-container-open.png

The environment contains demisto-sdkzshgitpyenvpoetry, 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