Skip to content

Commit 28ca18d

Browse files
authored
chore(container): upgrade to UBI9 (#652)
1 parent e8ca7fe commit 28ca18d

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

compose/cryostat_docker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ services:
3434
CRYOSTAT_DISCOVERY_JDP_ENABLED: "true"
3535
JAVA_OPTS_APPEND: >-
3636
-XX:+FlightRecorder
37-
-XX:StartFlightRecording=name=onstart,settings=default,disk=true,maxage=5m
37+
-XX:StartFlightRecording=filename=/tmp/,name=onstart,settings=default,disk=true,maxage=5m
38+
-XX:StartFlightRecording=filename=/tmp/,name=startup,settings=profile,disk=true,duration=30s
3839
-Dcom.sun.management.jmxremote.autodiscovery=true
3940
-Dcom.sun.management.jmxremote
4041
-Dcom.sun.management.jmxremote.port=9091

compose/cryostat_k8s.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
environment:
2020
CRYOSTAT_DISCOVERY_PODMAN_ENABLED: "false"
2121
CRYOSTAT_DISCOVERY_JDP_ENABLED: "true"
22-
JAVA_OPTS_APPEND: "-XX:+FlightRecorder -XX:StartFlightRecording=name=onstart,settings=default,disk=true,maxage=5m -Dcom.sun.management.jmxremote.autodiscovery=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9091 -Dcom.sun.management.jmxremote.rmi.port=9091 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false"
22+
JAVA_OPTS_APPEND: "-XX:+FlightRecorder -XX:StartFlightRecording=filename=/tmp/,name=onstart,settings=default,disk=true,maxage=5m -Dcom.sun.management.jmxremote.autodiscovery=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9091 -Dcom.sun.management.jmxremote.rmi.port=9091 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false"
2323
restart: always
2424
healthcheck:
2525
test: curl --fail http://localhost:8181/health/liveness || exit 1

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
</execution>
326326
</executions>
327327
<configuration>
328-
<jvmArgs>-Dcryostat.discovery.jdp.enabled=true -Dcryostat.discovery.podman.enabled=true -XX:+FlightRecorder -XX:StartFlightRecording=filename/tmp,=name=onstart,settings=default,disk=true,maxage=5m -Dcom.sun.management.jmxremote.autodiscovery=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9091 -Dcom.sun.management.jmxremote.rmi.port=9091 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false</jvmArgs>
328+
<jvmArgs>-Dcryostat.discovery.jdp.enabled=true -Dcryostat.discovery.podman.enabled=true -XX:+FlightRecorder -XX:StartFlightRecording=filename=/tmp/,name=onstart,settings=default,disk=true,maxage=5m -Dcom.sun.management.jmxremote.autodiscovery=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9091 -Dcom.sun.management.jmxremote.rmi.port=9091 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false</jvmArgs>
329329
</configuration>
330330
</plugin>
331331
<plugin>

src/main/docker/Dockerfile.jvm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
# accessed directly. (example: "foo.example.com,bar.example.com")
7878
#
7979
###
80-
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:1.21-1.1733300818
80+
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.21-1.1733995527
8181

8282
ENV LANGUAGE='en_US:en'
8383

@@ -108,7 +108,7 @@ ENV SSL_TRUSTSTORE=$CONF_DIR/truststore.p12 \
108108
USER root
109109
RUN mkdir -p $CONF_DIR \
110110
&& chmod -R g=u $CONF_DIR \
111-
&& chown jboss:root $CONF_DIR
111+
&& chown default:root $CONF_DIR
112112
USER 185
113113

114114
RUN /deployments/app/truststore-setup.bash

0 commit comments

Comments
 (0)