This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
145 lines (134 loc) · 6.32 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?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>org.dukecon</groupId>
<artifactId>dukecon-keycloak-postgres</artifactId>
<version>1.4-SNAPSHOT</version>
<name>DukeCon KeyCloak Postgres Docker</name>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<base.folder>${project.basedir}</base.folder>
<http_proxy></http_proxy>
<docker.registry.host></docker.registry.host>
<docker.registry.port></docker.registry.port>
<!-- IMPORTANT: make the trailing slash part of the property to allow for easy replacement with an empty
registry url in the <name> parameters of the docker plugin configurations! -->
<docker.registry.url>${docker.registry.host}${docker.registry.port}</docker.registry.url>
<docker.generated.targetPath>${project.build.directory}/docker-generated</docker.generated.targetPath>
<docker.image.src.owner>jboss</docker.image.src.owner>
<docker.image.src.name>keycloak</docker.image.src.name>
<docker.image.src.version>8.0.1</docker.image.src.version>
<!-- For the owner either leave it empty or add the trailing slash! -->
<docker.image.tgt.owner>dukecon/</docker.image.tgt.owner>
<docker.image.tgt.name>dukecon-keycloak-postgres</docker.image.tgt.name>
<docker.image.tgt.version>${project.version}</docker.image.tgt.version>
<!-- Keep version properties in alphabetical order -->
<docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.dukecon</groupId>
<artifactId>keycloak-doag-user-spi</artifactId>
<version>1.2-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<defaultGoal>package</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/docker</directory>
<targetPath>${docker.generated.targetPath}</targetPath>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/docker-resources</directory>
<targetPath>${docker.generated.targetPath}</targetPath>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker-maven-plugin.version}</version>
<executions>
<execution>
<id>create-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<logStdout>true</logStdout>
<logAll>true</logAll>
<images>
<image>
<name>${docker.registry.url}${docker.image.tgt.owner}${docker.image.tgt.name}:${docker.image.tgt.version}</name>
<build>
<dockerFile>${docker.generated.targetPath}/Dockerfile</dockerFile>
<assembly>
<inline xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/3.2.0"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/3.2.0 http://maven.apache.org/xsd/assembly-3.2.0.xsd">
<id>mprm</id>
<dependencySets>
<dependencySet>
<includes>
<include>org.dukecon</include>
</includes>
<outputDirectory>providers</outputDirectory>
</dependencySet>
</dependencySets>
</inline>
</assembly>
</build>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>localregistry</id>
<properties>
<docker.registry.host>localhost</docker.registry.host>
<docker.registry.port>:5000/</docker.registry.port>
</properties>
</profile>
<profile>
<id>localtest</id>
<properties>
<docker.image.src.name>keycloak</docker.image.src.name>
<docker.image.tgt.name>dukecon-keycloak</docker.image.tgt.name>
</properties>
</profile>
</profiles>
</project>