jbonofre commented on code in PR #1757:
URL: https://github.com/apache/activemq/pull/1757#discussion_r2924124721


##########
assembly/pom.xml:
##########
@@ -703,5 +703,105 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>docker</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>io.fabric8</groupId>
+            <artifactId>docker-maven-plugin</artifactId>
+            <version>0.45.1</version>
+            <configuration>
+              <images>
+                <image>
+                  <name>apache/activemq:${project.version}</name>
+                  <build>
+                    
<dockerFile>${project.basedir}/src/docker/Dockerfile</dockerFile>
+                    <contextDir>${project.basedir}/src/docker</contextDir>
+                    <args>
+                      
<activemq_dist>_TMP_/apache-activemq.tar.gz</activemq_dist>
+                    </args>
+                    <assembly>
+                      <name>_TMP_</name>
+                      <inline>
+                        <files>
+                          <file>
+                            
<source>${project.build.directory}/apache-activemq-${project.version}-bin.tar.gz</source>
+                            <destName>apache-activemq.tar.gz</destName>
+                            <outputDirectory>.</outputDirectory>
+                          </file>
+                        </files>
+                      </inline>
+                    </assembly>
+                  </build>
+                </image>
+              </images>
+            </configuration>
+            <executions>
+              <execution>
+                <id>docker-build</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>build</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>docker-deploy</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>io.fabric8</groupId>
+            <artifactId>docker-maven-plugin</artifactId>
+            <version>0.45.1</version>

Review Comment:
   We need the push for buildx to be able to do multi-platform images.
   
   That's the different between "local" (building the Docker image for the 
local host platform) and the "push" that actually do multi-platforms image 
(`linux/amd64` and `linux/arm64`).
   
   Good point for the plugin version, I will create a property to avoid the 
duplicate.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to