Docker Image Paths and Configuration Options
Docker image paths
/data/project — root directory of the project to be analyzed
/data/results — directory to store the analysis results, needs to be empty before each Qodana run
Examples of execution tuneup
Display a report in HTML. After the License Audit analysis is finished, the container will not exit and will listen to port
8080. You can connect to
http://localhost:8080to see the results. When done, you can stop the webserver by pressing
Ctrl-Cin the Docker console.
Specify tools versions required by your project
The default installed versions of tools (languages SDKs or build systems) in the License Audit image are:
If your project requires another tool version, pass the environment variable with the tool's name and its version to
Then it will be installed on the container launch and used to obtain dependencies.
Find available tools versions
Run the command to find available versions for the wanted tool
tool is a tool name, which can be
Known issues with Gradle projects
If your project has no Gradle Wrapper included and requires a Gradle version other than the default
6.8.3, set the
GRADLE_VERSIONimage environment variable:
In case of the error
Could not find or load main class org.gradle.wrapper.GradleWrapperMain, push the Gradle Wrapper to the project repository.
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 the 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 the
DISABLE_STAT_COLLECTION environment variable: