deploy spring boot

Infrastructure setup by kamkie


deploy spring boot

install openjdk18-web-basic-s2i template

blog post

./import-java8-template.sh

deploy playground-api

oc new-app openshift/openjdk18-web-basic-s2i~https://github.com/lukaszjdrzewiecki/playground-api.git
oc expose svc/playground-api

curl -v -L $(oc get route/playground-api --no-headers -o jsonpath='{.status.ingress[*].host}')/playground-api

deploy playground-frontend

oc new-app openshift/nodejs:6~https://github.com/kamkie/SimpleSchoolApp.git  -e DOCKER_BACKEND_API=http://$(oc get route/playground-api --no-headers -o jsonpath='{.status.ingress[*].host}')/playground-api
oc expose svc/simpleschoolapp

curl -v -L $(oc get route/simpleschoolapp --no-headers -o jsonpath='{.status.ingress[*].host}')/api

check version

curl -v -L $(oc get route/simpleschoolapp --no-headers -o jsonpath='{.status.ingress[*].host}')/api/info