@@ -11,6 +11,8 @@ ARG OPENTELEMETRY_VERSION=1.44.1
1111ARG GRPC_VERSION=1.68.1
1212ARG NETTY_VERSION=4.1.115.Final
1313ARG CS_VERSION=2.1.18
14+ ARG POSTGRESQL_VERSION=42.7.4
15+ ARG MVN_SELENIUM_VERSION=4.27.0
1416
1517# Arguments to define the user running Selenium
1618ARG SEL_USER=seluser
@@ -118,8 +120,16 @@ RUN --mount=type=secret,id=SEL_PASSWD \
118120 && if [ -f "/tmp/cs" ]; then \
119121 java -jar /tmp/cs fetch --classpath --cache /external_jars \
120122 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 ; \
123133 fi \
124134 && rm -fr /root/.cache/* \
125135 # (Note that .bashrc is only executed in interactive bash shells.)
@@ -165,6 +175,8 @@ ENV SE_BIND_HOST=false \
165175 SE_SUPERVISORD_CHILD_LOG_DIR="/tmp" \
166176 SE_SUPERVISORD_LOG_FILE="/tmp/supervisord.log" \
167177 SE_SUPERVISORD_PID_FILE="/tmp/supervisord.pid" \
178+ SE_SUPERVISORD_AUTO_RESTART=true \
179+ SE_SUPERVISORD_START_RETRIES=5 \
168180 SE_LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S,%3N" \
169181 SE_LOG_LEVEL="INFO" \
170182 SE_HTTP_LOGS=false \
0 commit comments