From 370279b2dc3a80c0c6bcbd3b7483d25e08f35ec8 Mon Sep 17 00:00:00 2001 From: Ryan Kennedy Date: Sat, 17 Dec 2016 18:58:40 +1100 Subject: [PATCH] braindead -- of course we need XVFB --- Dockerfile | 4 ++-- runscript.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b97c444..1781f38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,8 @@ RUN yes n | /opt/TWS/ibgateway-latest-standalone-linux-x64-v960.2a.sh #CMD yes # Launch a virtual screen -#RUN Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null & -#RUN export DISPLAY=:1 +RUN Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null & +RUN export DISPLAY=:1 ADD runscript.sh runscript.sh CMD bash runscript.sh diff --git a/runscript.sh b/runscript.sh index da06b97..169ba05 100644 --- a/runscript.sh +++ b/runscript.sh @@ -1,6 +1,6 @@ #!/bin/bash -/opt/IBController/Scripts/DisplayBannerAndLaunch.sh & +xvfb-run -a /opt/IBController/Scripts/DisplayBannerAndLaunch.sh & # Tail latest in log dir sleep 1 tail -f $(find $LOG_PATH -maxdepth 1 -type f -printf "%T@ %p\n" | sort -n | tail -n 1 | cut -d' ' -f 2-) &