License audit Docker image
We provide a Docker image for the License audit linter to support different usage scenarios:
Running the analysis on a regular basis as part of your continuous integration (CI-based execution).
Single-shot analysis (for example, performed locally).
Quick start
Run analysis locally
Pull the image from Docker Hub (necessary to use the
latest
version):
Run the following command:
where <source-directory<
and <output-directory>
are full local paths to the directories that contain, respectively, the project source code and the analysis results.
This command runs the analysis on your source code and starts the web server to provide a convenient view of the results. Open http://localhost:8080
in your browser to examine the found problems and performed checks. Here, you can also reconfigure the analysis. See the UI section of this guide for details. When done, you can stop the web server by pressing Ctrl-C
in the Docker console.
If you don't need the user interface and prefer to study raw data, use the following command:
If you run the analysis several times in a row, make sure you've cleaned the results directory before using it in docker run
again.
By default, Qodana License audit comes with a set of pre-installed tools versions (Java 11, Gradle 6, Python 3 and others), you can explicitly specify which tool versions to use for your project.
See technical guide for details.
Run analysis in CI
Run the following command as a task in a generic Shell executor:
where <source-directory<
and <output-directory>
are full local paths to the directories that contain, respectively, the project source code and the analysis results.
Consider using fail-threshold to make the build fail on reaching a certain number of problems. Running as non-root is also supported.
Example for GitHub Workflow (
.github/workflows/qodana-license-audit.yml
):
Usage statistics
According to the JetBrains EAP user agreement, we can use third-party services to analyze the usage of our features to further improve the user experience. All data will be collected anonymously. You can disable the reporting of usage statistics by adjusting the options of the Docker command you use. Refer to the technical guide for details.
License
By using Qodana Clone Finder Docker image, you agree to the JetBrains EAP user agreement and JetBrains privacy policy.