From 10812884187d4b5e0e5a96799b86366d002759cc Mon Sep 17 00:00:00 2001 From: Jonathan Christison Date: Mon, 12 Jun 2023 17:37:27 +0100 Subject: [PATCH] Hacky attempt at adding DB Dev services for local development --- pom.xml | 145 +++++++++------------- src/main/resources/application.properties | 5 +- 2 files changed, 60 insertions(+), 90 deletions(-) diff --git a/pom.xml b/pom.xml index a884d11..77233b1 100644 --- a/pom.xml +++ b/pom.xml @@ -1,14 +1,6 @@ - - - jboss - JBoss repository - http://repository.jboss.org/maven2 - - - 4.0.0 com.redhat.ncaughey rest-json-quickstart @@ -33,59 +25,35 @@ pom import - - - - - - - - io.quarkus - quarkus-openshift - - - org.json - json - 20220320 - - - - org.postgresql - postgresql - 42.6.0 - - - - - - - - org.hibernate - hibernate-core + + io.quarkus + quarkus-openshift + + + org.json + json + 20220320 + + + org.postgresql + postgresql + 42.6.0 - - org.glassfish.jaxb - jaxb-runtime + + org.hibernate + hibernate-core + + + org.glassfish.jaxb + jaxb-runtime + + + io.quarkus + quarkus-jdbc-postgresql - - - - - io.quarkus - quarkus-jdbc-postgresql - - io.quarkus quarkus-resteasy-reactive-jackson @@ -94,45 +62,44 @@ io.quarkus quarkus-arc + + io.quarkus + quarkus-agroal + io.quarkus quarkus-junit5 test - - org.projectlombok - lombok - 1.18.26 - provided - - - - - javax.validation - validation-api - 1.0.0.GA - - - - jakarta.persistence - jakarta.persistence-api - 3.1.0 - - - - - org.eclipse.microprofile.rest.client - microprofile-rest-client-api - 3.0.1 - - - - + + org.projectlombok + lombok + 1.18.26 + provided + + + javax.validation + validation-api + 1.0.0.GA + + + jakarta.persistence + jakarta.persistence-api + 3.1.0 + + + org.eclipse.microprofile.rest.client + microprofile-rest-client-api + 3.0.1 + + + + jboss + JBoss repository + http://repository.jboss.org/maven2 + + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index eca88b0..9de352c 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -4,4 +4,7 @@ # couchdb.name=scan-results # couchdb.url=https://localhost:5984 -# quarkus.hibernate-orm.database.generation=drop-and-create \ No newline at end of file +# quarkus.hibernate-orm.database.generation=drop-and-create +quarkus.datasource.devservices.enabled=true +quarkus.datasource.db-kind=postgresql +quarkus.datasource.devservices.volumes."/local/test/data"=/var/lib/postgresql/data