Sign inSign up

cloudkats/hello-world-rest

By cloudkats

•Updated over 2 years ago

Docker image hello world rest application

Image
0

4.0K

cloudkats/hello-world-rest repository overview

⁠Hello World REST Service

Simple REST Service that echos some requests back, has health and version checks. This service runs inside a container so there is almost no overhead in getting started.



⁠Contents

⁠What is this sevice good for?

  • Easy test reverse proxy routes and paths.
  • Use this service as a dummy to see if request reach your service correctly.
  • Use it to test load balancers by peeking at the out and see the host/ip.
  • Use it for Hello World demo projects that require some basic Rest functionality.
⁠Endpoints
/version
/status
/env
/env/:pattern
/echo
/echo/headers

⁠Docker Image

NameBadgesVersion
Hello World App⁠docker.build-push

⁠Run

docker run --rm -it -p 8080:3000 cloudkats/hello-world-rest
curl -i localhost:8080/env

⁠Docker Compose

Run compose make run.

Dashboard http://localhost:8080/dashboard

Example runs

curl -s localhost:8080/api/rawdata | jq .
curl -H 'Host:whoami.docker.localhost' 'http://localhost/'
curl -i localhost:3000/echo/12345
curl -i localhost:3000/version
curl -i localhost:3000/status
curl -i localhost:3000/env
curl -i localhost:3000/env/rvm_

⁠Create

Create a repository using this template →⁠

Tag summary

Content type

Image

Digest

sha256:46dca2c2f…

Size

48.7 MB

Last updated

over 2 years ago

docker pull cloudkats/hello-world-rest