tests/tools/Docker/beremiz-sikuli/Dockerfile
branchwxPython4
changeset 3679 b6bca75bf3fa
parent 3549 0af7b6a96c53
--- a/tests/tools/Docker/beremiz-sikuli/Dockerfile	Fri Nov 18 07:34:29 2022 +0100
+++ b/tests/tools/Docker/beremiz-sikuli/Dockerfile	Sun Nov 20 18:36:13 2022 +0100
@@ -22,15 +22,16 @@
     && TZ="America/Paris" \
        DEBIAN_FRONTEND="noninteractive" \
        apt-get install -y --no-install-recommends \
-               `# run sikuli` \
+               `# to run sikuli` \
                wget \
                libopencv4.2-java \
                openjdk-11-jre \
                \
-               `# run X based tests` \
+               `# to run X based tests` \
                fluxbox \
                wmctrl xdotool xvfb \
                x11vnc xterm xnest \
+               materia-gtk-theme \
                \
                `# to build tested apps` \
                build-essential automake flex bison mercurial \
@@ -38,6 +39,11 @@
                libpython2.7-dev libssl-dev \
                python2 virtualenv cmake
 
+
+# force bigger font and flat theme for GTK in order to make OCR more reliable
+RUN mkdir -p /etc/gtk-3.0
+RUN env echo -e '[Settings]\ngtk-font-name=FreeSans,12\ngtk-theme-name=Materia\n' > /etc/gtk-3.0/settings.ini
+
 # link obtained from https://raiman.github.io/SikuliX1/downloads.html
 RUN set -xe && \
     wget -qP /usr/local/bin \