Skip to content

Commit 244c7eb

Browse files
committed
[doc]: Update README
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 0d4815c commit 244c7eb

File tree

5 files changed

+52
-8
lines changed

5 files changed

+52
-8
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ on:
4343
- '**.md'
4444
- '**/*.md'
4545
- 'CHANGELOG/**'
46+
- 'tests/build-backward-compatible/**'
4647

4748
concurrency:
4849
group: ${{ github.workflow }}-${{ github.ref == github.ref_protected && github.run_id || github.event.pull_request.number || github.ref }}

ENV_VARIABLES.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| SE_SUPERVISORD_PID_FILE | /tmp/supervisord.pid | Default pid file will be created by supervisord | |
2424
| SE_DRAIN_AFTER_SESSION_COUNT | 0 | Drain and detach node from grid after session count exceeds | --drain-after-session-count |
2525
| SE_SUB_PATH | | A sub-path that should be considered for all user facing routes on the Hub/Router/Standalone | --sub-path |
26-
| SE_NODE_GRID_URL | | Node config, public URL of the Grid as a whole (typically the address of the Hub or the Router) | --grid-url |
26+
| SE_NODE_GRID_URL | http://localhost:4444 | Node config, public URL of the Grid as a whole (typically the address of the Hub or the Router) | --grid-url |
2727
| SE_HUB_HOST | | Hub config, host address the Hub should listen on | --host |
2828
| SE_ROUTER_HOST | | Router config, host address the Router should listen on | --host |
2929
| SE_HUB_PORT | 4444 | Hub config, port the Hub should listen on (default 4444) | --port |
@@ -37,10 +37,10 @@
3737
| SE_UPLOAD_RETAIN_LOCAL_FILE | | | |
3838
| SE_VIDEO_UPLOAD_BATCH_CHECK | | | |
3939
| SE_RCLONE_ | | | |
40-
| SE_OPTS | | | |
40+
| SE_OPTS | | This is used to pass any additional CLI options (which doesn't have environment variable representation) to the component. Refer to list supported options per component in [documentation](https://www.selenium.dev/documentation/grid/configuration/cli_options/) | |
4141
| SE_EVENT_BUS_HOST | | | |
4242
| SE_EVENT_BUS_PORT | 5557 | | |
43-
| SE_LOG_LEVEL | INFO | | --log-level |
43+
| SE_LOG_LEVEL | INFO | Log level. Default logging level is INFO. Log levels are described [here](https://docs.oracle.com/en/java/javase/11/docs/api/java.logging/java/util/logging/Level.html) | --log-level |
4444
| SE_HTTP_LOGS | false | | --http-logs |
4545
| SE_STRUCTURED_LOGS | false | | --structured-logs |
4646
| SE_EXTERNAL_URL | | | --external-url |
@@ -76,7 +76,7 @@
7676
| SE_EVENT_BUS_SUBSCRIBE_PORT | 4443 | | |
7777
| SE_NODE_SESSION_TIMEOUT | 300 | | --session-timeout |
7878
| SE_NODE_ENABLE_MANAGED_DOWNLOADS | true | This causes the Node to auto manage files downloaded for a given session on the Node | --enable-managed-downloads |
79-
| SE_NODE_ENABLE_CDP | | | --enable-cdp |
79+
| SE_NODE_ENABLE_CDP | | Enable CDP proxying in Grid. A Grid admin can disable CDP if the network doesnot allow websockets. True by default. | --enable-cdp |
8080
| SE_NODE_REGISTER_PERIOD | 120 | | --register-period |
8181
| SE_NODE_REGISTER_CYCLE | 10 | | --register-cycle |
8282
| SE_NODE_HEARTBEAT_PERIOD | 30 | | --heartbeat-period |

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Talk to us at https://www.selenium.dev/support/
7676
* [Building the images](#building-the-images)
7777
* [Build the images with specific versions](#build-the-images-with-specific-versions)
7878
* [Upgrade browser version in the images](#upgrade-browser-version-in-the-images)
79+
* [Upgrade browser and driver versions in the images](#upgrade-browser-and-driver-versions-in-the-images)
7980
* [Waiting for the Grid to be ready](#waiting-for-the-grid-to-be-ready)
8081
* [Adding a HEALTHCHECK to the Grid](#adding-a-healthcheck-to-the-grid)
8182
* [Using a bash script to wait for the Grid](#using-a-bash-script-to-wait-for-the-grid)
@@ -1488,6 +1489,44 @@ You can refer to detail commands in the [Makefile](Makefile) file.
14881489
14891490
---
14901491
1492+
## Upgrade browser and driver versions in the images
1493+
1494+
| Image name | Support |
1495+
|--------------------------------|---------|
1496+
| node-chrome, standalone-chrome | ✅ |
1497+
1498+
There are two ways of usage this feature.
1499+
1500+
1. Upgrade Chrome and ChromeDriver later in runtime (when starting the container). Set the container environment `SE_UPDATE_CHROME_COMPONENTS` to `true`. For example:
1501+
```bash
1502+
docker run -d -p 4444:4444 -p 5900:5900 --shm-size="2g" -e SE_UPDATE_CHROME_COMPONENTS=true selenium/standalone-chrome:latest
1503+
```
1504+
Tradeoff:
1505+
Note that after the container gets restarted, updated binaries will be lost unless you call the update script within the build container process (the second usage below).
1506+
1507+
2. Build your own image by reusing image layers with upgrading Chrome and ChromeDriver to the latest
1508+
Create a simple Dockerfile as below
1509+
```Dockerfile
1510+
FROM --platform=linux/amd64 selenium/standalone-chrome:latest
1511+
RUN /opt/bin/update-chrome-components.sh
1512+
```
1513+
- Option 1: Build your own image tag
1514+
```bash
1515+
docker buildx build --platform linux/amd64 -t selenium/standalone-chrome:my-latest .
1516+
```
1517+
- Option 2: Use Dockerfile in docker compose
1518+
```yml
1519+
services:
1520+
chrome:
1521+
build:
1522+
context: .
1523+
dockerfile: Dockerfile
1524+
image: selenium/standalone-chrome:my-latest
1525+
# Add environments, ports, volumes, etc. as needed
1526+
```
1527+
1528+
---
1529+
14911530
## Waiting for the Grid to be ready
14921531
14931532
It is a good practice to check first if the Grid is up and ready to receive requests, this can be done by checking the `/wd/hub/status` endpoint.

scripts/generate_list_env_vars/description.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@
114114
description: ''
115115
cli: ''
116116
- name: SE_OPTS
117-
description: ''
117+
description: This is used to pass any additional CLI options (which doesn't have
118+
environment variable representation) to the component. Refer to list supported
119+
options per component in [documentation](https://www.selenium.dev/documentation/grid/configuration/cli_options/)
118120
cli: ''
119121
- name: SE_EVENT_BUS_HOST
120122
description: ''
@@ -123,7 +125,8 @@
123125
description: ''
124126
cli: ''
125127
- name: SE_LOG_LEVEL
126-
description: ''
128+
description: Log level. Default logging level is INFO. Log levels are described
129+
[here](https://docs.oracle.com/en/java/javase/11/docs/api/java.logging/java/util/logging/Level.html)
127130
cli: --log-level
128131
- name: SE_HTTP_LOGS
129132
description: ''
@@ -232,7 +235,8 @@
232235
on the Node
233236
cli: --enable-managed-downloads
234237
- name: SE_NODE_ENABLE_CDP
235-
description: ''
238+
description: Enable CDP proxying in Grid. A Grid admin can disable CDP if the network
239+
doesnot allow websockets. True by default.
236240
cli: --enable-cdp
237241
- name: SE_NODE_REGISTER_PERIOD
238242
description: ''

scripts/generate_list_env_vars/value.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
- name: SE_NODE_GRID_GRAPHQL_URL
102102
default: ''
103103
- name: SE_NODE_GRID_URL
104-
default: ''
104+
default: http://localhost:4444
105105
- name: SE_NODE_HEARTBEAT_PERIOD
106106
default: '30'
107107
- name: SE_NODE_HOST

0 commit comments

Comments
 (0)