Build command
mvn clean package
Test command
mvm verify
Deploy application container env in docker use compose
docker-compose build
docker-compose up
Destroy application env
docker-compose down
Local application url: http://localhost:8080/swagger-ui/index.html
- https://github.com/kostakoff/spring-application-template/pkgs/container/spring-application-template
- https://github.com/kostakoff/spring-application-template/actions
This deploy will pull follow docker images:
- nginx form docker-hub: docker.io/kostakoff/rocky-base-images:8-nginx
- application from github: ghcr.io/kostakoff/spring-application-template:latest
Deployment:
- go to deployment folder
cd ./Deployment
- render helm chart
helm template my-application ./my-application -f ./my-application/values-secrets.yaml
- install helm chart
helm install my-application ./my-application -f ./my-application/values-secrets.yaml
- update deploy
helm upgrade --install my-application ./my-application -f ./my-application/values-secrets.yaml
- remove helm chart
helm uninstall my-application
Link for microk8s: https://application.k8s.localhost/swagger-ui/index.html