-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathpom.xml
More file actions
105 lines (91 loc) · 4.01 KB
/
pom.xml
File metadata and controls
105 lines (91 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.walmartlabs.concord</groupId>
<artifactId>parent</artifactId>
<version>2.38.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>com.walmartlabs.concord.docker</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<modules>
<module>base</module>
<module>ansible</module>
<module>agent</module>
<module>server</module>
<module>agent-operator</module>
</modules>
<properties>
<docker.skip>true</docker.skip>
<docker.maintainer>ibodrov@gmail.com</docker.maintainer>
<docker.namespace>walmartlabs</docker.namespace>
<docker.allowPull>true</docker.allowPull>
<concord.baseDir>/opt/concord</concord.baseDir>
<image.platforms>linux/amd64</image.platforms>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>docker-build</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>${docker.skip}</skip>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>-t</argument>
<argument>${docker.tagbase}:latest</argument>
<argument>-t</argument>
<argument>${docker.tagbase}:${project.version}</argument>
<argument>-f</argument>
<argument>${docker.file}</argument>
<argument>--build-arg=docker_namespace=${docker.namespace}</argument>
<argument>--build-arg=concord_version=${project.version}</argument>
<argument>--build-arg=jdk_version=${jdk.version}</argument>
<argument>--network</argument>
<argument>host</argument>
<argument>--platform=${image.platforms}</argument>
<argument>--load</argument>
<argument>--pull=${docker.allowPull}</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>docker</id>
<properties>
<docker.skip>false</docker.skip>
</properties>
</profile>
<profile>
<id>jdk17-aarch64</id>
<properties>
<image.platforms>linux/aarch64</image.platforms>
</properties>
</profile>
<profile>
<id>jdk21-aarch64</id>
<properties>
<image.platforms>linux/aarch64</image.platforms>
</properties>
</profile>
</profiles>
</project>