Go to file
2019-04-08 22:08:38 +03:00
conf drop bash + clean 2019-04-08 22:08:38 +03:00
.gitignore init commit 2019-03-27 14:36:43 +00:00
2.Dockerfile drop bash + clean 2019-04-08 22:08:38 +03:00
alpine.Dockerfile drop bash + clean 2019-04-08 22:08:38 +03:00
LICENSE init commit 2019-03-27 14:36:43 +00:00
README.md drop bash + clean 2019-04-08 22:08:38 +03:00
ubuntu.Dockerfile drop bash + clean 2019-04-08 22:08:38 +03:00

Chrome-vnc

A multi-arch Docker chome VNC

Build Steps

Build and test images

docker build -f ubuntu.Dockerfile -t urielch/chrome-vnc:ubuntu-$(dpkg --print-architecture) .
docker build -f alpine.Dockerfile -t urielch/chrome-vnc:alpine-$(dpkg --print-architecture) .

try it on a hevy website

docker run -d --rm -p 5900:5900 -e EXTRA_CHROME_OPTION="--lang=fr-FR,fr" -e X11_W=1024 -e X11_H=768 -e LANG="fr_FR.UTF-8" -e LC_ALL="fr_FR.UTF-8" -e URL=https://maps.google.fr --name chrome-ubu urielch/chrome-vnc:ubuntu-$(dpkg --print-architecture)
docker run -d --rm -p 5901:5900 -e EXTRA_CHROME_OPTION="--lang=fr-FR,fr" -e X11_W=1024 -e X11_H=768 -e LANG="fr_FR.UTF-8" -e LC_ALL="fr_FR.UTF-8" -e URL=https://maps.google.fr --name chrome-alp urielch/chrome-vnc:alpine-$(dpkg --print-architecture)
xvnc4viewer 127.0.0.1:0 &
xvnc4viewer 127.0.0.1:1 &

Upload arch images

docker login
docker push urielch/chrome-vnc:ubuntu-$(dpkg --print-architecture)
docker push urielch/chrome-vnc:alpine-$(dpkg --print-architecture)

Update multiArch Docker tag

edit ~/.docker/config.json add:

{
    "experimental": "enabled"
}
docker rmi urielch/chrome-vnc:latest
docker manifest inspect urielch/chrome-vnc:latest
docker manifest create --amend urielch/chrome-vnc:latest urielch/chrome-vnc:amd64 urielch/chrome-vnc:armhf
docker manifest --purge push urielch/chrome-vnc:latest

Test multi arch image

docker pull urielch/chrome-vnc:latest
docker run -p 5900:5900 --name chrome urielch/chrome-vnc:latest

Cleanup images

docker rm $(docker ps -a -q)
docker rmi $(docker images -q)