You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrey Arapov 0153358f3c
updates
2 years ago
Dockerfile updates 2 years ago
LICENSE Initial commit 2 years ago
README.md update readme 2 years ago
docker-compose.yml updates 2 years ago
launch allow passing the arguments 2 years ago

README.md

Launching Chromium in Docker

The simplest way:

git clone https://github.com/arno01/chromium.git
cd chromium
docker-compose run chromium

If it does not start, you may need to allow your user making local connections to X server, which can be achieved with this command on host:

xhost +SI:localuser:$(id -un)

You can use the following shortcut function and place it to your ~/.bash_aliases file:

function docker_helper() {
    pushd ~/docker/$1
    docker-compose rm -f "$1"
    docker-compose run -d --name "$1" "$@"
    popd
}

function chromium() {
    docker_helper "$FUNCNAME" "$@"
}

Then just use chromium command to launch Chromium.

Rebuilding the image

You may want to rebuild this image on your own:

docker pull ubuntu:xenial
docker build -t andrey01/chromium .

Extra Notes

Good, stable vsync and HW acceleration

chrome://flags/
Enable "Override software rendering list"

Verify

chrome://gpu/

To see whether you have the best result, you should have stable 60 FPS at following tests

http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html
http://www.vsynctester.com/

You may want to disable Google’s VP8 & VP9 video codecs: “MSE & WebM VP9” and “WebM VP8” as there is no hardware decoding for them. To do this, install h264ify extension from

https://chrome.google.com/webstore/detail/h264ify/aleakchihdccplidncghkekgioiakgal?hl=en-US

Check the codecs

https://www.youtube.com/html5