diff --git a/selenium/README.md b/selenium/README.md index e113aee..a6f29f2 100644 --- a/selenium/README.md +++ b/selenium/README.md @@ -1,6 +1,8 @@ selenium ======== +![](https://www.perfecto.io/sites/default/files/image/2021-10/components.png) + [Selenium][1] is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers. @@ -9,6 +11,18 @@ Watch [this][2] video to get started. ## Server ```bash +$ cat /etc/docker/daemon.json + { + "default-ulimits": { + "nofile": { + "Name": "nofile", + "Soft": 32768, + "Hard": 32768 + } + }, + "live-restore": true + } +$ systemctl reload docker $ docker-compose up -d $ curl http://127.0.0.1:4444/ ``` diff --git a/selenium/docker-compose.yml b/selenium/docker-compose.yml index 691851d..e5410bf 100644 --- a/selenium/docker-compose.yml +++ b/selenium/docker-compose.yml @@ -15,10 +15,6 @@ services: - "4444:4444" environment: - SE_JAVA_OPTS=-Xms256m -Xmx2048m - ulimits: - nofile: - soft: 32768 - hard: 32768 restart: unless-stopped chrome: @@ -40,10 +36,6 @@ services: - VNC_NO_PASSWORD=1 - VNC_VIEW_ONLY=1 shm_size: 2gb - ulimits: - nofile: - soft: 32768 - hard: 32768 depends_on: - hub restart: unless-stopped @@ -59,10 +51,6 @@ services: - SE_VIDEO_FOLDER=/videos - FILE_NAME=video.mp4 - VIDEO_READY_PORT=9000 - ulimits: - nofile: - soft: 32768 - hard: 32768 depends_on: - chrome restart: unless-stopped