From c1c97b91bfa615262d16af9bc3e8801bf70b99da Mon Sep 17 00:00:00 2001 From: Tomohisa Kusano Date: Sat, 6 Dec 2014 04:52:59 +0900 Subject: [PATCH] use xdotool to make the window fill screen --- Dockerfile | 1 + entrypoint.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index dd3f6c5..43bc079 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN apt-get update \ wget \ x11vnc \ xdg-utils \ + xdotool \ xvfb ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb /chrome.deb diff --git a/entrypoint.sh b/entrypoint.sh index 08b1ba6..cfa62be 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,5 +3,6 @@ set -e Xvfb :1 -screen 0 1024x768x24 & DISPLAY=:1 /opt/google/chrome/chrome --user-data-dir --no-sandbox & +DISPLAY=:1 xdotool search --sync --onlyvisible --class "chrome" windowsize 1024 768 exec "$@"