Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active August 23, 2023 02:57
Show Gist options
  • Save guitarrapc/a7472c1e0e5f89521eaba75b787749d7 to your computer and use it in GitHub Desktop.
Save guitarrapc/a7472c1e0e5f89521eaba75b787749d7 to your computer and use it in GitHub Desktop.
Use verdaccio contains wget to health check container.
#!/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