Skip to content

Allow configuring base docker image in DockerfileMojo (#2785) - #2839

Open
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:fix-dockerfile-image-param
Open

Allow configuring base docker image in DockerfileMojo (#2785)#2839
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:fix-dockerfile-image-param

Conversation

@Alwaysgaurav1

Copy link
Copy Markdown

Fixes #2785

Changes:

  • Add configurable @Parameter image (defaulting to eclipse-temurin:11-jre) in DockerfileMojo.java so assemblies targeting Java 17+ or custom runtimes can specify their base image.
  • Add DockerfileMojoTest.java unit test suite covering default and custom configurations.
  • Strengthen test-dockerfile integration test verification in verify.bsh.
  • Update karaf-maven-plugin.adoc documentation to describe image and command parameters, and fix an XML closing tag typo (<goal>docker</goal>).

- Add configurable 'image' parameter to DockerfileMojo defaulting to eclipse-temurin:11-jre
- Add DockerfileMojoTest covering default and custom configurations
- Strengthen test-dockerfile IT verification
- Update developer documentation with image and command parameters and fix XML typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hardcoded docker image at DockerfileMojo.java

1 participant