Sign inSign up

johanburati/hello

By johanburati

•Updated over 1 year ago

Http server for testing traffic between machines

Image
0

1M+

johanburati/hello repository overview

⁠Summary

Simple HTTP server for testing API interactions and network connectivity between containers/services.

⁠Usage

# Run the container
docker run -p 1234:8080 johanburati/hello:latest

# Test with ping endpoint
curl http://localhost:1234/ping
{"message":"pong"}

# Test with hello endpoint (query parameter)
curl http://localhost:1234/hello?name=world
{"message":"Hello world!","name":"world"}

# Test with hello endpoint (path parameter)
curl http://localhost:1234/hello/docker
{"message":"Hello docker!","name":"docker"}

⁠Endpoints

  • / - Help page with all endpoints
  • /ping - Simple ping test
  • /hello?name=value - Greeting with name
  • /health - Server health status
  • /info - Server information
  • /ip - Client IP address

All endpoints return JSON responses.

Tag summary

Content type

Image

Digest

sha256:638ba8e3f…

Size

8.6 MB

Last updated

over 1 year ago

docker pull johanburati/hello