- Create an UberJar to deploy on Minishift
- Use MicroProfile
#Howto
- Create a build config from binary.
oc new-build redhat-openjdk18-openshift:1.2 --name=microprofile-producer --strategy=source --binary
- Kick the build for the new jar
oc start-build microprofile-producer --from-file=target/microprofile-producer-thorntail.jar -F
- Start the app
oc new-app microprofile-producer
- Expose using
oc expose service/microprofile-producer
- View the route using
oc get route microprofile-producer
- Retrigger builds
mvn clean package && oc start-build microprofile-producer --from-file=target/microprofile-producer-thorntail.jar -F
#Reference openshift java s2i java 11 builder Running java 11 on openshift Binary builds Openshift pipeline Decreasing run time using caching