Application written in Spring boot to test pipelines using the gitlab workflow
https://github.com/mmumshad/simple-webapp-color for the idea about colors
Show a simple page with a color, the color is getted by an env var called MY_APP_COLOR
.
If this var is null or empty a random color is choosed from a list.
This endpoint contains a subendpoint called that show all the env variables
Has liveness and readiness endpoints for k8s
You can use this simple application or locally or with docker compose, or with k8s usign the helm chart.
Run the application usign this command
export MY_APP_COLOR=green && mvn spring-boot:run
In this way you are able to set a color as env variable and run a spring boot server (with tomcat)
Use the docker compose to run the application, be ware to set the env variables used by the application
helm dep update && sleep 1 && helm template -f values-dev.yaml \.
helm upgrade -i -n idpay -f values-dev.yaml devops-java-springboot-color \.