From fbdbe92e4da15dcca544e74c6b8ec1ecb81f084c Mon Sep 17 00:00:00 2001 From: Ori Hoch Date: Sun, 11 Feb 2024 11:14:03 +0200 Subject: [PATCH] fix selenium for anyway --- apps/selenium/compose.yaml | 17 +++++++++++++++++ apps/selenium/setuser.sh | 0 2 files changed, 17 insertions(+) mode change 100644 => 100755 apps/selenium/setuser.sh diff --git a/apps/selenium/compose.yaml b/apps/selenium/compose.yaml index 80719c6..34d85a7 100644 --- a/apps/selenium/compose.yaml +++ b/apps/selenium/compose.yaml @@ -14,6 +14,23 @@ services: # TODO: clear this directory daily + set permissions - see k8s template - /tmp/selenium-tempdata:/var/selenium/tempdata + selenium-chrome-node-cleanup: + x-cronjob: + schedule: "10 1 * * *" + networks: [dfc] + image: docker:25@sha256:915cd1624f521b6337f135075f712c8fb14c0b151595c6144d7ce05d2f257869 + entrypoint: + - sh + - -c + - | + docker stop selenium-selenium-chrome-node-1 selenium-selenium-chrome-node-nginx-1 + rm -rf /var/selenium/tempdata/* + rm -rf /var/selenium/tempdata/.* + docker start selenium-selenium-chrome-node-1 selenium-selenium-chrome-node-nginx-1 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /tmp/selenium-tempdata:/var/selenium/tempdata + selenium-chrome-node-nginx: networks: [dfc] labels: diff --git a/apps/selenium/setuser.sh b/apps/selenium/setuser.sh old mode 100644 new mode 100755