Build vollständig in Docker verschoben – reproduzierbarer & unabhängiger Build-Prozess#213
Open
pfichtner wants to merge 1 commit intohaumacher:masterfrom
Open
Build vollständig in Docker verschoben – reproduzierbarer & unabhängiger Build-Prozess#213pfichtner wants to merge 1 commit intohaumacher:masterfrom
pfichtner wants to merge 1 commit intohaumacher:masterfrom
Conversation
…- und JDK-Version
30d61e3 to
6738e72
Compare
Author
|
Das so gebaute Image enthält keine wav Dateien, aber ich habe im bestehenden Dockerfile auch nichts gesehen, was diese in das Image kopiert hätte. Mir ist nicht klar, wie das Image |
pfichtner
commented
Oct 31, 2025
| </settings>" > /root/.m2/settings.xml | ||
|
|
||
| # Clone and install the missing dependency, see https://github.com/haumacher/phoneblock/issues/202 --- | ||
| RUN git clone https://github.com/haumacher/java-utils-mail-dkim.git /tmp/java-utils-mail-dkim && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Das Dockerfile wurde so angepasst, dass der gesamte Build-Prozess innerhalb von Docker abläuft. Das bedeutet, dass auf dem Hostsystem keine Installation von Java, Maven oder anderen Build-Tools erforderlich ist.
Vorteile:
Herausforderungen und Lösungen
docker build -f phoneblock-ab/Dockerfile --build-arg GITHUB_USER="$GITHUB_USER" --build-arg GITHUB_TOKEN="$GITHUB_TOKEN" -t phoneblock-ab .org.simplejavamail:utils-mail-dkim:3.2.1-haumacher, https://github.com/haumacher/java-utils-mail-dkim.git stellt aberorg.simplejavamail:utils-mail-dkim:3.2.0bereit --> patchen der POM während des Buildsorg.simplejavamail:utils-mail-dkim:3.2.1-haumacher, SpotBugs-Plugin konnte Class Files mit „major version 61“ (Java 17) nicht lesen --> SpotBugs wird beim DKIM-Build übersprungen (-Dspotbugs.skip=true).