This is an automated email from the ASF dual-hosted git repository.
wankai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git
The following commit(s) were added to refs/heads/main by this push:
new 67f73af fix loadgen (#246)
67f73af is described below
commit 67f73af57e47a532179e8b26ee71c485b399cb98
Author: Wan Kai <[email protected]>
AuthorDate: Fri Apr 3 10:39:34 2026 +0800
fix loadgen (#246)
---
services/load-gen/Dockerfile | 4 ++--
services/load-gen/loadgen.py | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/services/load-gen/Dockerfile b/services/load-gen/Dockerfile
index 5b4699e..2c8459e 100644
--- a/services/load-gen/Dockerfile
+++ b/services/load-gen/Dockerfile
@@ -15,14 +15,14 @@
# specific language governing permissions and limitations
# under the License.
#
-FROM selenium/standalone-chrome:97.0-20250202
+FROM seleniarm/standalone-chromium:124.0
WORKDIR /home/seluser
COPY requirements.txt requirements.txt
COPY loadgen.py loadgen.py
-RUN sudo apt-get update && sudo apt-get install -y python3-pip python3-venv
+RUN sudo apt-get update && sudo apt-get install -y -o
DPkg::Options::="--force-overwrite" python3-pip python3-venv
RUN sudo python3 -m venv python && sudo ./python/bin/pip3 install -r
requirements.txt
CMD python/bin/python3 -u loadgen.py
diff --git a/services/load-gen/loadgen.py b/services/load-gen/loadgen.py
index 7051b87..80041bc 100644
--- a/services/load-gen/loadgen.py
+++ b/services/load-gen/loadgen.py
@@ -28,6 +28,9 @@ url = os.getenv('URL', 'http://frontend/index.html')
options = ChromeOptions()
options.add_argument("--headless")
+options.add_argument("--disable-dev-shm-usage")
+options.add_argument("--no-sandbox")
+options.add_argument("--disable-gpu")
driver = webdriver.Chrome(options=options)
while True: