From 540415e35b4fe7c44a9f7e8e97009408fd2a56f6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 18 Oct 2020 02:27:54 +0100 Subject: [PATCH] Start working on a minetest Dockerfile, but it's nowhere near finished --- images/minetest/Dockerfile | 31 +++++++++++++++++++++++++++++++ images/minetest/type.txt | 1 + 2 files changed, 32 insertions(+) create mode 100644 images/minetest/Dockerfile create mode 100644 images/minetest/type.txt diff --git a/images/minetest/Dockerfile b/images/minetest/Dockerfile new file mode 100644 index 0000000..ef8650a --- /dev/null +++ b/images/minetest/Dockerfile @@ -0,0 +1,31 @@ +ARG REPO_LOCATION +# ARG BASE_VERSION + +FROM ${REPO_LOCATION}minideb AS builder + +# TODO: We're missing a *lot* of packages here probably +RUN install_packages git ca-certificates g++ make libc6-dev libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev + +RUN git clone https://github.com/minetest/minetest.git /srv/minetest + +ENV CPATH /usr/include/lua5.1:/usr/include/luajit-2.1 +WORKDIR /srv/minetest + +RUN git checkout stable-5 + +RUN cmake . -DRUN_IN_PLACE=FALSE -DCMAKE_BUILD_TYPE=Release -DENABLE_SOUND=FALSE -DBUILD_SERVER=1 -DBUILD_CLIENT=0 -DVERSION_EXTRA=sbrl1 -DENABLE_LUAJIT=TRUE -DLUA_LIBRARY=/usr/lib/arm-linux-gnueabihf/libluajit-5.1.so -DENABLE_SPATIAL=ON -DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 + +# A multi-threaded buiild actually uses quite a bit of memory. Beware! +RUN make -j4 + +######################################################################## + +FROM ${REPO_LOCATION}minideb + +RUN install_packages + +# Things to copy after installation: +# /usr/local/share/minetest +# /usr/local/bin/minetestserver + +#COPY --from=builder /srv/minetest/ diff --git a/images/minetest/type.txt b/images/minetest/type.txt new file mode 100644 index 0000000..bdb9670 --- /dev/null +++ b/images/minetest/type.txt @@ -0,0 +1 @@ +docker