Skip to main content

CxSAST Reporting Client API Installation (Docker image)

Following is a step-by-step guide for installing the CxSAST Reporting Client API component as a Docker image.


This is a Linux-based image.

Installation steps


Dependency Requirements:

The Authorization Setup Script must be executed before the Client API Installation. The script and guide can be found at CxSAST Reporting Authorization Setup.

  1. Download the CxSASTReportingAPI Docker image.

  2. Load the CxSASTReportingAPI Docker image into your desired host Docker.

    docker image load --input <image filename>.tar

  3. Configure the CxSASTReporting settings using:

    o Docker .env file

    o Environment variables

    Docker .env file

    The image provided receives multiple parameters via environment variables. To pass them to the container, create a .env file with key-value pairs using the following format: KEY=value

    This file is then passed in the docker run command with the following option:

    --env-file="<path to file>\vars.env"

    The provided .env file must be the same as that provided to CxSASTReporting Manager. For more information, refer to CxSASTReporting Manager Installation Guide (Docker image).

    Environment variables

    • CONNECTION_STRING Required - Database connection string to a SQL Server.

    • REPORTS_OUTPUT_PATH Required - Output path for the generated reports.

  4. To start the CxSASTReporting container, run the docker image with the following command:

    docker run -p 5001:80 `
    --env-file=<vars.env file path> `
    -v ~/cx-reporting-service:/app/CxReports `
    --restart always `
  5. You can verify that the installation was successful by checking <ip>:<port>/swagger/ . This will provide the familiar Swagger interface with all the available endpoints listed.


If you intend to deploy the Manager and Client API images using docker-compose, please refer to CxSAST Reporting Service Docker Compose Setup.CxSAST Reporting Service Docker Compose Setup