docker-maven-plugin

fabric8 docker-maven-plugin: include additional tags on build

一个人想着一个人 提交于 2021-01-28 11:23:41
问题 I have the fabric8 docker-maven-plugin configured in my pom.xml as follows: <build> ... <plugins> ... <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>${docker.plugin.version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> <configuration> <images> <image> <name>${docker.image.prefix}/${project.artifactId}:%l</name> <build> <dockerFile>Dockerfile</dockerFile> <assembly>

Save Multiple docker images into one tar.gz file with maven fabric8 plugin

穿精又带淫゛_ 提交于 2019-12-11 07:22:03
问题 We are using io.fabric8:docker-maven-plugin:0.27.2 to build docker images. my maven project consist of 3 modules ( module1 , module2 and module3 ). Each module builds a docker image based on the dockerfile present within each module. Now, when I run mvn docker:save - I want to save all 3 docker images into one tar.gz file, myproject-1.0.0.tar.gz . Is it even possible with this plugin? My Project Structure: project |-module1 |-DockerFile1 |-pom.xml |-module2 |-DockerFile2 |-pom.xml |-module3 |