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

Commit 914a23a

Browse files
authored
Merge pull request #64 from seleniumhq-community/4.17.0
Sync from upstream for 4.17.0 [deploy]
2 parents bf80431 + db9e4b2 commit 914a23a

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Setup Kubernetes environment
5454
run: make chart_setup_env
5555
- name: Build Docker images
56-
run: NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make build_multi
56+
run: BUILD_ARGS="--build-arg TARGETARCH=amd64" NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make build
5757
- name: Build and lint charts
5858
run: |
5959
BUILD_DATE=${BUILD_DATE} make chart_build

.github/workflows/scan-dockerfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
format: 'sarif'
3737
output: 'source-results.sarif'
3838
scanners: 'vuln,secret,misconfig'
39-
skip-dirs: 'tests,Video'
39+
skip-dirs: 'tests,Video,NodeChromium,NodeFirefox'
4040
exit-code: '${{ env.EXIT_CODE }}'
4141
severity: '${{ env.SEVERITY }}'
4242
limit-severities-for-sarif: true

Base/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,14 @@ RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/sup
135135
# so that the container can skip downloading them everytime it comes up
136136
#=====
137137
#RUN curl -fLo /tmp/cs https://github.com/coursier/launchers/raw/master/coursier \
138-
# RUN if [ `arch` = "aarch64" ] || [ `arch` = "x86_64" ]; then \
139-
RUN if [ `arch` = "aarch64" ]; then \
138+
RUN if [ `arch` = "aarch64" ] || [ `arch` = "x86_64" ]; then \
140139
curl -fL https://github.com/coursier/launchers/raw/master/cs-`arch`-pc-linux.gz | gzip -d > /tmp/cs \
141-
&& chmod +x /tmp/cs \
142-
&& mkdir -p /external_jars \
143-
&& chmod -R 775 /external_jars ; \
140+
&& chmod +x /tmp/cs \
141+
&& mkdir -p /external_jars \
142+
&& chmod -R 775 /external_jars ; \
144143
fi
145144

146-
RUN if [ -f "/tmp/cs" ]; then \
145+
RUN if [ -f "/tmp/cs" ]; then \
147146
/tmp/cs fetch --classpath --cache /external_jars \
148147
io.opentelemetry:opentelemetry-exporter-otlp:${OPENTELEMETRY_VERSION} \
149148
io.opentelemetry:opentelemetry-exporter-jaeger:${OPENTELEMETRY_VERSION} \

NodeBase/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN apt-get -qqy update \
4545
#=====
4646
RUN apt-get update -qqy \
4747
&& apt-get -qqy --no-install-recommends install \
48-
x11vnc \
48+
x11vnc x11-utils fluxbox \
4949
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
5050

5151
#=========

NodeFirefox/Dockerfile.multi-arch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LABEL authors=${AUTHORS}
77
ARG TARGETARCH
88
ARG TARGETVARIANT
99

10-
ARG GECKODRIVER_VERSION=0.33.0
10+
ARG GECKODRIVER_VERSION=0.34.0
1111

1212
USER root
1313

charts/selenium-grid/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ By default, the uploader uses [RCLONE](https://rclone.org/) to upload the video
464464

465465
The uploader requires `destinationPrefix` to be set. It is used to instruct the uploader where to upload the video. The format of destinationPrefix is `remote-name://bucket-name/path`. The `remote-name` is configured in RCLONE. The `bucket-name` is the name of the bucket in the remote location. The `path` is the path to the folder in the bucket.
466466

467-
By default, the config file is loaded from file [configs/uploader/rclone/config.conf](configs/uploader/rclone/config.conf) to the Secret. You can override the config file via `--set-file uploaderConfigMap.secretFiles.config.conf=/path/to/your_config.conf` or set via YAML values.
467+
By default, the config file is loaded from file [configs/uploader/rclone/config.conf](configs/uploader/rclone/config.conf) to the Secret. You can override the config file via `--set-file uploaderConfigMap.secretFiles.config\.conf=/path/to/your_config.conf` or set via YAML values.
468468

469469
For example, to configure an S3 remote hosted on AWS with named `mys3` and the bucket name is `mybucket`, you can set the following values:
470470

@@ -511,7 +511,7 @@ videoRecorder:
511511

512512
Those 2 ways are equivalent. You can choose one of them or combine them together. When both config file and ENV vars are set, value in `config.conf` will take precedence.
513513

514-
Beside the configuration, the script for entry point of uploader container also needed. By default, it is loaded from file [configs/uploader/rclone/entry_point.sh](configs/uploader/rclone/entry_point.sh) to the ConfigMap. You can override the script via `--set-file uploaderConfigMap.extraScripts.entry_point.sh=/path/to/your_script.sh` or set via YAML values. For example:
514+
Beside the configuration, the script for entry point of uploader container also needed. By default, it is loaded from file [configs/uploader/rclone/entry_point.sh](configs/uploader/rclone/entry_point.sh) to the ConfigMap. You can override the script via `--set-file uploaderConfigMap.extraScripts.entry_point\.sh=/path/to/your_script.sh` or set via YAML values. For example:
515515

516516
```yaml
517517
uploaderConfigMap:
@@ -563,9 +563,9 @@ There are multiple ways to configure your certificate, private key, truststore t
563563
```bash
564564
helm upgrade -i test selenium-grid \
565565
--set tls.enabled=true \
566-
--set-file tls.certificate=/path/to/your_cert.pem \
567-
--set-file tls.privateKey=/path/to/your_private_key.pkcs8 \
568-
--set-file tls.trustStore=/path/to/your_truststore.jks \
566+
--set-file tls.certificate=/path/to/your_cert\.pem \
567+
--set-file tls.privateKey=/path/to/your_private_key\.pkcs8 \
568+
--set-file tls.trustStore=/path/to/your_truststore\.jks \
569569
--set-string tls.trustStorePassword=your_truststore_password
570570
```
571571

charts/selenium-grid/configs/uploader/rclone/entry_point.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ do
2727
else [ "$FILE" != "" ] && [ "$DESTINATION" != "" ];
2828
echo "Uploading ${FILE} to ${DESTINATION}"
2929
rclone --config ${UPLOAD_CONFIG_DIRECTORY}/${UPLOAD_CONFIG_FILE_NAME} ${UPLOAD_COMMAND} ${UPLOAD_OPTS} "${FILE}" "${DESTINATION}"
30+
if [ $? -eq 0 ];
31+
then
32+
rm -rf $FILE
33+
fi
3034
fi
3135
if [ -f ${SE_VIDEO_FOLDER}/force_exit ] && [ ! -s ${SE_VIDEO_FOLDER}/uploadpipe ];
3236
then

0 commit comments

Comments
 (0)