This repository has been archived by the owner on Nov 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpom.xml
executable file
·110 lines (105 loc) · 4.82 KB
/
pom.xml
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
106
107
108
109
110
<?xml version="1.0" encoding="UTF-8"?>
<!--
Before attempting to build Docker images, the DOCKER_HOST environment
variable needs to be set to the local Docker client URL:
Windows: set DOCKER_HOST=http://192.168.99.100:2376
OS X Boot2Docker: export DOCKER_HOST=tcp://192.168.99.100:2376
OS X Docker for Mac: http://localhost:2376
To build a Docker image with Mule CE using, for example, the following command:
mvn dockerfile:build -Pmule-3.8.1
Author: Ivan Krizsan
-->
<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>
<groupId>se.ivankrizsan.docker.mule</groupId>
<artifactId>mule-docker</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>mule-docker</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Version of theFabric8 Docker Maven plugin. -->
<docker-maven-plugin.version>0.21.0</docker-maven-plugin.version>
<!-- URL to the Docker host used to build the Docker image. -->
<docker.host.url>http://127.0.0.1:2376</docker.host.url>
<!-- Name of the Dockerfile the Docker image will be built from. -->
<docker.file.name>Dockerfile</docker.file.name>
<!--Log output during creation of Docker image to standard out. -->
<docker.verbose>true</docker.verbose>
</properties>
<profiles>
<!-- Builds Mule CE version 3.7.0 Docker image. -->
<profile>
<id>mule-3.7.0</id>
<properties>
<!-- Name of Docker image that will be built. -->
<docker.image.name>ivankrizsan/mule-docker</docker.image.name>
<!-- Tag of Docker image that will be built. -->
<docker.image.tag>3.7.0</docker.image.tag>
<!-- Directory in which the Dockerfile is located. -->
<docker.image.src.root>${project.basedir}/mule370</docker.image.src.root>
</properties>
</profile>
<!-- Builds Mule CE version 3.8.1 Docker image. -->
<profile>
<id>mule-3.8.1</id>
<properties>
<!-- Name of Docker image that will be built. -->
<docker.image.name>ivankrizsan/mule-docker</docker.image.name>
<!-- Tag of Docker image that will be built. -->
<docker.image.tag>3.8.1</docker.image.tag>
<!-- Directory in which the Dockerfile is located. -->
<docker.image.src.root>${project.basedir}/mule381</docker.image.src.root>
</properties>
</profile>
<!-- Builds Mule CE version 3.9.0 Docker image. -->
<profile>
<id>mule-3.9.0</id>
<properties>
<!-- Name of Docker image that will be built. -->
<docker.image.name>ivankrizsan/mule-docker</docker.image.name>
<!-- Tag of Docker image that will be built. -->
<docker.image.tag>3.9.0</docker.image.tag>
<!-- Directory in which the Dockerfile is located. -->
<docker.image.src.root>${project.basedir}/mule390</docker.image.src.root>
</properties>
</profile>
<!-- Builds Mule CE version 4.0.0 Docker image. -->
<profile>
<id>mule-4.0.0</id>
<properties>
<!-- Name of Docker image that will be built. -->
<docker.image.name>ivankrizsan/mule-docker</docker.image.name>
<!-- Tag of Docker image that will be built. -->
<docker.image.tag>4.0.0</docker.image.tag>
<!-- Directory in which the Dockerfile is located. -->
<docker.image.src.root>${project.basedir}/mule400</docker.image.src.root>
</properties>
</profile>
</profiles>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker-maven-plugin.version}</version>
<configuration>
<dockerHost>${docker.host.url}</dockerHost>
<images>
<image>
<name>${docker.image.name}:${docker.image.tag}</name>
<build>
<dockerFile>${docker.image.src.root}/Dockerfile</dockerFile>
</build>
</image>
</images>
</configuration>
</plugin>
</plugins>
</build>
</project>