Skip to content

redhat-developer-demos/quarkus-petclinic

Repository files navigation

Quarkus Petclinic project

Run Locally

Create css

./mvnw compile -Pcss

Dev mode

./mvnw compile quarkus:dev

Production jar

Start docker container:

docker run --rm=true -e POSTGRES_USER=petclinic -e POSTGRES_PASSWORD=petclinic -e POSTGRES_DB=petclinic -p 5432:5432 postgres:14

Start the application:

java -Dquarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/petclinic -Dquarkus.datasource.username=petclinic -Dquarkus.datasource.password=petclinic -jar target/quarkus-app/quarkus-run.jar

Kubernetes

./db.sh

./petclinic.sh

Create a new Container

Need to have an account to quay.io with writting permissions to rhdevelopers org.

./mvnw package -DskipTests -Dquarkus.container-image.push=true