Push the images needed to the internal registry (**This operation should be done on a machine whose cpu architecture matches the one where the cluster is running. For ex: if the cluster is on ppc64le, download the images on a power machine and push it to the cluster internal registry)
If you are using podman on your local laptop
podman login
oc new-project build-strategies
oc apply -f imagestream.yaml
oc apply -f buildconfig-dockerbuild.yaml
oc start-build build-bc
oc apply -f deployment.yaml
oc apply -f service.yaml
oc apply -f route.yaml
curl "http://$(oc get routes build-rt -o jsonpath='{.spec.host}')/basicop/add?n1=100&n2=200"
oc delete -f route.yaml
oc delete -f service.yaml
oc delete -f deployment.yaml
oc delete -f buildconfig-binarybuild.yaml
oc delete -f imagestream.yaml
oc new-project build-strategies
oc apply -f imagestream.yaml
oc apply -f buildconfig-binarybuild.yaml
oc start-build build-bc --from-dir=../apps/Simple-SpringBoot-App/
oc apply -f deployment.yaml
oc apply -f service.yaml
oc apply -f route.yaml
curl "http://$(oc get routes build-rt -o jsonpath='{.spec.host}')/basicop/add?n1=100&n2=200"
oc delete -f route.yaml
oc delete -f service.yaml
oc delete -f deployment.yaml
oc delete -f buildconfig-binarybuild.yaml
oc delete -f imagestream.yaml
oc new-project build-strategies
Push the images needed to the internal registry (**This operation should be done on a machine whose cpu architecture matches the one where the cluster is running. For ex: if the cluster is on ppc64le, download the images on a power machine and push it to the cluster internal registry)
oc apply -f imagestream.yaml
oc apply -f buildconfig-binarybuild-internal-registry.yaml
oc start-build build-bc --from-dir=../apps/Simple-SpringBoot-App/
oc apply -f deployment.yaml
oc apply -f service.yaml
oc apply -f route.yaml
curl "http://$(oc get routes build-rt -o jsonpath='{.spec.host}')/basicop/add?n1=100&n2=200"
oc delete -f route.yaml
oc delete -f service.yaml
oc delete -f deployment.yaml
oc delete -f buildconfig-binarybuild.yaml
oc delete -f imagestream.yaml