Dagweave catalog

Lint a Dockerfile

hadolint-lintv1.0.0updated 2026-10-181 version

Check a Dockerfile against Hadolint's rules for common mistakes and bad practice, and fail the step at the severity you choose.

Install v1.0.0

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/hadolint-lint/1.0.0/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/hadolint-lint/1.0.0/template.yaml

Facts

Category
CI/CD
Tags
ci-cd hadolint
Entrypoint
lint
Template SHA-256
560ef53ce88d12d9da46ca2082e3f9e7f72df619dfa0043114b962210b7558b9
Source
hadolint-lint at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
hadolint/hadolintv2.15.1sha256:32dac94127fd60b7b7e3fbfc65e1383b9b5e25c9bfd7b8536de7a539fe68a12d

Parameters

NameDescriptionDefault
dockerfile Path to the Dockerfile. /work/Dockerfile
failure-threshold Lowest severity that fails the step.
One of error, warning, info, style
warning

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: hadolint-lint
  labels:
    dagweave.io/catalog-item: hadolint-lint
  annotations:
    dagweave.io/catalog-version: "1.0.0"
    dagweave.io/catalog-category: "CI/CD"
spec:
  entrypoint: lint
  templates:
    - name: lint
      inputs:
        parameters:
          - name: dockerfile
            default: "/work/Dockerfile"
          - name: failure-threshold
            default: "warning"
      container:
        # hadolint/hadolint:v2.15.1
        image: hadolint/hadolint@sha256:32dac94127fd60b7b7e3fbfc65e1383b9b5e25c9bfd7b8536de7a539fe68a12d
        command: [/bin/hadolint]
        args:
          - --no-color
          - --failure-threshold
          - "{{inputs.parameters.failure-threshold}}"
          - "{{inputs.parameters.dockerfile}}"
        resources:
          requests:
            cpu: 50m
            memory: 64Mi
          limits:
            memory: 256Mi

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.0 latest 2026-10-18

    Initial release.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/hadolint-lint/1.0.0/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/hadolint-lint/1.0.0/template.yaml

    version document, template.yaml

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/hadolint-lint

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hadolint-lint-
spec:
  workflowTemplateRef:
    name: hadolint-lint

As a step of a larger workflow

steps:
  - - name: hadolint-lint
      templateRef:
        name: hadolint-lint
        template: lint