-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
108 lines (88 loc) · 3.68 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
<?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>
<groupId>com.az.ms</groupId>
<artifactId>starter</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Infrastructure EcoSystem</name>
<properties>
<docker-plugin.version>0.22.1</docker-plugin.version>
<gmaven-plugin.version>1.0</gmaven-plugin.version>
</properties>
<repositories>
<repository>
<id>spring-libs-snapshot</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/libs-snapshot</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker-plugin.version}</version>
<configuration>
<authConfig>
<pull>
<username>username</username>
<password>password</password>
</pull>
</authConfig>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven-plugin.version}</version>
<executions>
<execution>
<id>groovy-magic</id>
<phase>package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
def yamls = [
'mysql/k8s.yaml',
'elk/elasticsearch/k8s.yaml',
'elk/kibana/k8s.yaml',
'elk/logstash/k8s.yaml',
'springeureka/k8s.yaml',
'springrest/k8s.yaml',
'springzuul/k8s.yaml'
];
def folder = new File('k8s');
def resFile = '';
for (yaml in yamls) {
File f = new File(yaml)
if (f.exists() ) {
resFile += f.text
resFile += "\n---\n"
}
}
if (!resFile.isEmpty()) {
if( !folder.exists() ) {
folder.mkdirs()
}
def ymlFile = new File( 'k8s/deploy-all.yml')
ymlFile.write resFile
}
</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<modules>
<module>elk</module>
<module>mysql</module>
<module>springeureka</module>
<module>springrest</module>
<module>springzuul</module>
</modules>
</project>