testcontainers-node
testcontainers-node copied to clipboard
Support for health checks using CMD rather than CMD-SHELL
Currently only CMD-SHELL health checks are supported which require a shell on the docker container to run. distroless docker images like mockserver don't have a shell so that mechanism doesn't work, see https://github.com/GoogleContainerTools/distroless/issues/183.
To support docker containers without a shell the health check needs to be in the format
test: ['CMD', '/path/to/program', 'arg1', 'arg2', 'arg3']
Fixes #342
@cristianrgreco I've updated the PR to make the syntax for the health check test syntax more specific.
Will be looking to implement/merge this PR with https://github.com/testcontainers/testcontainers-node/pull/405