A small Go server for testing deployments
995
docker run -p 8080:8080 aodin/blackmirror
The server will respond to a request for any method and path with the HTTP/1.1 wire format as a text/plain document.
curl localhost:8080/yo
GET /yo HTTP/1.1
Host: localhost:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8
Cache-Control: max-age=0
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
It accepts PORT / HOST environment variables and -port / -host flags, with the flags taking precendence. Its default address is :8080.
docker run -p=9000:9000 -e "PORT=9000" aodin/blackmirror
Content type
Image
Digest
sha256:936d2511b…
Size
7.1 MB
Last updated
about 1 year ago
docker pull aodin/blackmirror