Skip to content

making/hello-tanzu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

 
 
 

Languages