Xygeni CLI Docker Image
The xygeni/xygeni_scanner
docker image is convenient if you plan to run the scanner without installing the required tools. You can run a Docker container using the image that includes all the tools needed to run the scanner in a standard developer environment.
Quickstart
Usage requires to provide an active Xygeni account or API token to the scanner.
Save the following code as docker-compose.yml
:
Replace XYGENI_TOKEN by XYGENI_USERNAME + XYGENI_PASSWORD if you prefer to use username and password instead of the recommended access token:
By using this docker-compose.yml
you will be able to quickly perform a scan as it simplifies the usage by providing a scheme for the volumes that the scanner requires to be mounted.
To customize volume paths or the project name for this quickstart you can edit the docker compose file or, as a better practice, use the following .env
file scheme:
Now let’s run your first scan:
By default, a full scan is performed. Surely you may want to customize this behaviour. To achieve that, you should run the container with your desired command.
Advanced usage
First you need to manually pull the Docker image from the xygeni docker hub repository.
Usually you will mount a volume for the project to scan when running this Docker container:
CLI Options
Please refer to the Xygeni CLI mode of operation for full details on the scanner command line options and configuration.
Last updated