Skip to content

Always living, HTTP echo container listening on port 80 and echoing environment variables passed to the container.

License

Notifications You must be signed in to change notification settings

nikitaeverywhere/container-echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

container-echo

A simple container that listens on port 80 (or on the PORT environment variable if provided). Useful for debugging containerized environments (Kubernetes, Cloud Run, etc), or just as a demo container.

Usage

Pull the public image from docker registry:

docker pull zitros/container-echo

When running, 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

About

Always living, HTTP echo container listening on port 80 and echoing environment variables passed to the container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published