Skip to content

Commit

Permalink
fix selenium for anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Feb 11, 2024
1 parent 29cd642 commit fbdbe92
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/selenium/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Empty file modified apps/selenium/setuser.sh
100644 → 100755
Empty file.

0 comments on commit fbdbe92

Please sign in to comment.