tests & fixes
This commit is contained in:
parent
b44154cd1d
commit
3d82b3922a
34
Dockerfile
34
Dockerfile
@ -4,11 +4,11 @@ FROM ubuntu:oracular
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends xserver-xorg-video-all \
|
||||
xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils \
|
||||
chromium-browser unclutter
|
||||
chromium-browser unclutter fbset
|
||||
|
||||
#apt-get install -y --no-install-recommends xorg xserver-xorg-input-evdev xserver-xorg-input-all
|
||||
|
||||
RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends wget gnupg2
|
||||
RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends wget gnupg2 x11-utils
|
||||
#RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends unclutter xinit x11-xserver-utils
|
||||
|
||||
# TODO: keyboard should be configurable in runtime
|
||||
@ -45,6 +45,30 @@ RUN apt-get update
|
||||
RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends google-chrome-stable
|
||||
RUN DEBIAN_FRONTEND='noninteractive' apt-get install -y -f
|
||||
|
||||
CMD startx &
|
||||
CMD /usr/bin/xinit google-chrome --kiosk --no-first-run --suppress-message-center-popups --block-new-web-contents --no-default-browser-check --password-store=basic --ignore-certificate-errors --ignore-ssl-errors --simulate-outdated-no-au='Tue, 31 Dec 2199 23:59:59 GMT' "$URL" -- :0 -nolisten tcp vt1
|
||||
#CMD /usr/bin/X :0 -nolisten tcp vt1
|
||||
RUN printf "\
|
||||
#xrandr \n\
|
||||
#xrandr --addmode VGA-0 1200x900_60.00\n\
|
||||
#xrandr --output default --gamma 0:0:0 --mode 1200x1000\n\
|
||||
#OUTPUT=\`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'\`\n\
|
||||
#xrandr -display :0 --output \$OUTPUT --set \"Broadcast RGB\" \"Full\"\n\
|
||||
#xsetroot #000000\n\
|
||||
#GEO="$(fbset -s | awk '$1 == "geometry" { print $2":"$3 }')" \n\
|
||||
#fbset -s \n\
|
||||
export WIDTH=\$(xrandr --current | grep ' connected ' | cut -d ' ' -f 3 | cut -d '+' -f 1 | cut -d'x' -f1) \n\
|
||||
export HEIGHT=\$(xrandr --current | grep ' connected ' | cut -d ' ' -f 3 | cut -d '+' -f 1 | cut -d'x' -f2) \n\
|
||||
#vsize=`xdpyinfo | sed -n '/dimensions/s/[^0-9]*\([0-9]*\)x\([0-9]*\).*/\1/p'` \n\
|
||||
#hsize=`xdpyinfo | sed -n '/dimensions/s/[^0-9]*\([0-9]*\)x\([0-9]*\).*/\2/p'` \n\
|
||||
#xrandr | grep \* | sed -n 's/[^0-9]*\([0-9]*\)x\([0-9]*\).*/\2/p' \n\
|
||||
#xdpyinfo | awk '/dimensions:/ { print $2; exit }' \n\
|
||||
xset -dpms \n\
|
||||
xset s off \n\
|
||||
xset s noblank \n\
|
||||
#echo "Resolution: \$WIDTH,\$HEIGHT" \n\
|
||||
unclutter & \n\
|
||||
google-chrome --no-sandbox --window-position=0,0 --window-size=\$WIDTH,\$HEIGHT --start-maximized --no-default-browser-check --start-fullscreen --kiosk --noerrdialogs --no-first-run --disable-infobars --incognito --overscroll-history-navigation=0 --disable-pinch --disable-translate --fast --fast-start --disable-features=TranslateUI --password-store=basic --app="\$url"\n\
|
||||
" > /usr/local/bin/chrome-kiosk-wrapper
|
||||
|
||||
RUN chmod +x /usr/local/bin/chrome-kiosk-wrapper
|
||||
|
||||
CMD /usr/bin/xinit /usr/local/bin/chrome-kiosk-wrapper -- :0 -nolisten tcp vt1
|
||||
#cmd sleep infinity
|
||||
|
Loading…
x
Reference in New Issue
Block a user