Sign inSign up

zitros/container-echo

By zitros

•Updated over 5 years ago

The container which echoes and logs any request and environment variables.

Image
1

1.1K

zitros/container-echo repository overview

⁠container-echo

A simple container that listens on port 80 (or on the PORT environment variable if provided).

It logs and outputs in the following format (on a single line):

{
  "request-path": "/",
  "request-headers": {
    "content-length": "4",
    "host": "test.com",
    "accept-encoding": "gzip,deflate,br",
    "content-type": "text/plain"
  },
  "request-body": "test",
  "container-envs": {
    "HOME": "/home",
    "YARN_VERSION": "1.22.5",
    "PWD": "/app",
    "NODE_VERSION": "15.10.0",
    "PORT": "8080",
    "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  }
}

⁠License

MIT⁠ © Nikita Savchenko⁠

Tag summary

Content type

Image

Digest

Size

39 MB

Last updated

over 5 years ago

docker pull zitros/container-echo