Sign inSign up

dracoblue/static-response-exporter

By dracoblue

•Updated over 6 years ago

Run a webserver and return static response configurable by environment variables.

Image
0

378

dracoblue/static-response-exporter repository overview

⁠static-response-exporter

Sometimes all you want to do is exporting a specific environment variable dependent on set of text responses.

⁠Usage

If you want to use docker-compose.yml to try it, use:

version: "2.0"
services:
  root:
    image: dracoblue/static-response-exporter
    environment:
     - "STATIC_RESPONSE_CONTENT=Hi"
    ports:
      - 8080:80

Now you can curl it at 8080:

$ curl localhost:8080
Hi

⁠License

This work is copyright by DracoBlue (http://dracoblue.net⁠) and licensed under the terms of MIT License.

Tag summary

Content type

Image

Digest

Size

8.8 MB

Last updated

over 6 years ago

docker pull dracoblue/static-response-exporter