For local development Docker must be running. Otherwise you need to configure quarkus to work with podman You need to be logged-in on OCP in the right project.
- Install Red Hat Gitops Operator
2) Apply this policy
oc adm policy add-cluster-role-to-user cluster-admin -z openshift-gitops-argocd-application-controller -n openshift-gitops
- Grab the admin token
argoPass=$(oc get secret/openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin.password}' | base64 -d)
- Install Amq Streams Operator
- Install the sealed secret controller ( > oc apply -n kube-system -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.25.0/controller.yaml)
- Create an Argo Cd application to deploy the infra stuff pointing at: https://github.com/mcombi/store-demo-project.git path: store-common-config
To Enable monitoring , use the script in store-common-config/monitoring
For this demo, the quarkus applications will be deployed from the developer laptop with command: a) for a classic build :
mvn clean install -Dquarkus.kubernetes.deploy=true
b) for a native one:
mvn clean install -Dquarkus.kubernetes.deploy=true -Dnative
The spring boot application will be deployed via dev tools in ocp, via Add from Git and go with the default options
To run the spring boot application locally: run containers creation in folder local_dev_tool
mvn spring-boot:run -Dspring-boot.run.profiles=dev
To add an extension: For example in prokect quarkus-store-project
mvn quarkus:add-extension -Dextensions='quarkus-smallrye-openapi'
Then go to Order Resource and decomment the commented code live
- Make sure that you have installed the infra stuff. As the store project contains a datasource that points to a service called postgresql.store-demo-test.svc.cluster.local, at the moment the infra stuff must be in a namespace called store-demo-test