Synchronization with Hadolint (Dockerfile)

Hadolint is a linter for Dockerfile files. Hadolint is available with the linter embedded mode in Themis.

Embedded analysis in Themis

To delegate to Themis the analysis of your Dockerfile files at Hadolint, you must first configure the embedded linters mode for your source. You must then add a sub-plugin for Hadolint.

Themis uses the default configuration of Hadolint in a file in Yaml format. You can edit the contents of this file at any time. Here is the default content :

 

trustedRegistries:
- docker.io
- registry.hub.docker.com
- index.docker.io

ignored:

 

You can consult the official documentation for the file configuration.

In case you already have a configuration file on your source code repository, you can configure Themis to use this configuration. To do this, you must specify the combination of the following 2 parameters :

  • Use a configuration file on your repository (true / false) : Specify true to use your configuration file.
  • Relative path of the configuration file on your repository : Enter here the relative path on your source code repository of the configuration file. Example: src/hadolint.yml.

If you enable the use of your own configuration file, the parameter "Configuration file" is not taken into account in the analysis. It also does not reflect the contents of the configuration file on your source code repository.

Information and installed versions

Site web : https://github.com/hadolint/hadolint

Analyzed files : All files which name start with Dockerfile.

Version de Themis Version de Hadolint
2.6.0 1.15.0

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.