test: cover dokku container healthcheck wiring

Adds a bats lint test that guards the static wiring (nginx conf, dokku-restore finish-script ordering, my_init sentinel reset, and the Dockerfile HEALTHCHECK line) plus a docker smoke test that boots the built image, waits for the health flip, exercises the loopback endpoint, asserts the port is not published to the host, and verifies the negative path. The smoke test is invoked via a new `make test-image-healthcheck` target and runs automatically in the build-image action after `docker buildx --load`.
This commit is contained in:
Jose Diaz-Gonzalez
2026-05-10 21:39:43 -04:00
parent cc0843391f
commit 2a4393a63a
4 changed files with 196 additions and 0 deletions

View File

@@ -26,6 +26,12 @@ runs:
shell: bash
run: |
docker buildx build \
--load \
--progress plain \
--tag "dokku/dokku:latest" \
.
- name: smoke test image
shell: bash
run: |
make test-image-healthcheck IMAGE_TAG=dokku/dokku:latest