Commit 833490b2 authored by ipatini's avatar ipatini
Browse files

EMS: Control Service: Modified EMS parent 'pom.xml' to make Docker image tag...

EMS: Control Service: Modified EMS parent 'pom.xml' to make Docker image tag configurable through 'docker-image-tag' property, read from '.dev-local-docker-image-build' file or defined in control-service/pom.xml properties.
parent 96e9f232
Pipeline #20866 passed with stages
in 14 minutes and 18 seconds
......@@ -43,7 +43,8 @@
<!-- io.fabricat8 docker-maven-plugin properties -->
<docker-maven-plugin.version>0.39.1</docker-maven-plugin.version>
<docker-maven-plugin.imageName>ems-server:2022-apr</docker-maven-plugin.imageName>
<docker-maven-plugin.imageName>ems-server</docker-maven-plugin.imageName>
<!--<docker-image-tag>2022-devel</docker-image-tag>-->
</properties>
<dependencies>
......@@ -541,6 +542,46 @@
</activation>
<build>
<plugins>
<!-- Read docker plugin settings from properties file -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
</execution>
</executions>
<configuration>
<!--<keyPrefix>dev-</keyPrefix>-->
<files>
<file>../.dev-local-docker-image-build</file>
</files>
</configuration>
</plugin>
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Print Docker image dev properties</echo>
<echo>Image Tag: "${docker-image-tag}"</echo>
</target>
</configuration>
</execution>
</executions>
</plugin>-->
<!-- Turn off com.spotify:docker-maven-plugin (same as 'without-docker' profile -->
<plugin>
<groupId>com.spotify</groupId>
......@@ -605,7 +646,7 @@
<useColor>true</useColor>
<images>
<image>
<name>${docker-maven-plugin.imageName}</name>
<name>${docker-maven-plugin.imageName}:${docker-image-tag}</name>
<build>
<contextDir>${project.build.directory}/docker-context</contextDir>
</build>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment