-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MODOAIPMH-433 - embedded-postgresql-maven-plugin -> docker-maven-plugin #301
base: master
Are you sure you want to change the base?
Changes from 12 commits
d77ea7c
866077c
598db20
73350da
634b71d
0ac2a2f
8f83566
7ee68ed
bf1596a
ece1264
351f32e
4d1bb1e
e4800cf
6a6c1b0
5b5967f
dc66670
dc5bfe5
fa014f2
83ea959
da227e5
38cf0af
0ad67a6
ddb1df4
db4c2bb
e534f69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,14 @@ | |
<netty.version>4.1.78.Final</netty.version> | ||
<mockserver-client-java.version>5.11.2</mockserver-client-java.version> | ||
<generate-marc-utils-version>1.5.0</generate-marc-utils-version> | ||
<postgres.docker.env.POSTGRES_DB>localhost</postgres.docker.env.POSTGRES_DB> | ||
<postgres.docker.envRun.POSTGRES_PASSWORD>postgres</postgres.docker.envRun.POSTGRES_PASSWORD> | ||
<postgres.docker.envRun.POSTGRES_USER>postgres</postgres.docker.envRun.POSTGRES_USER> | ||
<postgres.docker.log.prefix>postgres</postgres.docker.log.prefix> | ||
<postgres.docker.name>postgres:12.0</postgres.docker.name> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can We don't want vulnerable components in the build. |
||
<postgres.docker.ports.1>15432:5432</postgres.docker.ports.1> | ||
<postgres.docker.wait.log>PostgreSQL init process complete</postgres.docker.wait.log> | ||
<postgres.docker.wait.time>60000</postgres.docker.wait.time> | ||
</properties> | ||
|
||
<dependencies> | ||
|
@@ -720,25 +728,29 @@ | |
</plugin> | ||
|
||
<plugin> | ||
<groupId>com.gitlab.janecekpetr</groupId> | ||
<artifactId>embedded-postgresql-maven-plugin</artifactId> | ||
<version>0.1.0</version> | ||
<configuration> | ||
<pgServerPort>15432</pgServerPort> | ||
<dbName>postgres</dbName> | ||
<userName>postgres</userName> | ||
<password>postgres</password> | ||
</configuration> | ||
<groupId>io.fabric8</groupId> | ||
<artifactId>docker-maven-plugin</artifactId> | ||
<version>0.22.1</version> | ||
julianladisch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<executions> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before starting the database you need to clean up a left-over database from a previous run where a maven phase after prepare-database but before stop-database has failed:
|
||
<execution> | ||
<id>start-pgsql</id> | ||
<id>prepare-database</id> | ||
<phase>initialize</phase> | ||
julianladisch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<goals> | ||
<goal>start</goal> | ||
</goals> | ||
<configuration> | ||
julianladisch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<images> | ||
<image> | ||
<external> | ||
<type>properties</type> | ||
<prefix>postgres.docker</prefix> | ||
</external> | ||
</image> | ||
</images> | ||
</configuration> | ||
julianladisch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</execution> | ||
<execution> | ||
<id>stop-pgsql</id> | ||
<id>stop-database</id> | ||
<phase>compile</phase> | ||
julianladisch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<goals> | ||
<goal>stop</goal> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any usage of these variables. Can they be removed?