Add information about Docker

This commit is contained in:
Juraj Michalek
2019-05-06 18:21:08 +02:00
parent 5c58033e46
commit e4e698315b
2 changed files with 30 additions and 1 deletions

14
Dockerfile.ubuntu Normal file
View File

@@ -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

View File

@@ -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
-------