File tree Expand file tree Collapse file tree 6 files changed +65
-8
lines changed
java/password/pwm/receiver Expand file tree Collapse file tree 6 files changed +65
-8
lines changed Original file line number Diff line number Diff line change 24
24
<skipTests >false</skipTests >
25
25
<maven .build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven .build.timestamp.format>
26
26
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
27
+ <skipDocker >false</skipDocker >
27
28
</properties >
28
29
29
30
<profiles >
31
+ <profile >
32
+ <id >skip-docker</id >
33
+ <properties >
34
+ <skipDocker >true</skipDocker >
35
+ <dockerImageTag >pwm/pwm-data-service</dockerImageTag >
36
+ </properties >
37
+ </profile >
30
38
</profiles >
31
39
32
40
<build >
87
95
<artifactId >maven-clean-plugin</artifactId >
88
96
<version >3.1.0</version >
89
97
</plugin >
98
+
99
+ <plugin >
100
+ <groupId >com.google.cloud.tools</groupId >
101
+ <artifactId >jib-maven-plugin</artifactId >
102
+ <version >3.2.0</version >
103
+ <executions >
104
+ <execution >
105
+ <id >make-docker-image</id >
106
+ <phase >package</phase >
107
+ <goals >
108
+ <goal >buildTar</goal >
109
+ </goals >
110
+ <configuration >
111
+ <skip >${skipDocker} </skip >
112
+ <from >
113
+ <image >tomcat:9.0-jdk17-temurin</image >
114
+ </from >
115
+ <to >
116
+ <image >pwm/pwm-data-service</image >
117
+ <tags >
118
+ <tag >${project.version} </tag >
119
+ <tag >latest</tag >
120
+ </tags >
121
+ </to >
122
+ <outputPaths >
123
+ <tar >target/pwm-data-service-docker-image-${project.version} .tar</tar >
124
+ </outputPaths >
125
+ <container >
126
+ <appRoot >/usr/local/tomcat/webapps/ROOT</appRoot >
127
+ <environment >
128
+ <DATA_SERVICE_PROPS >/config/data-service.properties</DATA_SERVICE_PROPS >
129
+ </environment >
130
+ <creationTime >${git.commit.time} </creationTime >
131
+ <filesModificationTime >${git.commit.time} </filesModificationTime >
132
+ <volumes >
133
+ <volume >/config</volume >
134
+ </volumes >
135
+ </container >
136
+ </configuration >
137
+ </execution >
138
+ </executions >
139
+ </plugin >
90
140
</plugins >
91
141
</build >
92
142
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ public class PwmReceiverApp
34
34
private static final String ENV_NAME = "DATA_SERVICE_PROPS" ;
35
35
36
36
private Storage storage ;
37
- private ScheduledExecutorService scheduledExecutorService = Executors .newSingleThreadScheduledExecutor ();
38
37
private Settings settings ;
39
- private Status status = new Status ();
38
+
39
+ private final ScheduledExecutorService scheduledExecutorService = Executors .newSingleThreadScheduledExecutor ();
40
+ private final Status status = new Status ();
40
41
41
42
public PwmReceiverApp ( )
42
43
{
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class TelemetryViewerServlet extends HttpServlet
46
46
@ Override
47
47
protected void doGet ( final HttpServletRequest req , final HttpServletResponse resp ) throws ServletException , IOException
48
48
{
49
- LOGGER .debug ( "htttp request for viewer" );
49
+ LOGGER .debug ( "http request for viewer" );
50
50
final String daysString = req .getParameter ( PARAM_DAYS );
51
51
final int days = StringUtil .isEmpty ( daysString ) ? 30 : Integer .parseInt ( daysString );
52
52
final ContextManager contextManager = ContextManager .getContextManager ( req .getServletContext () );
Original file line number Diff line number Diff line change 19
19
~ limitations under the License.
20
20
-->
21
21
22
- <web-app xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
23
- xmlns =" http://java.sun.com/xml/ns/javaee"
24
- xsi : schemaLocation =" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
25
- id =" PWM" version =" 3.0" >
22
+ <web-app xmlns =" http://xmlns.jcp.org/xml/ns/javaee"
23
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
24
+ xsi : schemaLocation =" http://xmlns.jcp.org/xml/ns/javaee
25
+ http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
26
+ version =" 3.1"
27
+ id =" PWM-Data-Service" >
26
28
<display-name >PWM Data Service</display-name >
27
29
<!-- <distributable/> Clustering/Session replication is not supported -->
28
30
<description >Password Management Servlet - Data Service</description >
Original file line number Diff line number Diff line change 16
16
<name >PWM Password Self Service: Docker Image</name >
17
17
18
18
<properties >
19
+ <dockerImageTag >pwm/pwm-webapp</dockerImageTag >
19
20
<skipDocker >false</skipDocker >
20
21
</properties >
21
22
48
49
</from >
49
50
<to >
50
51
<image >${dockerImageTag} </image >
52
+ <tags >
53
+ <tag >latest</tag >
54
+ <tag >${project.version} </tag >
55
+ </tags >
51
56
</to >
52
57
<outputPaths >
53
58
<tar >target/pwm-docker-image-${project.version} .tar</tar >
Original file line number Diff line number Diff line change 24
24
25
25
<properties >
26
26
<warArtifactID >pwm-${project.version}.war</warArtifactID >
27
- <dockerImageTag >pwm/pwm-webapp</dockerImageTag >
28
27
29
28
<build .number>0</build .number> <!-- default in case not set on command line -->
30
29
<build .revision>0</build .revision> <!-- default in case not set on command line -->
You can’t perform that action at this time.
0 commit comments