@@ -63,7 +63,7 @@ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
63
63
supervisor \
64
64
gnupg2 \
65
65
libnss3-tools \
66
- openjdk-${JRE_VERSION}-jre -headless \
66
+ openjdk-${JRE_VERSION}-jdk -headless \
67
67
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
68
68
69
69
RUN --mount=type=secret,id=SEL_PASSWD \
@@ -96,7 +96,7 @@ RUN --mount=type=secret,id=SEL_PASSWD \
96
96
# ==========
97
97
# Selenium & relaxing permissions for OpenShift and other non-sudo environments
98
98
# ==========
99
- && mkdir -p /opt/selenium /opt/selenium/assets /opt/selenium/secrets /var/run/supervisor /var/log/supervisor ${SEL_DOWNLOAD_DIR} \
99
+ && mkdir -p /opt/selenium /opt/selenium/assets /opt/selenium/secrets /opt/selenium/logs / var/run/supervisor /var/log/supervisor ${SEL_DOWNLOAD_DIR} \
100
100
${HOME}/.mozilla ${HOME}/.vnc ${HOME}/.pki/nssdb ${VIDEO_FOLDER} \
101
101
# NSSDB initialization with an empty password
102
102
&& certutil -d sql:${HOME}/.pki/nssdb -N --empty-password \
@@ -142,8 +142,9 @@ RUN --mount=type=secret,id=SEL_PASSWD \
142
142
# ======================================
143
143
# Add Grid check script
144
144
# ======================================
145
- COPY --chown="${SEL_UID}:${SEL_GID}" check-grid.sh entry_point.sh configs/node/nodeGridUrl.sh configs/node/nodePreStop.sh /opt/bin/
145
+ COPY --chown="${SEL_UID}:${SEL_GID}" check-grid.sh entry_point.sh configs/node/nodeGridUrl.sh configs/node/nodePreStop.sh handle_heap_dump.sh /opt/bin/
146
146
COPY --chown="${SEL_UID}:${SEL_GID}" mask /usr/local/bin/
147
+ RUN chmod +x /opt/bin/*.sh /usr/local/bin/mask
147
148
148
149
# ======================================
149
150
# Add Supervisor configuration file
@@ -187,6 +188,8 @@ ENV SE_BIND_HOST=false \
187
188
SE_STRUCTURED_LOGS=false \
188
189
SE_ENABLE_TRACING=true \
189
190
SE_ENABLE_TLS=false \
191
+ SE_JAVA_OPTS_DEFAULT="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/selenium/logs" \
192
+ SE_JAVA_HEAP_DUMP="false" \
190
193
SE_JAVA_HTTPCLIENT_VERSION="HTTP_1_1" \
191
194
SE_JAVA_SSL_TRUST_STORE="/opt/selenium/secrets/server.jks" \
192
195
SE_JAVA_SSL_TRUST_STORE_PASSWORD="/opt/selenium/secrets/server.pass" \
0 commit comments