Docker image configuration
Docker image paths
/data/project: root directory of the project to be analyzed
/data/versus: directory containing projects to compare against
/data/results: directory to store the analysis results, needs to be empty before each Qodana run
Configuration
Available arguments:
Examples of execution tuneup:
Display a report in HTML. After the Clone Finder analysis is finished, the container will not exit and will listen to port
8080
. You can connect tohttp://localhost:8080
to see the results. When done, you can stop the web server by pressingCtrl-C
in the Docker console.docker run ... -p 8080:8080 <image-name> --show-reportSpecify languages explicitly
docker run ... <image-name> -l <language-name>
Run as non-root
By default, the container is run as the root
user so that Qodana can read any volumes bind-mounted with the project and write the results. As a result, files in the results/
folder are owned by the root
after the run.
To avoid this, you can run the container as a regular user:
Note that in this case, the results/
folder on host should already be created and owned by you. Otherwise, Docker will create it as root
and Qodana will not be able to write to it.
Turn off user statistics
To disable the reporting of usage statistics, add DISABLE_STAT_COLLECTION
environment variable: