A lightweight Python Flask application designed for Docker, Kubernetes, and DevOps learning.
1.7K
A lightweight Python Flask application designed for Docker, Kubernetes, and DevOps learning. This container returns runtime metadata such as environment variables and container hostname, making it ideal for teaching microservices, scaling, and container networking fundamentals.
| Tag | Description |
|---|---|
| latest | Most updated version |
| v1.0.0 | Stable release used in the course |
| stable | Safest version for beginners |
Pull the image:
docker pull embarkx/hello-python:latest
Run the container:
docker run -p 3000:3000 embarkx/hello-python
Visit:
The root endpoint (/) returns JSON:
{
"message": "Hello from Simple App (Python Flask)",
"env": "<value of ENV_VALUE>",
"container": "<container-hostname>"
}
This demonstrates:
| Variable | Default | Description |
|---|---|---|
| ENV_VALUE | No env set | Custom message from environment |
| PORT | 3000 | Port the application listens on |
Example:
docker run -p 4000:4000 \
-e PORT=4000 \
-e ENV_VALUE="Running in Docker" \
embarkx/hello-python
3000
services:
hello-python:
image: embarkx/hello-python:stable
ports:
- "3000:3000"
environment:
ENV_VALUE: "Hello from Docker Compose"
PORT: 3000
Detached mode:
docker run -d -p 3000:3000 embarkx/hello-python
Change port:
docker run -p 5000:5000 \
-e PORT=5000 \
embarkx/hello-python
docker build -t embarkx/hello-python .
Content type
Image
Digest
sha256:577328339…
Size
46.6 MB
Last updated
10 months ago
docker pull embarkx/hello-python