Harden scripts, fix README/CHANGELOG, add CI lint step #6
Loading…
Reference in a new issue
No description provided.
Delete branch ":improve/code-quality"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A focused set of code-quality and documentation fixes for
docker-tftp. All changes are backwards compatible — the container behaves the same; the diff is just hardening, cleanup and missing/incorrect pieces.Dockerfile
# syntax=docker/dockerfile:1.7soCOPY --chmodis reliably supported on any builder.COPY+RUN chmod +xto a singleCOPY --chmod=0755 start.sh init.sh /.WORKDIR /and switched the entrypoint to the absolute path/start.sh.LABEL maintainer/LABEL descriptionwith the OCI-recommendedorg.opencontainers.image.*labels (title, description, source, licenses, authors) so the image is properly described by registries and tools.HEALTHCHECK: it now fails when either thednsmasqprocess is missing or UDP port 69 is unreachable, using a boundednc -u -z -w 2check (the previous check relied on busyboxnc -z -uwhich is unreliable for UDP across busybox versions).init.sh
set -euo pipefailso the script aborts on the first failure instead of starting dnsmasq in a half-configured state.mkdir -p "$TFTP_HOME"beforechown/chmod. Previously, if/tftpwas removed on the host between container runs, the script failed with a confusing error.TFTP_HOME, default/tftp) and tightened the variable quoting.start.sh
set -euo pipefailso/init.shfailures abort the container instead of being logged-and-ignored by the previous[ $? -ne 0 ]check (now simplified away)..woodpecker.yml
when: branch: main / event: pushblock on thesecurity-scanstep (already inherited from the top-levelwhen:).lintstep runninghadolintagainst the Dockerfile, matching what the CHANGELOG already promised but had never been wired up.README.md
3.with steps 1-2 missing.docker runreally was.CHANGELOG.md
### Changedsections into one (a duplicate heading had been left in an earlier revision)..gitignore
.DS_Store,Thumbs.db), editor backups (*~,*.swp,*.swo) and*.log.Notes
ALPINE_VERSIONARG - Renovate already has an open PR (#5) bumping it to 3.24.1; this PR deliberately leaves that to the bot to avoid a merge conflict.renovate.json- it already works via the instance-level config.Testing
bash -nsyntax check.latestwithout a digest, only the packages actually needed, single-purposeRUN,COPY --chmodinstead of separatechmod, etc.) - the CI lint step will be the source of truth.This change was produced by an AI assistant on behalf of the repository owner.