Skip to content

Commit c5edb5d

Browse files
committed
Bump JLab Wildfly to v3.0.1
1 parent 0e82635 commit c5edb5d

4 files changed

Lines changed: 31 additions & 30 deletions

File tree

Dockerfile

Lines changed: 28 additions & 4 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
@@ -25,6 +25,30 @@ RUN /server-setup.sh /app-setup.env wildfly_start_and_wait \
2525
&& /server-setup.sh /app-setup.env config_email \
2626
&& /server-setup.sh /app-setup.env wildfly_reload \
2727
&& /server-setup.sh /app-setup.env wildfly_stop \
28-
&& rm -rf /opt/jboss/wildfly/standalone/configuration/standalone_xml_history \
29-
USER jboss:jboss
30-
COPY --from=builder /app/build/libs/* /opt/jboss/wildfly/standalone/deployments
28+
&& rm -rf /opt/wildfly/current/standalone/configuration/standalone_xml_history \
29+
USER dev
30+
COPY --from=builder /app/build/libs/* /opt/wildfly/current/standalone/deployments
31+
32+
ENV TZ='America/New_York'
33+
34+
# Used by app runtime smoothness weblib User Directory Cache
35+
ENV KEYCLOAK_FRONTEND_SERVER_URL='http://localhost:8081/auth'
36+
ENV KEYCLOAK_BACKEND_SERVER_URL='http://keycloak:8080/auth'
37+
ENV KEYCLOAK_REALM='test-realm'
38+
ENV KEYCLOAK_RESOURCE='srm'
39+
ENV KEYCLOAK_SECRET='yHi6W2raPmLvPXoxqMA7VWbLAA2WN0eB'
40+
41+
# Used by container-entrypoint.sh
42+
ENV ORACLE_DATASOURCE='srm'
43+
ENV ORACLE_SERVER='oracle:1521'
44+
ENV ORACLE_USER='SRM_OWNER'
45+
ENV ORACLE_PASS='password'
46+
ENV ORACLE_SERVICE='xepdb1'
47+
48+
# Used by app for path building
49+
ENV PUPPET_SHOW_SERVER_URL='http://puppet:3000'
50+
ENV BACKEND_SERVER_URL='http://srm:8080'
51+
ENV FRONTEND_SERVER_URL='https://localhost:8443'
52+
53+
# App specific
54+
ENV LOGBOOK_SERVER_URL='https://logbooks.jlab.org'

build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ services:
33
extends:
44
file: compose.yaml
55
service: oracle
6-
volumes:
7-
- ./run/oracle/oradata:/opt/oracle/oradata
86

97
keycloak:
108
extends:

compose.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,4 @@ services:
2525
ports:
2626
- "8443:8443"
2727
- "8080:8080"
28-
- "9990:9990"
29-
environment:
30-
KEYCLOAK_REALM: 'test-realm'
31-
KEYCLOAK_RESOURCE: 'srm'
32-
KEYCLOAK_SECRET: 'yHi6W2raPmLvPXoxqMA7VWbLAA2WN0eB'
33-
KEYCLOAK_FRONTEND_SERVER_URL: 'http://localhost:8081'
34-
KEYCLOAK_BACKEND_SERVER_URL: 'http://keycloak:8080'
35-
LOGBOOK_SERVER_URL: 'https://logbooks.jlab.org'
36-
ORACLE_DATASOURCE: 'srm'
37-
ORACLE_SERVER: 'oracle:1521'
38-
ORACLE_USER: 'SRM_OWNER'
39-
ORACLE_PASS: 'password'
40-
ORACLE_SERVICE: 'xepdb1'
41-
PUPPET_SHOW_SERVER_URL: 'http://puppet:3000'
42-
BACKEND_SERVER_URL: 'http://srm:8080'
43-
FRONTEND_SERVER_URL: 'https://localhost:8443'
44-
TZ: 'America/New_York'
45-
SRM_FEEDBACK_SENDER_ADDRESS: 'srm@example.com'
46-
SRM_FEEDBACK_TO_ADDRESS_CSV: 'recipient1@example.com,recipient2@example.com'
47-
SRM_CONTENT_CONTACT: 'bob@example.com'
48-
SRM_TECHNICAL_CONTACT: 'larry@example.com'
49-
SRM_DOC_CSV: 'https://github.com/JeffersonLab/srm|SRM Home,https://ace.jlab.org/cdn/doc/srm/FAQ.pdf|FAQ,https://ace.jlab.org/cdn/doc/srm/Training.pptx|Training,https://ace.jlab.org/cdn/doc/srm/ScheduleTemplate.pdf|Schedule,https://ace.jlab.org/cdn/doc/srm/LERFGuidance.docx|LERF Guidance'
28+
- "9990:9990"

container/app/app-setup.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ ORACLE_PASS=password
88
ORACLE_SERVER=oracle:1521
99
ORACLE_SERVICE=xepdb1
1010
ORACLE_USER=SRM_OWNER
11-
WILDFLY_RUN_USER=jboss
12-
WILDFLY_APP_HOME=/opt/jboss/wildfly
11+
WILDFLY_RUN_USER=dev
12+
WILDFLY_APP_HOME=/opt/wildfly/current
1313
EMAIL_FROM=tester@example.com
1414
EMAIL_HOST=mailhog
1515
EMAIL_PORT=1025

0 commit comments

Comments
 (0)