Sign inSign up

aodin/blackmirror

By aodin

Updated about 1 year ago

A small Go server for testing deployments

Image
1

995

aodin/blackmirror repository overview

Install

docker run -p 8080:8080 aodin/blackmirror

Usage

The server will respond to a request for any method and path with the HTTP/1.1 wire format as a text/plain document.

Request
curl localhost:8080/yo
Response
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
Options

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

Tag summary

Content type

Image

Digest

sha256:936d2511b

Size

7.1 MB

Last updated

about 1 year ago

docker pull aodin/blackmirror