Spring boot app with environment variable
1.1K
This image is a simple spring boot application that have 2 basic environment variable
To run this image
docker run -d -p 8080:8080 llsjllsj/demo-spring-boot
To run this image with environment variable
docker run -d -p 8080:8080 llsjllsj/demo-spring-boot -e db.username='admin' -e db.password='password'
Create single pod - without a deployment:
$ kubectl run demo-spring-boot --image=llsjllsj/demo-spring-boot
Create a deployment:
$ kubectl create deployment demo-spring-boot --image=llsjllsj/demo-spring-boot
Note: You can pass additional parameter --namespace=<your-desired-namespace> to the above kubectl commands.
Hello Jay DevOps
{"db_user":"admin","db_password":"password"}
Content type
Image
Digest
Size
242.8 MB
Last updated
about 5 years ago
docker pull llsjllsj/demo-spring-boot