Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docker): Use the right shebang in healthcheck.sh #963

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

Pothulapati
Copy link
Contributor

@Pothulapati Pothulapati commented Mar 20, 2023

Fixes #942

Alpine images don't have bash installed by default, so we need to use
/bin/sh instead. This follows the same existing convention that
we follow in the entrypoint.sh script
.

Both ubuntu and alpine images have been tested (i.e healthchecks to
pass) to work with this change.

Testing

Build the new image

docker build -f ./tools/docker/Dockerfile.alpine-dev . -t ghcr.io/pothulapati/df

Run and Verify

docker run --network=host --ulimit memlock=-1 ghcr.io/pothulapati/df  &

docker ps

Alpine images don't have bash installed by default, so we need to use
`/bin/sh` instead. This follows the *same existing convention that
we follow in the `entrypoint.sh` script*.

Both ubuntu and alpine images have been tested (i.e healthchecks to
pass) to work with this change.
@Pothulapati Pothulapati requested a review from romange March 20, 2023 06:24
@romange romange merged commit 34aec80 into main Mar 20, 2023
@romange romange deleted the tar/alpine-healthcheck branch March 20, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker health status
2 participants