No description
Find a file
2021-12-10 16:47:55 +01:00
.mvn/wrapper Initial 2021-12-09 11:13:59 +01:00
kustomize Refactor and documentation 2021-12-09 18:46:28 +01:00
manifests Refactor and documentation 2021-12-09 18:46:28 +01:00
src Initial 2021-12-09 11:13:59 +01:00
.gitignore Initial 2021-12-09 11:13:59 +01:00
mvnw Initial 2021-12-09 11:13:59 +01:00
mvnw.cmd Initial 2021-12-09 11:13:59 +01:00
pom.xml use v11 2021-12-09 13:02:32 +01:00
Readme.md add comment about second branch 2021-12-10 16:47:55 +01:00

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/instancetemplate to a new directory and edit kustomization.yaml to 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>