diff --git a/pom.xml b/pom.xml index 9924ba73..11ab9d20 100644 --- a/pom.xml +++ b/pom.xml @@ -160,6 +160,14 @@ 4.1.78.Final 5.11.2 1.5.0 + localhost + postgres + postgres + postgres + postgres:12.0 + +pg.ip:pg.port:5432 + PostgreSQL init process complete + 60000 @@ -720,26 +728,38 @@ - com.gitlab.janecekpetr - embedded-postgresql-maven-plugin - 0.1.0 + io.fabric8 + docker-maven-plugin + 0.42.0 - 15432 - postgres - postgres - postgres + pg-mod-oai-pmh-generate-%i + + + + properties + postgres.docker + + + - start-pgsql - initialize + stop-previous-database + generate-sources + + stop + + + + prepare-database + generate-sources start - stop-pgsql - compile + stop-database + process-sources stop @@ -754,7 +774,7 @@ src/main/resources/liquibase/tenant/changelog.xml org.postgresql.Driver - jdbc:postgresql://localhost:15432/postgres + jdbc:postgresql://${pg.ip}:${pg.port}/postgres postgres postgres @@ -809,7 +829,7 @@ org.postgresql.Driver - jdbc:postgresql://localhost:15432/postgres + jdbc:postgresql://${pg.ip}:${pg.port}/postgres postgres postgres