Skip to content
Lex Emmens edited this page Oct 20, 2020 · 2 revisions

The plugin is available via Maven Central. Please refer to the badge on the homepage for the latest version. Global usage can be configured as follows:

  1. Ensure that there is a Dockerfile places in the module's root directory
  2. Configure the plugin in your pom file, like so:
<plugin>
    <groupId>nl.lexemmens</groupId>
    <artifactId>podman-maven-plugin</artifactId>
    <version>0.2.0</version>
    <configuration>
        <registries>
            <registry>registry.example.com</registry>
        </registries>
        <pushRegistry>registry.example.com</pushRegistry>
        <podman>
            <tlsVerify>true</tlsVerify>   
            <root>/path/to/a/folder</root>   
            <runroot>/path/to/a/folder</runroot>   
        </podman>
        <build>
            <name>your/image/name</name>
            <tags>
                <tag>${project.artifactId}</tag>
            </tags>
            
            <useMavenProjectVersion>true</useMavenProjectVersion>
            
            <labels>
                <label-x>label-x-value</label-x>
            </labels>
        </build>
    </configuration>
</plugin>

You can also call this plugin from the command line by invoking either of its Mojo's via mvn podman:build or mvn podman:push after running a mvn install.

Clone this wiki locally