-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Updates to docker-maven-plugin configuration so M1 mac build runs (almost) clean with -Dstart-containers
#25648
Changes from 12 commits
770fb08
a1496dc
e10a640
cf3536b
3c0b0ab
9eb532d
cad5bdc
7a10cb3
e02fc93
5e35b6e
5803912
b8a699e
8156992
6ba6826
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
~ under the License. | ||
--> | ||
|
||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
@@ -148,8 +149,24 @@ | |
<configuration> | ||
<images> | ||
<image> | ||
<name>${mariadb.image}</name> | ||
<!-- Be aware when testing healthcheck scripts, caching of named images can cause apparently non-deterministic behaviour. | ||
Change the name if making changes. --> | ||
<name>healthcheck-${mariadb.image}</name> | ||
<alias>quarkus-test-mariadb</alias> | ||
<build> | ||
<from>${mariadb.image}</from> | ||
<healthCheck> | ||
<!-- The exact values for these aren't very important, but it is important they are there --> | ||
<interval>5s</interval> | ||
<timeout>3s</timeout> | ||
<startPeriod>5s</startPeriod> | ||
<retries>5</retries> | ||
<!-- Note that mysqladmin ping returns 0 even if the password is wrong--> | ||
<cmd> | ||
<shell>mysqladmin ping -h localhost || exit 1</shell> | ||
</cmd> | ||
</healthCheck> | ||
</build> | ||
<run> | ||
<network> | ||
<mode>bridge</mode> | ||
|
@@ -168,29 +185,28 @@ | |
<date>default</date> | ||
<color>cyan</color> | ||
</log> | ||
<!-- Speed things up a bit by not actually flushing writes to disk --> | ||
Speed things up a bit by not actually flushing writes to disk --> | ||
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. did you mean to remove this comment start? 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. I did not. :) |
||
<tmpfs>/var/lib/mysql</tmpfs> | ||
<wait> | ||
<!-- good docs found at: http://dmp.fabric8.io/#build-healthcheck --> | ||
<tcp> | ||
<mode>direct</mode> | ||
<ports> | ||
<port>3306</port> | ||
</ports> | ||
</tcp> | ||
<!-- good docs found at: http://dmp.fabric8.io/#start-wait --> | ||
<!-- the sqladmin check seems more reliable than a tcp check, especially with | ||
diverse container runtimes --> | ||
<healthy>true</healthy> | ||
<!-- Unfortunately booting MariaDB is slow, needs to set a generous timeout: --> | ||
<time>40000</time> | ||
</wait> | ||
<volumes> | ||
<bind> | ||
<volume>${project.basedir}/custom-mariadbconfig:/etc/mysql/conf.d:Z</volume> | ||
<volume> | ||
${project.basedir}/custom-mariadbconfig:/etc/mysql/conf.d${volume.access.modifier} | ||
</volume> | ||
</bind> | ||
</volumes> | ||
</run> | ||
</image> | ||
</images> | ||
<!--Stops all mariadb images currently running, not just those we just started. | ||
Useful to stop processes still running from a previously failed integration test run --> | ||
<!-- Stops all mariadb images currently running, not just those we just started. | ||
Useful to stop processes still running from a previously failed integration test run --> | ||
<allContainers>true</allContainers> | ||
</configuration> | ||
<executions> | ||
|
@@ -199,6 +215,7 @@ | |
<phase>compile</phase> | ||
<goals> | ||
<goal>stop</goal> | ||
<goal>build</goal> | ||
<goal>start</goal> | ||
</goals> | ||
</execution> | ||
|
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.
no diff ? remove from commit?
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.
Done, thank you!