Simple Spring Boot demo app for Docker, Kubernetes, and DevOps learning.
2.1K
A lightweight Spring Boot demo 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, service discovery, 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-spring:latest
Run the container:
docker run -p 8080:8080 embarkx/hello-spring
Visit:
The application exposes a root endpoint (/) returning JSON similar to:
{
"message": "Hello from Simple App (Spring Boot)",
"env": "<value of ENV_VALUE>",
"container": "<container-hostname>"
}
This helps demonstrate:
| Variable | Default | Description |
|---|---|---|
| ENV_VALUE | No env set | Message injected from environment |
Example:
docker run -p 8080:8080 \
-e ENV_VALUE="Running in Docker" \
embarkx/hello-spring
8080
services:
hello-spring:
image: embarkx/hello-spring:stable
ports:
- "8080:8080"
environment:
ENV_VALUE: "Hello from Docker Compose"
Detached mode:
docker run -d -p 8080:8080 embarkx/hello-spring
Custom port:
docker run -p 9090:9090 \
-e SERVER_PORT=9090 \
embarkx/hello-spring
docker build -t embarkx/hello-spring .
This image is maintained as part of the EmbarkX DevOps Learning Series. For issues or improvement requests, please use the GitHub issue tracker.
Content type
Image
Digest
sha256:40dbaf543…
Size
218.8 MB
Last updated
10 months ago
docker pull embarkx/hello-spring