Basic Springboot Demo
- Install Openshift on localhost: https://developers.redhat.com/openshift/local-openshift/
- Create a starter project: https://start.spring.io/
- Build the application:
mvn clean package
- Log into your Openshift instance:
oc login --token=XXXXXXXXXXXXXXXXXXXX --server=https://api.crc.testing:6443
- Create binary build:
oc new-app registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift~https://github.com/phillip-kruger/springboot-introduction.git --name=springboot
- Expose the HTTP endpoint:
oc expose svc/springboot
- Check the rollout status:
oc rollout status -w dc/springboot