Skip to content

Commit edddcfc

Browse files
committed
fix(keycloakx): replace archived seleniarm image in Helm
The seleniarm project was archived in 2024. Switch to the selenium/standalone-chromium image (SeleniumHQ absorbed seleniarm's multi-arch work), bumping Chromium from 117.0 to 147.0. Signed-off-by: Dominique Metz <dominique.metz@codecentric.de>
1 parent 15f09f3 commit edddcfc

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

charts/keycloakx/templates/test/configmap-test.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,14 @@ data:
1414
#!/usr/bin/env bash
1515
set -eu
1616
17-
if ! python3 -c 'import selenium' &> /dev/null
18-
then
19-
if ! command -v pip3 &> /dev/null
20-
then
21-
echo 'Installing pip3...'
22-
export PATH="$PATH:$HOME/.local/bin"
23-
mkdir -p "$HOME/.config/pip"
24-
echo -e '[global]\nbreak-system-packages = true' > "$HOME/.config/pip/pip.conf"
25-
wget -q -P "$HOME" https://bootstrap.pypa.io/get-pip.py
26-
python3 "$HOME/get-pip.py" --user 1> /dev/null
27-
fi
28-
17+
if ! python3 -c 'import selenium' &> /dev/null; then
2918
echo 'Installing selenium module...'
30-
pip3 -q install selenium
19+
python3 -m venv /tmp/test-venv
20+
/tmp/test-venv/bin/pip install -q selenium
21+
exec /tmp/test-venv/bin/python "$(dirname "$0")/test.py"
3122
fi
3223
33-
python3 "$(dirname $0)/test.py"
24+
python3 "$(dirname "$0")/test.py"
3425
test.py: |
3526
import os
3627
from selenium import webdriver

charts/keycloakx/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,17 +616,17 @@ test:
616616
enabled: false
617617
image:
618618
# The image for the test Pod
619-
repository: docker.io/seleniarm/standalone-chromium
619+
repository: docker.io/selenium/standalone-chromium
620620
# The tag for the test Pod image
621-
tag: "117.0"
621+
tag: "147.0"
622622
# The image pull policy for the test Pod image
623623
pullPolicy: IfNotPresent
624624
# SecurityContext for the entire test Pod
625625
podSecurityContext:
626-
fsGroup: 1000
626+
fsGroup: 1200 # UID of seluser in selenium/standalone-chromium
627627
# SecurityContext for the test container
628628
securityContext:
629-
runAsUser: 1000
629+
runAsUser: 1200 # UID of seluser in selenium/standalone-chromium
630630
runAsNonRoot: true
631631
# See https://helm.sh/docs/topics/charts_hooks/#hook-deletion-policies
632632
deletionPolicy: before-hook-creation

0 commit comments

Comments
 (0)