Demo project for Spring Boot with Postgresql & Service Bindings
Test 5
docker run --name postgres -e POSTGRES_PASSWORD=admin -p 5432:5432 -d postgres
http :8080
http POST :8080/create name=Andrea
tanzu apps config create spring-boot-postgres-01 \
--namespace default \
--git-repo https://github.com/joostvdg/spring-boot-postgres.git \
--git-branch main \
--type web \
--label app.kubernetes.io/part-of=spring-boot-spring-01 \
--build-env BP_JVM_VERSION=17 \
--yes
tanzu apps config create spring-boot-postgres-01 \
--namespace default \
--git-repo https://github.com/joostvdg/spring-boot-postgres.git \
--git-branch main \
--type web \
--label app.kubernetes.io/part-of=spring-boot-spring-01 \
--annotation autoscaling.knative.dev/minScale=1 \
--build-env BP_JVM_VERSION=17 \
--service-ref db=services.apps.tanzu.vmware.com/v1alpha1:ResourceClaim:azure-psql-claim-01 \
--yes