Sign inSign up

antonosmond/color

By antonosmond

Updated about 8 years ago

Serves a blank HTML page with a given background color

Image
0

747

antonosmond/color repository overview

color

Serves a blank HTML page with a given background color

Super simple NodeJS app which serves a blank HTML page with a given background color. This can be useful for quickly testing things like Docker/Kubernetes setups, load balancing, proxy configs etc.

Usage
Configuration

The following environment variables can be set:

  • PORT - the port on which the server listens (default: 8080)
Native
# node app.js [html-color] e.g.
node app.js blue
Docker
# docker run -ti -p [host_port]:[container_port] antonosmond/color:latest [html-color] e.g.
docker run -ti -p 8080:8080 antonosmond/color:latest blue

Tag summary

Content type

Image

Digest

Size

23.2 MB

Last updated

about 8 years ago

docker pull antonosmond/color