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
- Host: GitHub
- URL: https://github.com/jcmoraisjr/hello
- Owner: jcmoraisjr
- Created: 2016-11-06T11:07:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T09:26:48.000Z (over 8 years ago)
- Last Synced: 2025-01-20T14:50:11.530Z (5 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
[](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`, ...