This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Firefox 43.0.1, Sauce Connect 4.3.13
- Loading branch information
Showing
5 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
## Build | ||
|
||
time (docker build -t="elgalu/selenium:2.48.2f" . ;echo $?;beep) | ||
docker run --rm -ti -m 4000M --cpu-quota=0 --name=grid -p=4444:24444 -p=5920:25900 -p=2222:22222 -e DISABLE_ROLLBACK=true -e VIDEO=true -e MEM_JAVA="1024m" -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" -v /dev/shm:/dev/shm elgalu/selenium:2.48.2f | ||
time (docker build -t="elgalu/selenium:2.48.2g" . ;echo $?;beep) | ||
docker run --rm -ti -m 4000M --cpu-quota=0 --name=grid -p=4444:24444 -p=5920:25900 -p=2222:22222 -e DISABLE_ROLLBACK=true -e VIDEO=true -e MEM_JAVA="1024m" -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" -v /dev/shm:/dev/shm elgalu/selenium:2.48.2g | ||
|
||
Wait and id | ||
|
||
docker exec grid wait_all_done 30s | ||
docker inspect -f='{{.Id}}' elgalu/selenium:2.48.2f | ||
docker inspect -f='{{.Id}}' elgalu/selenium:2.48.2g | ||
|
||
Copy | ||
|
||
docker cp grid:/home/application/chrome-deb/. binaries/ | ||
|
||
Build a grid with extra nodes | ||
|
||
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 -v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.48.2f | ||
docker run --rm --name=grid -p 4444:24444 -p 5920:25900 -v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.48.2g | ||
|
||
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:grid elgalu/selenium:2.48.2f | ||
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:grid elgalu/selenium:2.48.2g | ||
|
||
See logs | ||
|
||
docker exec -ti grid bash -c "ls -lah /var/log/sele/" | ||
|
||
Testing in ssh [email protected] | ||
|
||
docker run --rm --name=grid -p=4444:24444 -p=5920:25900 -p=2222:22222 -e SSH_AUTH_KEYS="$(cat ~/.ssh/authorized_keys)" -e VNC_PASSWORD=Hola3 os-registry.stups.zalan.do/tip/selenium:2.48.2f | ||
docker run --rm --name=grid -p=4444:24444 -p=5920:25900 -p=2222:22222 -e SSH_AUTH_KEYS="$(cat ~/.ssh/authorized_keys)" -e VNC_PASSWORD=Hola3 os-registry.stups.zalan.do/tip/selenium:2.48.2g | ||
|
||
## Transfer used browser source artifacts to keep them in the cloud | ||
|
||
|
@@ -47,18 +47,18 @@ List firefox versions via docker exe | |
|
||
## To update image id and digest | ||
|
||
docker inspect -f='{{.Id}}' elgalu/selenium:2.48.2f | ||
docker inspect -f='{{.Id}}' elgalu/selenium:2.48.2g | ||
docker images --digests | ||
|
||
## Run with shared dir | ||
|
||
docker run --rm --name=grid -p=127.0.0.1:4460:24444 -p=127.0.0.1:5910:25900 \ | ||
-v /e2e/uploads:/e2e/uploads elgalu/selenium:2.48.2f | ||
-v /e2e/uploads:/e2e/uploads elgalu/selenium:2.48.2g | ||
docker run --rm --name=grid -p=4460:24444 -p=5910:25900 \ | ||
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:2.48.2f | ||
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:2.48.2g | ||
|
||
|
||
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:2.48.2f | ||
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:2.48.2g | ||
|
||
## Run without shared dir and bind ports to all network interfaces | ||
|
||
|
@@ -81,11 +81,11 @@ List firefox versions via docker exe | |
## Run without dir and bind to all interfaces | ||
Note anything after the image will be taken as arguments for the cmd/entrypoint | ||
|
||
docker run --rm --name=grid -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:5920:25900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.48.2f | ||
docker run --rm --name=grid -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:5920:25900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_AUTH_KEYS="$(cat ~/.ssh/id_rsa.pub)" elgalu/selenium:2.48.2g | ||
|
||
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola elgalu/selenium:2.48.2f | ||
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:2.48.2f | ||
docker run --rm --name=grid -p=0.0.0.0:4470:24444 -p=0.0.0.0:5920:25900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:2.48.2f | ||
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola elgalu/selenium:2.48.2g | ||
docker run --rm --name=grid -p=4470:24444 -p=5920:25900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:2.48.2g | ||
docker run --rm --name=grid -p=0.0.0.0:4470:24444 -p=0.0.0.0:5920:25900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:2.48.2g | ||
|
||
However adding a custom host IP to server-selenium.local (e.g. bsele ssh config) is more work: | ||
|
||
|
@@ -94,30 +94,30 @@ However adding a custom host IP to server-selenium.local (e.g. bsele ssh config) | |
|
||
vncv localhost:5920 -Scaling=60% & | ||
|
||
docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium:2.48.2f | ||
docker run --rm --name=ff -p=0.0.0.0:4471:24444 -p=0.0.0.0:5921:25900 elgalu/selenium:2.48.2g | ||
|
||
Automatic builds not working for me right now, maybe there is an issue with docker registry v1 vs v2 | ||
https://registry.hub.docker.com/u/elgalu/docker-selenium/builds_history/31621/ | ||
|
||
## Push version | ||
|
||
docker login | ||
docker push docker.io/elgalu/selenium:2.48.2f ;echo $?;beep | ||
docker push docker.io/elgalu/selenium:2.48.2g ;echo $?;beep | ||
|
||
Not working maybe because it has automated builds enabled but then it fails in the cloud but works locally | ||
https://registry.hub.docker.com/u/elgalu/selenium/tags/manage/ | ||
|
||
docker push elgalu/selenium:2.48.2f | ||
docker push elgalu/docker-selenium:2.48.2f | ||
docker push docker.io/elgalu/docker-selenium:2.48.2f | ||
docker push elgalu/selenium:2.48.2g | ||
docker push elgalu/docker-selenium:2.48.2g | ||
docker push docker.io/elgalu/docker-selenium:2.48.2g | ||
|
||
## Pulling | ||
|
||
docker pull registry.hub.docker.com/elgalu/selenium:2.48.2f | ||
docker pull registry.hub.docker.com/elgalu/selenium:2.48.2g | ||
|
||
## Pull | ||
|
||
docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium:2.48.2f | ||
docker run -d --name=max -p=0.0.0.0:4411:24444 -p=0.0.0.0:5911:25900 elgalu/selenium:2.48.2g | ||
|
||
How to connect through vnc (need a vnc client) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters