Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 83497e0

Browse files
committed
Merge remote-tracking branch 'selenium/trunk' into 4.20.0
Signed-off-by: Viet Nguyen Duc <[email protected]>
2 parents 2b2e490 + 6f0f7a1 commit 83497e0

File tree

13 files changed

+109
-60
lines changed

13 files changed

+109
-60
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ jobs:
126126
- run:
127127
name: "Prepare workflow environment variables"
128128
command: |
129-
export SELENIUM_VERSION=$(grep selenium-server Base/Dockerfile | sed 's/.*-\([^-]*\)\.jar \\/\1/' | head -n 1)
129+
export SELENIUM_VERSION=$(grep BASE_VERSION Makefile | sed 's/.*,\([^)]*\))/\1/p' | head -n 1)
130+
export BINDING_VERSION=$(grep BINDING_VERSION Makefile | sed 's/.*,\([^)]*\))/\1/p' | head -n 1)
130131
echo "Prepare workflow environment variables"
131132
echo 'export BRANCH='$SELENIUM_VERSION >> $BASH_ENV
132133
echo 'export BUILD_DATE=$(date '+%Y%m%d')' >> $BASH_ENV
@@ -229,6 +230,7 @@ jobs:
229230
command: |
230231
echo "export SELENIUM_VERSION=$(grep BASE_VERSION Makefile | sed 's/.*,\([^)]*\))/\1/p' | head -n 1)" >> $BASH_ENV
231232
echo "export RELEASE=$(grep BASE_RELEASE Makefile | sed 's/.*,\([^)]*\))/\1/p' | head -n 1)" >> $BASH_ENV
233+
echo "export BINDING_VERSION=$(grep BINDING_VERSION Makefile | sed 's/.*,\([^)]*\))/\1/p' | head -n 1)" >> $BASH_ENV
232234
source $BASH_ENV
233235
echo "Prepare workflow environment variables"
234236
echo 'export BRANCH='$SELENIUM_VERSION >> $BASH_ENV

.github/workflows/build-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ jobs:
1919
name: Build & test Docker images with random user
2020
runs-on: ubuntu-latest
2121
strategy:
22+
fail-fast: false
2223
matrix:
2324
use-random-user: [false, true]
2425
steps:
2526
- uses: actions/checkout@main
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@master
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@master
31+
with:
32+
platforms: linux/amd64,linux/arm64
33+
use: false
2634
- name: Output Docker info
2735
run: docker info
2836
- name: Set up Python

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
with:
2020
persist-credentials: false
2121
fetch-depth: 0
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@master
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@master
26+
with:
27+
platforms: linux/amd64,linux/arm64
28+
use: false
2229
- name: Output Docker info
2330
run: docker info
2431
- name: Sets build date

.github/workflows/helm-chart-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ jobs:
7878
- uses: actions/checkout@main
7979
- name: Output Docker info
8080
run: docker info
81+
- name: Set up QEMU
82+
uses: docker/setup-qemu-action@master
83+
- name: Set up Docker Buildx
84+
uses: docker/setup-buildx-action@master
85+
with:
86+
platforms: linux/amd64,linux/arm64
87+
use: false
8188
- name: Set up Python
8289
uses: actions/setup-python@main
8390
with:

.github/workflows/nightly.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
with:
1616
persist-credentials: false
1717
fetch-depth: 0
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@master
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@master
22+
with:
23+
platforms: linux/amd64,linux/arm64
24+
use: false
1825
- name: Output Docker info
1926
run: docker info
2027
- name: Sets build date

.github/workflows/test-video.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
test-strategy: [test_video, test_parallel, test_node_docker]
4040
steps:
4141
- uses: actions/checkout@main
42+
- name: Set up QEMU
43+
uses: docker/setup-qemu-action@master
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@master
46+
with:
47+
platforms: linux/amd64,linux/arm64
48+
use: false
4249
- name: Output Docker info
4350
run: docker info
4451
- name: Set up Python

.github/workflows/update-dev-beta-browser-images.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@main
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@master
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@master
30+
with:
31+
platforms: linux/amd64,linux/arm64
32+
use: false
2633
- name: Setup environment variables
2734
run: |
2835
export SELENIUM_VERSION=$(grep BASE_VERSION Makefile | sed 's/.*,\([^)]*\))/\1/p' | head -n 1)

Base/Dockerfile

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG UID=1200
1717
ARG GID=1201
1818
ARG TZ="UTC"
1919
ARG JRE_VERSION=17
20-
ARG TARGETARCH=amd64
20+
ARG TARGETARCH
2121
ARG TARGETVARIANT
2222

2323
USER root
@@ -36,10 +36,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
3636
# Miscellaneous packages
3737
# Includes minimal runtime used for executing non GUI Java programs
3838
#========================
39-
RUN echo "deb http://archive.ubuntu.com/ubuntu jammy main universe\n" > /etc/apt/sources.list \
40-
&& echo "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe\n" >> /etc/apt/sources.list \
41-
&& echo "deb http://security.ubuntu.com/ubuntu jammy-security main universe\n" >> /etc/apt/sources.list \
42-
&& apt-get -qqy update \
39+
RUN apt-get -qqy update \
4340
&& apt-get upgrade -yq \
4441
&& apt-get -qqy --no-install-recommends install \
4542
acl \
@@ -107,14 +104,18 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu jammy main universe\n" > /etc/ap
107104
#=====
108105
# Download observability related OpenTelemetry jars and make them available in a separate directory
109106
# so that the container can skip downloading them everytime it comes up
110-
#=====
111-
&& curl -fLo /tmp/cs https://github.com/coursier/launchers/raw/master/coursier \
112-
&& chmod +x /tmp/cs \
113-
&& mkdir -p /external_jars \
114-
&& chmod -R 775 /external_jars \
115-
&& /tmp/cs fetch --classpath --cache /external_jars \
116-
io.opentelemetry:opentelemetry-exporter-otlp:${OPENTELEMETRY_VERSION} \
117-
io.grpc:grpc-netty:${GRPC_VERSION} > /external_jars/.classpath.txt \
107+
#===== \
108+
&& if [ `arch` = "aarch64" ] || [ `arch` = "x86_64" ]; then \
109+
curl -fL https://github.com/coursier/launchers/raw/master/cs-`arch`-pc-linux.gz | gzip -d > /tmp/cs \
110+
&& chmod +x /tmp/cs \
111+
&& mkdir -p /external_jars \
112+
&& chmod -R 775 /external_jars ; \
113+
fi \
114+
&& if [ -f "/tmp/cs" ]; then \
115+
/tmp/cs fetch --classpath --cache /external_jars \
116+
io.opentelemetry:opentelemetry-exporter-otlp:${OPENTELEMETRY_VERSION} \
117+
io.grpc:grpc-netty:${GRPC_VERSION} > /external_jars/.classpath.txt ; \
118+
fi \
118119
&& chmod 664 /external_jars/.classpath.txt \
119120
&& rm -fr /root/.cache/* \
120121
# (Note that .bashrc is only executed in interactive bash shells.)

0 commit comments

Comments
 (0)