@@ -11,6 +11,8 @@ ARG OPENTELEMETRY_VERSION=1.44.1
11
11
ARG GRPC_VERSION=1.68.1
12
12
ARG NETTY_VERSION=4.1.115.Final
13
13
ARG CS_VERSION=2.1.18
14
+ ARG POSTGRESQL_VERSION=42.7.4
15
+ ARG MVN_SELENIUM_VERSION=4.27.0
14
16
15
17
# Arguments to define the user running Selenium
16
18
ARG SEL_USER=seluser
@@ -118,8 +120,16 @@ RUN --mount=type=secret,id=SEL_PASSWD \
118
120
&& if [ -f "/tmp/cs" ]; then \
119
121
java -jar /tmp/cs fetch --classpath --cache /external_jars \
120
122
io.opentelemetry:opentelemetry-exporter-otlp:${OPENTELEMETRY_VERSION} \
121
- io.grpc:grpc-netty:${GRPC_VERSION} io.netty:netty-codec-http:${NETTY_VERSION} > /external_jars/.classpath.txt \
122
- && chmod 664 /external_jars/.classpath.txt ; \
123
+ io.grpc:grpc-netty:${GRPC_VERSION} \
124
+ io.netty:netty-codec-http:${NETTY_VERSION} \
125
+ > /external_jars/.classpath.txt \
126
+ && chmod 664 /external_jars/.classpath.txt \
127
+ && java -jar /tmp/cs fetch --classpath --cache /external_jars \
128
+ org.seleniumhq.selenium:selenium-session-map-jdbc:${MVN_SELENIUM_VERSION} \
129
+ org.postgresql:postgresql:${POSTGRESQL_VERSION} \
130
+ org.seleniumhq.selenium:selenium-session-map-redis:${MVN_SELENIUM_VERSION} \
131
+ > /external_jars/.classpath_session_map.txt \
132
+ && chmod 664 /external_jars/.classpath_session_map.txt ; \
123
133
fi \
124
134
&& rm -fr /root/.cache/* \
125
135
# (Note that .bashrc is only executed in interactive bash shells.)
@@ -165,6 +175,8 @@ ENV SE_BIND_HOST=false \
165
175
SE_SUPERVISORD_CHILD_LOG_DIR="/tmp" \
166
176
SE_SUPERVISORD_LOG_FILE="/tmp/supervisord.log" \
167
177
SE_SUPERVISORD_PID_FILE="/tmp/supervisord.pid" \
178
+ SE_SUPERVISORD_AUTO_RESTART=true \
179
+ SE_SUPERVISORD_START_RETRIES=5 \
168
180
SE_LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S,%3N" \
169
181
SE_LOG_LEVEL="INFO" \
170
182
SE_HTTP_LOGS=false \
0 commit comments