You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CHORE] Add hadolint linting for Containerfiles #122
Add hadolint static analysis for all Containerfiles in the repository. Hadolint enforces Dockerfile best practices (pinned base image tags, consolidated RUN layers, pinned apk/apt versions, etc.) and integrates shellcheck for inline RUN scripts.
Acceptance Criteria
hadolint pre-commit hook added to .pre-commit-config.yaml, pinned by SHA
Containerfile passes hadolint with no warnings
tests/fixtures/sidecar.Containerfile passes hadolint with no warnings
uv run pre-commit run --all-files exits clean
Implementation Notes
Use hadolint-docker hook from https://github.com/hadolint/hadolint, pinned to 346e4199e4baca7d6827f20ac078b6eee5b39327 (v2.9.3)
DL3018 (unpinned apk packages) should be suppressed inline with # hadolint ignore=DL3018 in fixture files where pinning individual package versions would be brittle
The main Containerfile may need fixes after the hook is wired in
@c-vigo The hadolint-docker pre-commit hook added in PR #124 requires a running Docker daemon to pull and execute the hadolint container. This breaks local commits on Podman-only setups — which is the project's standard runtime (Docker is not listed in scripts/requirements.yaml).
Reproduction: Any commit touching Containerfile fails with:
hadolint.................................................................An unexpected error has occurred: CalledProcessError: command: ('/opt/homebrew/bin/docker', 'system', 'info', '--format', '{{ json . }}')
stderr: Cannot connect to the Docker daemon at unix:///...docker.sock. Is the docker daemon running?
Options to fix:
Switch hook from hadolint-docker to native hadolint (requires adding hadolint to requirements.yaml as an optional dep, e.g. brew install hadolint)
Make the hook work with Podman by setting DOCKER_HOST to the Podman socket
Mark the hook as non-blocking locally and rely on CI for Containerfile linting
This is currently blocking commits for #130 (tmux installation) on any machine without Docker Desktop running.
Activity
chore(setup): add hadolint hook for Containerfile linting
refactor: pin sidecar base image and consolidate RUN layers for hadolint
chore: update CHANGELOG for hadolint hook
chore: add hadolint linting for Containerfiles (#122) (#124)
gerchowl commentedon Feb 21, 2026
Bug:
hadolint-dockerhook requires Docker daemon@c-vigo The
hadolint-dockerpre-commit hook added in PR #124 requires a running Docker daemon to pull and execute the hadolint container. This breaks local commits on Podman-only setups — which is the project's standard runtime (Docker is not listed inscripts/requirements.yaml).Reproduction: Any commit touching
Containerfilefails with:Options to fix:
hadolint-dockerto nativehadolint(requires addinghadolinttorequirements.yamlas an optional dep, e.g.brew install hadolint)DOCKER_HOSTto the Podman socketThis is currently blocking commits for #130 (tmux installation) on any machine without Docker Desktop running.
chore: install tmux in Containerfile for worktree session persistence (…
1 remaining item
fix(setup): enhance parse_requirements to support multiline install c…
fix(setup): update `just` installation instructions to use `sudo`
feat(setup): add hadolint for Containerfile/Dockerfile linting
feat(setup): update hadolint configuration to use local binary
test(image): add hadolint tool verification tests
feat(image): install hadolint with checksum verification
docs: update CHANGELOG
test: fix init installer-key checks with parser mappings
chore: update .trivyignore to include CVE-2025-15558 exception
docs: update CHANGELOG
feat: add hadolint support across image and CI (#222)
chore: release 0.3.0 (#270)