An open API service indexing awesome lists of open source software.

https://github.com/jcmoraisjr/hello

Very small test image for clusters (Kubernetes) as well as standalone (Docker) container installations
https://github.com/jcmoraisjr/hello

Last synced: 3 months ago
JSON representation

Very small test image for clusters (Kubernetes) as well as standalone (Docker) container installations

Awesome Lists containing this project

README

        

#Hello

A very small (download < 5MiB) image with Alpine Linux, TZ data, Lighttpd and Bash used to test deployments on clusters (Kubernetes) as well as standalone (Docker) container installations.

[![Docker Repository on Quay](https://quay.io/repository/jcmoraisjr/hello/status "Docker Repository on Quay")](https://quay.io/repository/jcmoraisjr/hello)

#So what

Container's hostname, timezone, remote address including X-Forwarded-For header (if provided), ip address and so on. All of them are provided in a single html page.

Nice for tests.

#Usage

Run:

docker run -d -p 8080:8080 quay.io/jcmoraisjr/hello

View:

http://localhost:8080

Environment variables are propagated:

docker run -d -e TZ=Europe/Monaco -p 8080:8080 quay.io/jcmoraisjr/hello

Another env var?

docker run -d -e VAR1='user agent:HTTP_USER_AGENT' -p 8080:8080 quay.io/jcmoraisjr/hello

Another command?

docker run -d -e CMD1='env vars:env' -p 8080:8080 quay.io/jcmoraisjr/hello

More than one env var or command? Define `VAR2`, `VAR3`, `CMD2`, `CMD3`, ...