No description
- Java 100%
| .mvn/wrapper | ||
| kustomize | ||
| manifests | ||
| src | ||
| .gitignore | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||
| Readme.md | ||
Hello World in Spring Boot on OKD / OpenShift
This repo is meant as template or boilerplate for development of SpringBoot applications on OpenShift / OKD 4.x.
The ./manifest directory is for reference and learning only, you should work with the ./kustomize directory ;-).
OpenShift / OKD 4.x
Go to your Project with oc project mypersonalproject
Build
- create a BuildConfig and an ImageStream with:
kustomize build ./kustomize/openshift-build | oc apply -f - - start a new build:
oc start-build springhelloworld -F
Deploy App
- copy the content of
kustomize/instancetemplateto a new directory and editkustomization.yamlto your likes. - run the deployment via kustomize
kustomize build mycopiedinstancetemplatedirectory | oc apply -f - - you now have a running instance (look for the route ;-) )
ToDo
There's a second configuration with PostgreSQL as DB container, but the springboot container terminates silently at the moment. The config is in branch: pgsql :-(
peter pfläging <peter@pflaeging.net>