dummy

command module
v0.0.0-...-a127b72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 Imported by: 0

README

dummy

HTTP server for testing cluster deployments.

  • Very small container image for fast deployments.
  • Responds with JSON including the server's hostname.

Run

Run the container:

$ docker run -p 127.0.0.1:80:80 run rbwsam/dummy

In another terminal, send a request to the server:

$ curl -v 127.0.0.1
*   Trying 127.0.0.1:80...
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1
> User-Agent: curl/7.74.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
< Date: Thu, 17 Feb 2022 19:43:53 GMT
< Content-Length: 33
< 
{
  "hostname": "27c04ba3c3ba"
}
* Connection #0 to host 127.0.0.1 left intact

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL