Sign inSign up

mattias/env-api

By mattias

Updated about 7 years ago

A web service that expose its environment as json. What else do you need?

Image
0

135

mattias/env-api repository overview

env-api

A service exposing its environment variables.

Usage

Run application

$ docker run --rm --network=host -e color="#ff0000" env-api:latest
2019/09/11 19:51:50 Starting env-api application...
127.0.0.1 - - [11/Sep/2019:19:51:53 +0000] "GET / HTTP/1.1" 200 99

Result

$ curl -s http://localhost:8080 | jq
{
  "HOME": "/",
  "HOSTNAME": "zzz",
  "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  "color": "#ff0000"
}

Tag summary

Content type

Image

Digest

Size

5.5 MB

Last updated

about 7 years ago

docker pull mattias/env-api