Skip to content

Commit 7f659cc

Browse files
committed
Bump JLab Wildfly to v3.0.1
1 parent 1cae745 commit 7f659cc

3 files changed

Lines changed: 27 additions & 15 deletions

File tree

Dockerfile

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG BUILD_IMAGE=gradle:9-jdk21
2-
ARG RUN_IMAGE=jeffersonlab/wildfly:2.2.0
2+
ARG RUN_IMAGE=jeffersonlab/wildfly:3.0.1
33

44
################## Stage 0
55
FROM ${BUILD_IMAGE} AS builder
@@ -18,5 +18,26 @@ RUN cd /app && gradle build -x test --no-watch-fs $OPTIONAL_CERT_ARG
1818
################## Stage 1
1919
FROM ${RUN_IMAGE} AS runner
2020
COPY --from=builder /app/container/app/app-setup.env /
21-
RUN /app-setup.sh /app-setup.env
22-
COPY --from=builder /app/build/libs/* /opt/jboss/wildfly/standalone/deployments
21+
USER root
22+
RUN /server-setup.sh /app-setup.env wildfly_start_and_wait \
23+
&& /app-setup.sh /app-setup.env config_keycloak_client \
24+
&& /app-setup.sh /app-setup.env config_oracle_client \
25+
&& /server-setup.sh /app-setup.env wildfly_reload \
26+
&& /server-setup.sh /app-setup.env wildfly_stop \
27+
&& rm -rf /opt/wildfly/current/standalone/configuration/standalone_xml_history
28+
USER dev
29+
COPY --from=builder /app/build/libs/* /opt/wildfly/current/standalone/deployments
30+
31+
ENV TZ='America/New_York'
32+
33+
# Used by container-entrypoint.sh
34+
ENV ORACLE_DATASOURCE='calendar'
35+
ENV ORACLE_SERVER='oracle:1521'
36+
ENV ORACLE_USER='CALENDAR_OWNER'
37+
ENV ORACLE_PASS='password'
38+
ENV ORACLE_SERVICE='xepdb1'
39+
40+
# Used by app for path building
41+
ENV PUPPET_SHOW_SERVER_URL='http://puppet:3000'
42+
ENV BACKEND_SERVER_URL='http://calendar:8080'
43+
ENV FRONTEND_SERVER_URL='https://localhost:8443'

compose.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,4 @@ services:
2020
ports:
2121
- "8443:8443"
2222
- "8080:8080"
23-
- "9990:9990"
24-
environment:
25-
ORACLE_DATASOURCE: 'calendar'
26-
ORACLE_SERVER: 'oracle:1521'
27-
ORACLE_USER: 'CALENDAR_OWNER'
28-
ORACLE_PASS: 'password'
29-
ORACLE_SERVICE: 'xepdb1'
30-
PUPPET_SHOW_SERVER_URL: 'http://puppet:3000'
31-
BACKEND_SERVER_URL: 'http://calendar:8080'
32-
FRONTEND_SERVER_URL: 'https://localhost:8443'
33-
TZ: 'America/New_York'
23+
- "9990:9990"

container/app/app-setup.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ ORACLE_PASS=password
88
ORACLE_SERVER=oracle:1521
99
ORACLE_SERVICE=xepdb1
1010
ORACLE_USER=CALENDAR_OWNER
11-
WILDFLY_APP_HOME=/opt/jboss/wildfly
11+
WILDFLY_RUN_USER=dev
12+
WILDFLY_APP_HOME=/opt/wildfly/current
1213

0 commit comments

Comments
 (0)