Try to use docker build arguments

This commit is contained in:
cagache
2019-10-15 08:17:48 +03:00
parent c010e05e94
commit 855212c761

12
pom.xml
View File

@@ -253,6 +253,9 @@
<!-- Profile used only to build docker images--> <!-- Profile used only to build docker images-->
<profile> <profile>
<id>buildDockerImage</id> <id>buildDockerImage</id>
<properties>
<docker.buildArg.TOMCAT_DIR>/usr/local/tomcat</docker.buildArg.TOMCAT_DIR>
</properties>
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
@@ -289,6 +292,9 @@
<!-- Profile used to build docker images with a specific tag and push them to the given image registry (quay.io)--> <!-- Profile used to build docker images with a specific tag and push them to the given image registry (quay.io)-->
<profile> <profile>
<id>internal</id> <id>internal</id>
<properties>
<docker.buildArg.TOMCAT_DIR>/usr/local/tomcat</docker.buildArg.TOMCAT_DIR>
</properties>
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
@@ -327,6 +333,9 @@
hub.docker --> hub.docker -->
<profile> <profile>
<id>master</id> <id>master</id>
<properties>
<docker.buildArg.TOMCAT_DIR>/usr/local/tomcat</docker.buildArg.TOMCAT_DIR>
</properties>
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
@@ -371,6 +380,9 @@
<!-- Profile used to build and push docker images with project.version tag to hub.docker when the enterprise deploy goal encounters--> <!-- Profile used to build and push docker images with project.version tag to hub.docker when the enterprise deploy goal encounters-->
<profile> <profile>
<id>release-enterprise</id> <id>release-enterprise</id>
<properties>
<docker.buildArg.TOMCAT_DIR>/usr/local/tomcat</docker.buildArg.TOMCAT_DIR>
</properties>
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>