Skip to content

Fix hadolint complaints - #8598

Closed
pabzm wants to merge 2 commits into
mainfrom
fix-dockerfile-lint-json-notation
Closed

Fix hadolint complaints#8598
pabzm wants to merge 2 commits into
mainfrom
fix-dockerfile-lint-json-notation

Conversation

@pabzm

@pabzm pabzm commented Aug 20, 2026

Copy link
Copy Markdown
Member

Fixes hadolint's complains as visible e.g. in https://github.com/nextcloud/all-in-one/actions/runs/32381178668/job/96464481888

  1. Converts all shell-form HEALTHCHECK CMD instructions to exec (JSON
    array) form. The domaincheck healthcheck relies on shell expansion and
    the || operator, so it is wrapped as CMD ["sh", "-c", "..."] to preserve
    behavior.
  2. Makes hadolint ignore DL3064 in one case, where we assign a dummy value to the AIO_TOKEN environment variable. (I'm not sure why we do that but I don't dare to change that now.)

Summary

  • The PR was tested and verified that it works locally
  • Or will be tested after merge on a dedicated test instance (available for maintainers)
  • Sign-off message is added to all commits
  • Tests (playwright if possible) are included
  • Screenshots before/after for front-end changes
  • Documentation has been updated or is not required
  • Labels added where applicable (ex: bug/enhancement, 3. to review, feature component)
  • Milestone next added

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@pabzm pabzm added this to the next milestone Aug 20, 2026
@pabzm
pabzm requested a review from szaimen August 20, 2026 15:01
@pabzm pabzm added the 3. to review Waiting for reviews label Aug 20, 2026
pabzm added 2 commits August 20, 2026 17:02
Converts all shell-form HEALTHCHECK CMD instructions to exec (JSON
array) form. The domaincheck healthcheck relies on shell expansion and
the || operator, so it is wrapped as CMD ["sh", "-c", "..."] to preserve
behavior.

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
Co-Authored-By: Claude Sonnet 5
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
@pabzm
pabzm force-pushed the fix-dockerfile-lint-json-notation branch from 1d24d83 to b214409 Compare August 20, 2026 15:02
@pabzm

pabzm commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

The Docker lint check complains:

DL3066 info: Non-numeric user-id may not be resolvable by host system

I'd prefer to fix this instead of ignoring it, but I'm not sure if using numeric UIDs could break something.

@szaimen What do you think?

@Zoey2936

Copy link
Copy Markdown
Collaborator

Why a second PR? #8523

@pabzm

pabzm commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

Because I forgot about yours and just worked on it spontaneously

/close

@pabzm pabzm closed this Aug 20, 2026
@pabzm
pabzm deleted the fix-dockerfile-lint-json-notation branch August 20, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants