A tiny "Hello World" web server with a health check endpoint.
6.8K
A Prometheus-instrumented Docker "Hello World" web server.
/ path./metrics that returns Prometheus metrics./health, that returns an empty response and a HTTP 200 response.docker build --rm -t infrastructureascode/hello-world .
# start the container
docker run \
--detach \
--name hello-world \
--publish 8000:8080 \
infrastructureascode/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
Size
4.2 MB
Last updated
over 8 years ago
docker pull armv6l/hello-world