@@ -2,8 +2,8 @@ Miscellaneous internal notes, do not read!
22
33## Build
44
5- time (docker build -t elgalu/selenium:local . ;echo $?;beep)
6- docker run --rm -ti -m 3000M --name=local -p=4444:24444 -p=5900:25900 -e VIDEO=true -v /dev/shm:/dev/shm elgalu/selenium:local
5+ time (docker build -t elgalu/selenium . ;echo $?;beep)
6+ docker run --rm -ti -m 3000M --name=local -p=4444:24444 -p=5900:25900 -e VIDEO=true -v /dev/shm:/dev/shm elgalu/selenium
77
88### Wait
99Wait and get versions
@@ -25,9 +25,9 @@ Push setup, first time only:
2525
2626Build a grid with extra nodes
2727
28- docker run --rm --name=local -p 4444:24444 -p 5900:25900 -v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:local
28+ docker run --rm --name=local -p 4444:24444 -p 5900:25900 -v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium
2929
30- docker run --rm --name=node -e DISP_N=13 -e SSHD_PORT=22223 -e SUPERVISOR_HTTP_PORT=29003 -e VNC_PORT=25903 -e SELENIUM_NODE_CH_PORT=25330 -e SELENIUM_NODE_FF_PORT=25331 -e GRID=false -e CHROME=true -e FIREFOX=true --net=container:local elgalu/selenium:local
30+ docker run --rm --name=node -e DISP_N=13 -e SSHD_PORT=22223 -e SUPERVISOR_HTTP_PORT=29003 -e VNC_PORT=25903 -e SELENIUM_NODE_CH_PORT=25330 -e SELENIUM_NODE_FF_PORT=25331 -e GRID=false -e CHROME=true -e FIREFOX=true --net=container elgalu/selenium
3131
3232See logs
3333
@@ -54,18 +54,18 @@ List firefox versions via docker exe
5454
5555## To update image id and digest
5656
57- docker inspect -f='{{.Id}}' elgalu/selenium:local
57+ docker inspect -f='{{.Id}}' elgalu/selenium
5858 docker images --digests
5959
6060## Run with shared dir
6161
6262 docker run --rm --name=local -p=127.0.0.1:4460:24444 -p=127.0.0.1:5910:25900 \
63- -v /e2e/uploads:/e2e/uploads elgalu/selenium:local
63+ -v /e2e/uploads:/e2e/uploads elgalu/selenium
6464 docker run --rm --name=local -p=4460:24444 -p=5910:25900 \
65- -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:local
65+ -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium
6666
6767
68- docker run --rm --name=ff -p=127.0.0.1:4461:24444 -p=127.0.0.1:5911:25900 -v /e2e/uploads:/e2e/uploads elgalu/selenium:local
68+ docker run --rm --name=ff -p=127.0.0.1:4461:24444 -p=127.0.0.1:5911:25900 -v /e2e/uploads:/e2e/uploads elgalu/selenium
6969
7070## Run without shared dir and bind ports to all network interfaces
7171
@@ -88,11 +88,11 @@ List firefox versions via docker exe
8888## Run without dir and bind to all interfaces
8989Note anything after the image will be taken as arguments for the cmd/entrypoint
9090
91- docker run --rm --name=local -p=0.0.0.0:8813:8484 -p=0.0.0.0:2222:2222 -p=0.0.0.0:4470:24444 -p=0.0.0.0:5900:25900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:local
91+ docker run --rm --name=local -p=0.0.0.0:8813:8484 -p=0.0.0.0:2222:2222 -p=0.0.0.0:4470:24444 -p=0.0.0.0:5900:25900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium
9292
93- docker run --rm --name=local -p=4470:24444 -p=5900:25900 -e VNC_PASSWORD=hola elgalu/selenium:local
94- docker run --rm --name=local -p=4470:24444 -p=5900:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:local
95- docker run --rm --name=local -p=0.0.0.0:4470:24444 -p=0.0.0.0:5900:25900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:local
93+ docker run --rm --name=local -p=4470:24444 -p=5900:25900 -e VNC_PASSWORD=hola elgalu/selenium
94+ docker run --rm --name=local -p=4470:24444 -p=5900:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium
95+ docker run --rm --name=local -p=0.0.0.0:4470:24444 -p=0.0.0.0:5900:25900 --add-host myserver.dev:172.17.42.1 elgalu/selenium
9696
9797However adding a custom host IP to server-selenium.local (e.g. bsele ssh config) is more work:
9898
@@ -101,18 +101,18 @@ However adding a custom host IP to server-selenium.local (e.g. bsele ssh config)
101101
102102 vncv localhost:5900 -Scaling=60% &
103103
104- docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium:local
104+ docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium
105105
106106Automatic builds not working for me right now, maybe there is an issue with docker registry v1 vs v2
107107https://registry.hub.docker.com/u/elgalu/docker-selenium/builds_history/31621/
108108
109109## Pulling
110110
111- docker pull registry.hub.docker.com/elgalu/selenium:local
111+ docker pull registry.hub.docker.com/elgalu/selenium
112112
113113## Pull
114114
115- docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium:local
115+ docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium
116116
117117How to connect through vnc (need a vnc client)
118118
0 commit comments