This repository was archived by the owner on Jun 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -1095,15 +1095,24 @@ If you get a prompt asking for a password, it is: `secret`. If you wish to chang
10951095it in the ` /NodeBase/Dockerfile ` and build the images yourself, or you can define a Docker image that derives from
10961096the posted ones which reconfigures it:
10971097
1098+ Dockerfile example that extends the ` node-chrome:4.7.2-20221219 ` . You can choose another browser image or a Standalone
1099+ browser image.
1100+
10981101``` dockerfile
1099- # FROM selenium/node-chrome:4.7.2-20221219
1100- # FROM selenium/node-edge:4.7.2-20221219
1101- # FROM selenium/node-firefox:4.7.2-20221219
1102- # Choose the FROM statement that works for you.
1102+ FROM selenium/node-chrome:4.7.2-20221219
11031103
11041104RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
11051105```
11061106
1107+ Save the ` Dockerfile ` as ` DockerfileVNCPasswordChanged ` , open a terminal and on the same directory run:
1108+
1109+ ``` shell
1110+ docker build -t selenium/node-chrome-vnc-password-changed:4.7.2-20221219 -f DockerfileVNCPasswordChanged .
1111+ ```
1112+
1113+ And from now on, instead of using ` node-chrome:4.7.2-20221219 ` in your scripts or docker-compose files, use
1114+ ` selenium/node-chrome-vnc-password-changed:4.7.2-20221219 ` .
1115+
11071116If you want to run VNC without password authentication you can set the environment variable ` SE_VNC_NO_PASSWORD=1 ` .
11081117
11091118If you want to run VNC in view-only mode you can set the environment variable ` SE_VNC_VIEW_ONLY=1 ` .
You can’t perform that action at this time.
0 commit comments