11## Build
22
3- docker build -t="elgalu/selenium:v2.45 .0-oracle1 " . ;echo $?;beep
3+ docker build -t="elgalu/selenium:v2.46 .0-base1 " . ;echo $?;beep
44
55## Run with shared dir
66
77 docker run --rm --name=ch -p=127.0.0.1:4460:4444 -p=127.0.0.1:5910:5900 \
8- -v /e2e/uploads:/e2e/uploads elgalu/selenium:v2.45.0-oracle1
9- docker run --rm --name=ch -p=127.0.0.1:4460:4444 -p=127.0.0.1:5910:5900 \
10- -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:v2.45.0-oracle1
8+ -v /e2e/uploads:/e2e/uploads elgalu/selenium:v2.46.0-base1
9+ docker run --rm --name=ch -p=4460:4444 -p=5910:5900 \
10+ -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) elgalu/selenium:v2.46.0-base1
11+
1112
12- docker run --rm --name=ff -p=127.0.0.1:4461:4444 -p=127.0.0.1:5911:5900 -v /e2e/uploads:/e2e/uploads elgalu/selenium:v2.45 .0-oracle1
13+ docker run --rm --name=ff -p=127.0.0.1:4461:4444 -p=127.0.0.1:5911:5900 -v /e2e/uploads:/e2e/uploads elgalu/selenium:v2.46 .0-base1
1314
1415## Run without shared dir and bind ports to all network interfaces
1516
3233## Run without dir and bind to all interfaces
3334Note anything after the image will be taken as arguments for the cmd/entrypoint
3435
35- docker run --rm --name=ch -p=0.0.0.0:8813:8484 -p=0.0.0.0:2222:2222 -p=0.0.0.0:4470:4444 -p=0.0.0.0:5920:5900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)" -e WITH_GUACAMOLE=true elgalu/selenium:v2.45 .0-oracle1
36+ docker run --rm --name=ch -p=0.0.0.0:8813:8484 -p=0.0.0.0:2222:2222 -p=0.0.0.0:4470:4444 -p=0.0.0.0:5920:5900 -e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 -e VNC_PASSWORD=hola -e SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)" -e WITH_GUACAMOLE=true elgalu/selenium:v2.46 .0-base1
3637
37- docker run --rm --name=ch -p=4470:4444 -p=5920:5900 -e VNC_PASSWORD=hola elgalu/selenium:v2.45 .0-oracle1
38- docker run --rm --name=ch -p=4470:4444 -p=5920:5900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:v2.45 .0-oracle1
39- docker run --rm --name=ch -p=0.0.0.0:4470:4444 -p=0.0.0.0:5920:5900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:v2.45 .0-oracle1
38+ docker run --rm --name=ch -p=4470:4444 -p=5920:5900 -e VNC_PASSWORD=hola elgalu/selenium:v2.46 .0-base1
39+ docker run --rm --name=ch -p=4470:4444 -p=5920:5900 -e VNC_PASSWORD=hola docker.io/elgalu/selenium:v2.46 .0-base1
40+ docker run --rm --name=ch -p=0.0.0.0:4470:4444 -p=0.0.0.0:5920:5900 --add-host myserver.dev:172.17.42.1 elgalu/selenium:v2.46 .0-base1
4041
4142However adding a custom host IP to server-selenium.local (e.g. bsele ssh config) is more work:
4243
@@ -45,32 +46,32 @@ However adding a custom host IP to server-selenium.local (e.g. bsele ssh config)
4546
4647 vncv localhost:5920 -Scaling=60% &
4748
48- docker run --rm --name=ff -p=0.0.0.0:4471:4444 -p=0.0.0.0:5921:5900 elgalu/selenium:v2.45 .0-oracle1
49+ docker run --rm --name=ff -p=0.0.0.0:4471:4444 -p=0.0.0.0:5921:5900 elgalu/selenium:v2.46 .0-base1
4950
5051Automatic builds not working for me right now, maybe there is an issue with docker registry v1 vs v2
5152https://registry.hub.docker.com/u/elgalu/docker-selenium/builds_history/31621/
5253
5354## Push version
5455
5556 docker login
56- docker push docker.io/elgalu/selenium:v2.45 .0-oracle1 ;echo $?;beep
57- docker tag elgalu/selenium:v2.45 .0-oracle1 elgalu/selenium:latest
57+ docker push docker.io/elgalu/selenium:v2.46 .0-base1 ;echo $?;beep
58+ docker tag elgalu/selenium:v2.46 .0-base1 elgalu/selenium:latest
5859 docker push docker.io/elgalu/selenium:latest
5960
6061Not working maybe because it has automated builds enabled but then it fails in the cloud but works locally
6162https://registry.hub.docker.com/u/elgalu/selenium/tags/manage/
6263
63- docker push elgalu/selenium:v2.45 .0-oracle1
64- docker push elgalu/docker-selenium:v2.45 .0-oracle1
65- docker push docker.io/elgalu/docker-selenium:v2.45 .0-oracle1
64+ docker push elgalu/selenium:v2.46 .0-base1
65+ docker push elgalu/docker-selenium:v2.46 .0-base1
66+ docker push docker.io/elgalu/docker-selenium:v2.46 .0-base1
6667
6768## Pulling
6869
69- docker pull registry.hub.docker.com/elgalu/selenium:v2.45 .0-oracle1
70+ docker pull registry.hub.docker.com/elgalu/selenium:v2.46 .0-base1
7071
7172## Pull
7273
73- docker run -d --name=max -p=0.0.0.0:4411:4444 -p=0.0.0.0:5911:5900 elgalu/selenium:v2.45 .0-oracle1
74+ docker run -d --name=max -p=0.0.0.0:4411:4444 -p=0.0.0.0:5911:5900 elgalu/selenium:v2.46 .0-base1
7475
7576How to connect through vnc (need a vnc client)
7677
@@ -111,6 +112,59 @@ Check it works
111112 },
112113 },
113114
115+ ## Some stuff that didn't help solve the chrome crashed issue
116+ Dockerfile
117+
118+ # Disable the SUID sandbox so that Chrome can launch without being in a privileged container.
119+ # One unfortunate side effect is that `google-chrome --help` will no longer work.
120+ RUN dpkg-divert --add --rename --divert \
121+ /opt/google/chrome/google-chrome.real /opt/google/chrome/google-chrome \
122+ && echo "#!/bin/bash\nexec /opt/google/chrome/google-chrome.real --disable-setuid-sandbox \"\$@\"" \
123+ > /opt/google/chrome/google-chrome \
124+ && chmod 755 /opt/google/chrome/google-chrome
125+
126+ #=========================
127+ # Install Xpra and Xephyr
128+ #=========================
129+ USER root
130+ RUN wget -qO - http://winswitch.org/gpg.asc | apt-key add - \
131+ && echo "deb http://winswitch.org/ ${UBUNTU_FLAVOR} main" > /etc/apt/sources.list.d/winswitch.list
132+ RUN apt-get update -qqy \
133+ && apt-get -qqy install \
134+ xpra \
135+ xserver-xephyr \
136+ xserver-xorg-video-dummy \
137+ && mkdir -p ${HOME}/.xpra \
138+ && chown ${NORMAL_USER}:${NORMAL_GROUP} ${HOME}/.xpra \
139+ && rm -rf /var/lib/apt/lists/*
140+
141+ start.sh
142+
143+ # Xorg -dpi 96 -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile ${XVFB_LOG} -config ~/xorg.conf &
144+ # XORG_CMD="Xorg -dpi 96 -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile ${XVFB_LOG} -config ~/xorg.conf"
145+ # xpra --no-daemon --xvfb="${XORG_CMD}" start ${DISPLAY}
146+ # XVFB_PID=$!
147+
148+ # xpra start ${DISPLAY}
149+ # sleep 5
150+
151+ # xpra stop ${DISPLAY}
152+ # sleep 5
153+
154+ # dbus-launch - Utility to start a message bus from a shell script
155+ # With no arguments, dbus-launch will launch a session bus instance
156+ # and print the address and PID of that instance to standard output
157+ # dbus-launch
158+ # DBUS_PID=$!
159+ # | sed -e "DBUS_SESSION_BUS_PID="
160+
161+ # --xvfb -auth /home/docker/.Xauthority
162+ # --start-child="Xephyr -ac -screen ${SCREEN_SIZE} -query localhost -host-cursor -reset -terminate ${DISPLAY}" \
163+ # --xvfb="Xorg -dpi 96 -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile ${XVFB_LOG} -config ~/xorg.conf"
164+ # xpra start ${DISPLAY} --no-daemon --no-pulseaudio --no-mdns --no-notifications \
165+ # --start-child="Xephyr -ac -screen ${SCREEN_SIZE} -query localhost -host-cursor -reset -terminate ${XEPHYR_DISPLAY}" \
166+ # --xvfb="Xvfb ${DISPLAY} +extension Composite -screen ${SCREEN_NUM} ${GEOMETRY} -nolisten tcp -noreset"
167+
114168## TODO R&D
115169
116170- This comes handy when testing things without disturbing your normal awesome desktop:
0 commit comments