mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-15 08:13:38 +01:00
Add information about Docker
This commit is contained in:
14
Dockerfile.ubuntu
Normal file
14
Dockerfile.ubuntu
Normal 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
|
||||||
|
|
||||||
17
README.md
17
README.md
@@ -2,7 +2,22 @@ FI MUNI - C and C++ examples
|
|||||||
============================
|
============================
|
||||||
|
|
||||||
Examples related to talks at FI MUNI.
|
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
|
Allegro
|
||||||
-------
|
-------
|
||||||
|
|||||||
Reference in New Issue
Block a user