Skip to content

imurata/hello-tanzu

 
 

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

No packages published

Languages

  • Java 98.3%
  • Dockerfile 1.7%