hello-world
A tiny "Hello World" web server with a health check endpoint.
500K+
A Prometheus-instrumented Docker "Hello World" web server. This image began life as infrastructureascode/hello-world on Docker Hub, and is now also available on the GitHub Container Registry as ghcr.io/infrastructure-as-code/hello-world.
| Registry Name | Image Name |
|---|---|
| GitHub Container Registry | ghcr.io/infrastructure-as-code/hello-world |
| Docker Hub | infrastructureascode/hello-world |
/ path./metrics that returns Prometheus metrics./health, that returns an empty response and a HTTP 200 response.docker build --rm -t ghcr.io/infrastructure-as-code/hello-world .
Images are built with GitHub Actions upon tagging/push, and pushed directly to the GitHub Container Registry. You can look at the packages page for the latest tagged version.
Additionally, the sha1sum of the binary in each image is emitted during the build process (look for "Show binary info") in the build logs in case provenance is a concern.
# start the container
docker run \
--detach \
--name hello-world \
--publish 8000:8080 \
ghcr.io/infrastructure-as-code/hello-world
# curl the container
curl http://0.0.0.0:8000/
# curl the health check endpoint which returns an empty response
curl http://0.0.0.0:8000/health
# curl Prometheus metrics
curl http://0.0.0.0:8000/metrics
Content type
Image
Digest
sha256:7ac6fbf24…
Size
9.2 MB
Last updated
about 3 years ago
docker pull infrastructureascode/hello-world:2.4.0