From 554506d898d2fcd3d641f66903971490e7a7c9c7 Mon Sep 17 00:00:00 2001 From: Misha <42717232+SirMishaa@users.noreply.github.com> Date: Sun, 30 Aug 2020 17:55:11 +0200 Subject: [PATCH 1/3] ci: make dockerfile in order to compile the game using docker --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..bd0de535 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu:20.04 +MAINTAINER SirMishaa + +RUN apt update && apt upgrade -y && apt install curl -y +RUN apt install git -y + +WORKDIR /usr/lib + +RUN git clone https://github.com/DigitalPulseSoftware/NazaraEngine NazaraEngine + +# Configure env for tzdata +ENV TZ=Europe/Brussels +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +RUN apt install libopenal-dev libsndfile1-dev libfreetype6-dev libxcb-cursor-dev libxcb-ewmh-dev libxcb-randr0-dev \ + libxcb-icccm4-dev libxcb-keysyms1-dev libx11-dev mesa-common-dev libgl1-mesa-dev libassimp-dev libsdl2-dev -y + +WORKDIR /usr/lib/NazaraEngine/build + +RUN ./premake5-linux64 gmake + +WORKDIR /usr/lib/NazaraEngine/build/gmake + +# Install GCC +RUN apt install build-essential -y +RUN make -j4 From 06b0e4c082419a3f7de9ded43161931a1fd6ba51 Mon Sep 17 00:00:00 2001 From: Misha <42717232+SirMishaa@users.noreply.github.com> Date: Sun, 30 Aug 2020 18:17:16 +0200 Subject: [PATCH 2/3] fix: use debian instead of ubuntu to fix issue with newton lib --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bd0de535..9a24b226 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM debian:stable MAINTAINER SirMishaa RUN apt update && apt upgrade -y && apt install curl -y From eb5124224f1edaa3353a09a4398ab908fd571468 Mon Sep 17 00:00:00 2001 From: Mishaa Date: Sun, 30 Aug 2020 22:32:23 +0200 Subject: [PATCH 3/3] ci: add configuration file for docker and compilation of burgwar --- Dockerfile | 9 +++++++++ build/config-docker.lua.default | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 build/config-docker.lua.default diff --git a/Dockerfile b/Dockerfile index 9a24b226..d9ba7c34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,3 +24,12 @@ WORKDIR /usr/lib/NazaraEngine/build/gmake # Install GCC RUN apt install build-essential -y RUN make -j4 + +WORKDIR /root/BurgWar/build + +RUN apt install qt5-default curl -y + +COPY config-docker.lua.default config.lua + +RUN ./premake5-linux64 gmake +RUN make diff --git a/build/config-docker.lua.default b/build/config-docker.lua.default new file mode 100644 index 00000000..6bdfc1d1 --- /dev/null +++ b/build/config-docker.lua.default @@ -0,0 +1,26 @@ +-- This file contains special configurations values, such as directories to extern libraries (Qt) +-- Please copy this file to a config.lua with your values + +-- Use separate directories option otherwise + +-- Use PackageFolder when directory contains include/bin(/lib) directories, use [Bin|Include|Lib]Path otherwise + +-- Curl precompiled binaries +cURL = { + PackageFolder = ":system" -- Use ":system" to tell this library is installed system-wide (typically on Linux) +} + +-- Nazara base directory (should contains bin, include and lib directories) +Nazara = { + PackageFolder = [[/usr/lib/NazaraEngine/package/]] +} + +-- Qt base directory (should contains bin, include and lib directories) +Qt = { + MocPath = [[/usr/lib/x86_64-linux-gnu/qt5/bin/moc]], + BinPath = [[/usr/lib/x86_64-linux-gnu/]], + LibPath = [[/usr/lib/x86_64-linux-gnu/]], + IncludePath = [[/usr/include/x86_64-linux-gnu/qt5/]] +} + +-- This work will work with root Dockerfile, you MUST NOT rename the file.