File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ $ docker network rm grid
110
110
111
111
#### Using different machines/VMs
112
112
The Hub and Nodes will be created on different machines/VMs, they need to know each other's IPs to
113
- communicate properly.
113
+ communicate properly. If more than one node will be running on the same Machine/VM, they must be
114
+ configured to expose different ports.
114
115
115
116
Hub - Machine/VM 1
116
117
``` bash
@@ -150,6 +151,18 @@ $ docker run -d -p 5555:5555 \
150
151
selenium/node-firefox:4.1.1-20220121
151
152
```
152
153
154
+ Node Chrome - Machine/VM 4
155
+ ``` bash
156
+ $ docker run -d -p 5556:5556 \
157
+ --shm-size=" 2g" \
158
+ -e SE_EVENT_BUS_HOST=< ip-from-machine-1> \
159
+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
160
+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
161
+ -e SE_NODE_HOST=< ip-from-machine-4> \
162
+ -e SE_NODE_PORT=5556 \
163
+ selenium/node-chrome:4.1.1-20220121
164
+ ```
165
+
153
166
#### Docker Compose
154
167
[ Docker Compose] ( https://docs.docker.com/compose/ ) is the simplest way to start a Grid. Use the
155
168
linked resources below, save them locally, and check the execution instructions on top of each file.
You can’t perform that action at this time.
0 commit comments