Last active
August 23, 2023 02:57
-
-
Save guitarrapc/a7472c1e0e5f89521eaba75b787749d7 to your computer and use it in GitHub Desktop.
Use verdaccio contains wget to health check container.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# run container | |
containerId=$(docker run -d --rm -p 4873:4873 verdaccio/verdaccio:5.24.0) | |
# health check should success | |
wget -q -O - http://localhost:4873/-/ping || exit 1 | |
# kill container | |
docker kill ${containerId} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment