GithubHelp home page GithubHelp logo

httpenv's Introduction

httpenv

Tiny HTTP server showing the environment variables on TCP 8888.

Lint Code Base Docker Build

Images for linux/x86_64 (amd64), linux/arm64 (v8), and linux/arm/v7

This can be used for various container learnings like how DNS round-robin works, rolling updates, etc. It can be easier to use than something large and resource hungary like elasticsearch, while still providing a way to check which container you're seeing in browser (or curl) by viewing the env vars it returns in HTTP.

Run it from Docker Hub on host port 8888:

docker run -d -p 8888:8888 bretfisher/httpenv

or from GitHub Container Registry (GHCR) with:

docker run -d -p 8888:8888 ghcr.io/bretfisher/httpenv

If you curl it, you should get back its environment variables, including the container name:

curl http://localhost:8888

{"HOME":"/root","HOSTNAME":"c9d8d26bda3a","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}```

httpenv's People

Contributors

bretfisher avatar dependabot[bot] avatar elimisteve avatar jpetazzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.