@@ -8,9 +8,8 @@ ARG VERSION
8
8
ARG RELEASE=selenium-${VERSION}
9
9
ARG MVN_SELENIUM_VERSION
10
10
# Default value should be aligned with upstream Selenium (https://github.com/SeleniumHQ/selenium/blob/trunk/MODULE.bazel)
11
- ARG OPENTELEMETRY_VERSION=1.46.0
12
- ARG GRPC_VERSION=1.70.0
13
- ARG NETTY_VERSION=4.1.118.Final
11
+ ARG OPENTELEMETRY_VERSION=1.48.0
12
+ ARG GRPC_VERSION=1.71.0
14
13
ARG CS_VERSION=2.1.18
15
14
ARG POSTGRESQL_VERSION=42.7.5
16
15
ARG ENVSUBST_VERSION=1.4.3
@@ -61,13 +60,35 @@ RUN apt-get -qqy update \
61
60
unzip \
62
61
wget \
63
62
jq \
64
- supervisor \
65
63
gnupg2 \
66
64
libnss3-tools \
67
65
openjdk-${JRE_VERSION}-jdk-headless \
68
66
ca-certificates \
69
67
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
70
68
69
+ # ========================================
70
+ # Install Python for utilities
71
+ # ========================================
72
+ RUN apt-get -qqy update \
73
+ && apt-get upgrade -yq \
74
+ && apt-get -qqy --no-install-recommends install \
75
+ python3 python3-pip python3-venv python3-setuptools \
76
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
77
+
78
+ ENV VENV_PATH=/opt/venv
79
+ RUN python3 -m venv $VENV_PATH \
80
+ echo "source $VENV_PATH/bin/activate" >> /etc/bash.bashrc
81
+
82
+ RUN $VENV_PATH/bin/python3 -m pip install --upgrade pip setuptools virtualenv psutil \
83
+ && wget -q https://github.com/Supervisor/supervisor/archive/refs/heads/main.zip -O /tmp/supervisor.zip \
84
+ && unzip /tmp/supervisor.zip -d /tmp \
85
+ && cd /tmp/supervisor-main \
86
+ && $VENV_PATH/bin/python3 -m pip install --break-system-packages . \
87
+ && rm -rf /tmp/supervisor.zip /tmp/supervisor-main
88
+
89
+ ENV PATH="$VENV_PATH/bin:$PATH" \
90
+ VIRTUAL_ENV="$VENV_PATH"
91
+
71
92
RUN ARCH=$(if [ "$(dpkg --print-architecture)" = "arm64" ]; then echo "aarch64" ; else echo "$(dpkg --print-architecture)" ; fi) \
72
93
&& wget -q https://github.com/moparisthebest/static-curl/releases/download/v8.11.0/curl-$ARCH -O /usr/bin/curl \
73
94
&& chmod +x /usr/bin/curl \
@@ -130,9 +151,6 @@ RUN --mount=type=secret,id=SEL_PASSWD \
130
151
java -jar /tmp/cs fetch --classpath --cache /external_jars \
131
152
io.opentelemetry:opentelemetry-exporter-otlp:${OPENTELEMETRY_VERSION} \
132
153
io.grpc:grpc-netty:${GRPC_VERSION} \
133
- io.netty:netty-codec-http:${NETTY_VERSION} \
134
- io.netty:netty-handler:${NETTY_VERSION} \
135
- io.netty:netty-common:${NETTY_VERSION} \
136
154
> /external_jars/.classpath.txt \
137
155
&& chmod 664 /external_jars/.classpath.txt \
138
156
&& java -jar /tmp/cs fetch --classpath --cache /external_jars \
0 commit comments