From e4e698315bdbade5ffb1f4f3bbd0713470b4a403 Mon Sep 17 00:00:00 2001 From: Juraj Michalek Date: Mon, 6 May 2019 18:21:08 +0200 Subject: [PATCH] Add information about Docker --- Dockerfile.ubuntu | 14 ++++++++++++++ README.md | 17 ++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.ubuntu diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 0000000..468dc17 --- /dev/null +++ b/Dockerfile.ubuntu @@ -0,0 +1,14 @@ +FROM ubuntu +RUN apt-get update && apt-get install -y git gcc make software-properties-common vim tightvncserver openssh-server +RUN add-apt-repository -y ppa:allegro/5.2 +RUN apt-get update && apt-get install -y liballegro5-dev +RUN apt-get install -y fluxbox +RUN apt-get install -y xterm +RUN apt-get install -y gradle libsdl2-dev +RUN apt-get install -y libgtk-3-dev +RUN mkdir -p ~/.vnc +RUN echo "fluxbox &"> ~/.vnc/xstartup +RUN chmod u+x ~/.vnc/xstartup +EXPOSE 22 +EXPOSE 5901 + diff --git a/README.md b/README.md index c78945c..ee20e35 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,22 @@ FI MUNI - C and C++ examples ============================ Examples related to talks at FI MUNI. -Georgik's blog: http://georgik.sinusgear.com +Georgik's blog: https://georgik.rocks + +Docker image for running examples +--------------------------------- + +It's possible to run most of examples in Docker container: + + docker build -t fedora-devel -f Dockerfile.fedora . + docker run -p 5901:5901 -v /path-to-cpp-examples:/opt/cpp-examples -it fedora-devel /bin/bash + +Applications with UI could be viewed via VNC viewer. +Run following command in running container: + + vncserver + +Then connect your VNC client to localhost:5901. Allegro -------