Skip to content

Commit

Permalink
Configure VNC for testing Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Feb 5, 2019
1 parent d0bee1a commit 4554877
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM ubuntu:18.10

#TZdata will interactively ask for this info
ENV TZ=Europe/Minsk
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# libsdl or wxPython 4.0.4
RUN apt update && apt install -y \
apt-file \
Expand All @@ -8,6 +12,8 @@ RUN apt update && apt install -y \
libxxf86vm1 \
libsm6 \
libnotify4 \
x11vnc \
xvfb \
python2 \
python-pip \
git
Expand All @@ -19,4 +25,14 @@ RUN pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ub
pip install -r requirements.txt && \
pyinstaller -p bundledApps bundledApps/WAIL.py --onefile --windowed --clean

RUN chmod a+x /wail/dist/WAIL
# VNC
ENV DISPLAY :20
EXPOSE 5920

# Until this script in master (pull from Git above), use one in branch
ADD entrypoint.sh /wail/entrypoint.sh

RUN chmod a+x /wail/dist/WAIL
RUN chmod a+x /wail/entrypoint.sh

ENTRYPOINT ["/wail/entrypoint.sh"]
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# entrypoint.sh file for starting the xvfb with better screen resolution, configuring and running the vnc server, pulling the code from git and then running the test.
export DISPLAY=:20
Xvfb :20 -screen 0 1366x768x16 &
x11vnc -passwd wail -display :20 -N -forever &
wait

0 comments on commit 4554877

Please sign in to comment.