Browse Source

Replace Spotify dockerfile-maven-plugin with exec-maven-plugin

The com.spotify:dockerfile-maven-plugin:1.4.13 is deprecated and broken
on modern macOS (Apple Silicon) due to its Java HTTP client being
incompatible with current Docker Desktop socket/API.

Replace the Java-based plugin with exec-maven-plugin calling the docker
CLI directly — the same approach already used by the multiarch push
profiles (push-docker-amd-arm-images).

All existing Maven property contracts preserved:
- dockerfile.skip (default true) controls docker build
- push-docker-image profile for single-arch push
- push-docker-amd-arm-images profiles unchanged (already use exec)
pull/15139/head
Sergey Matvienko 6 months ago
parent
commit
ac96b4035b
  1. 58
      msa/edqs/pom.xml
  2. 58
      msa/js-executor/pom.xml
  3. 58
      msa/monitoring/pom.xml
  4. 15
      msa/pom.xml
  5. 58
      msa/tb-node/pom.xml
  6. 112
      msa/tb/pom.xml
  7. 58
      msa/transport/coap/pom.xml
  8. 58
      msa/transport/http/pom.xml
  9. 58
      msa/transport/lwm2m/pom.xml
  10. 58
      msa/transport/mqtt/pom.xml
  11. 58
      msa/transport/snmp/pom.xml
  12. 58
      msa/vc-executor-docker/pom.xml
  13. 58
      msa/web-ui/pom.xml

58
msa/edqs/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/js-executor/pom.xml

@ -146,33 +146,37 @@
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -222,29 +226,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/monitoring/pom.xml

@ -117,33 +117,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -161,29 +165,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

15
msa/pom.xml

@ -39,7 +39,7 @@
<docker.base.image>thingsboard/openjdk17:bookworm-slim</docker.base.image>
<dockerfile.skip>true</dockerfile.skip>
<blackBoxTests.skip>true</blackBoxTests.skip>
<dockerfile-maven.version>1.4.13</dockerfile-maven.version>
<exec-maven-plugin.version>3.5.1</exec-maven-plugin.version>
<docker.push-arm-amd-image.phase>none</docker.push-arm-amd-image.phase>
</properties>
@ -248,19 +248,12 @@
</profile>
</profiles>
<build>
<extensions>
<extension>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-extension</artifactId>
<version>${dockerfile-maven.version}</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>${dockerfile-maven.version}</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>

58
msa/tb-node/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

112
msa/tb/pom.xml

@ -159,61 +159,69 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-tb-postgres-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${tb-postgres.docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}/docker-postgres</contextDirectory>
<noCache>true</noCache>
<executable>docker</executable>
<workingDirectory>${project.build.directory}/docker-postgres</workingDirectory>
<arguments>
<argument>build</argument>
<argument>--no-cache</argument>
<argument>-t</argument>
<argument>${docker.repo}/${tb-postgres.docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-tb-postgres-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${tb-postgres.docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${tb-postgres.docker.name}:latest</argument>
<argument>${docker.repo}/${tb-postgres.docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>build-docker-tb-cassandra-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${tb-cassandra.docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}/docker-cassandra</contextDirectory>
<noCache>true</noCache>
<executable>docker</executable>
<workingDirectory>${project.build.directory}/docker-cassandra</workingDirectory>
<arguments>
<argument>build</argument>
<argument>--no-cache</argument>
<argument>-t</argument>
<argument>${docker.repo}/${tb-cassandra.docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-tb-cassandra-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${tb-cassandra.docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${tb-cassandra.docker.name}:latest</argument>
<argument>${docker.repo}/${tb-cassandra.docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -231,51 +239,55 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-tb-postgres-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${tb-postgres.docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${tb-postgres.docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-tb-postgres-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${tb-postgres.docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${tb-postgres.docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-latest-docker-tb-cassandra-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${tb-cassandra.docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${tb-cassandra.docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-tb-cassandra-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${tb-cassandra.docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${tb-cassandra.docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/transport/coap/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/transport/http/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/transport/lwm2m/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/transport/mqtt/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/transport/snmp/pom.xml

@ -117,33 +117,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -161,29 +165,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/vc-executor-docker/pom.xml

@ -116,33 +116,37 @@
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -160,29 +164,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

58
msa/web-ui/pom.xml

@ -193,33 +193,37 @@
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<verbose>true</verbose>
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<contextDirectory>${project.build.directory}</contextDirectory>
<executable>docker</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>tag-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>tag</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<skip>${dockerfile.skip}</skip>
<repository>${docker.repo}/${docker.name}</repository>
<tag>${project.version}</tag>
<executable>docker</executable>
<arguments>
<argument>tag</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
@ -269,29 +273,31 @@
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>push-latest-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>latest</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-version-docker-image</id>
<phase>pre-integration-test</phase>
<goals>
<goal>push</goal>
</goals>
<goals><goal>exec</goal></goals>
<configuration>
<tag>${project.version}</tag>
<repository>${docker.repo}/${docker.name}</repository>
<executable>docker</executable>
<arguments>
<argument>push</argument>
<argument>${docker.repo}/${docker.name}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>

Loading…
Cancel
Save