Install pack
CLI, then
./mvnw clean package -DskipTests
pack build ghcr.io/making/hello-tanzu --builder paketobuildpacks/builder:base
Run the docker image
docker run --rm -p 8080:8080 -m 768m ghcr.io/making/hello-tanzu
/metrics
is the prometheus endpoint
psql postgres -c 'CREATE DATABASE tanzu'
docker run --rm -p 8080:8080 -e "JDBC_URL=jdbc:postgresql://host.docker.internal:5432/tanzu?user=${USER}&password=${PASSWORD}" -m 768m ghcr.io/making/hello-tanzu