Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 962 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 962 Bytes

Hello Tanzu

How to build a docker image

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

image

/metrics is the prometheus endpoint

image

Connect to PostgreSQL

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

image