update formatting

This commit is contained in:
aptalca 2022-01-19 14:31:09 -05:00
parent 6314a7bab0
commit 599bfba93d
5 changed files with 326 additions and 335 deletions

View File

@ -9,7 +9,7 @@ LABEL maintainer="aptalca"
# environment variables
ENV HOME="/config" \
MINETEST_SUBGAME_PATH="/config/.minetest/games"
MINETEST_SUBGAME_PATH="/config/.minetest/games"
# build variables
ARG LDFLAGS="-lintl"
@ -49,6 +49,7 @@ RUN \
curl \
gmp \
hiredis \
leveldb \
libgcc \
libintl \
libstdc++ \
@ -56,9 +57,6 @@ RUN \
lua-socket \
sqlite \
sqlite-libs && \
apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
leveldb && \
echo "**** compile spatialindex ****" && \
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex && \
cd /tmp/spatialindex && \
@ -105,9 +103,8 @@ RUN \
cp -pr /usr/share/minetest/games/* /defaults/games/ && \
echo "**** split after 3rd dot if it exists in minetest tag variable ****" && \
echo "**** so we fetch game version x.x.x etc ****" && \
if \
[ $(echo "$MINETEST_RELEASE" | tr -cd '.' | wc -c) = 3 ] ; \
then MINETEST_RELEASE=${MINETEST_RELEASE%.*}; \
if [ $(echo "$MINETEST_RELEASE" | tr -cd '.' | wc -c) = 3 ]; then \
MINETEST_RELEASE=${MINETEST_RELEASE%.*}; \
fi && \
echo "**** fetch additional game ****" && \
mkdir -p \

View File

@ -9,7 +9,7 @@ LABEL maintainer="aptalca"
# environment variables
ENV HOME="/config" \
MINETEST_SUBGAME_PATH="/config/.minetest/games"
MINETEST_SUBGAME_PATH="/config/.minetest/games"
# build variables
ARG LDFLAGS="-lintl"
@ -49,6 +49,7 @@ RUN \
curl \
gmp \
hiredis \
leveldb \
libgcc \
libintl \
libstdc++ \
@ -56,9 +57,6 @@ RUN \
lua-socket \
sqlite \
sqlite-libs && \
apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
leveldb && \
echo "**** compile spatialindex ****" && \
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex && \
cd /tmp/spatialindex && \
@ -105,9 +103,8 @@ RUN \
cp -pr /usr/share/minetest/games/* /defaults/games/ && \
echo "**** split after 3rd dot if it exists in minetest tag variable ****" && \
echo "**** so we fetch game version x.x.x etc ****" && \
if \
[ $(echo "$MINETEST_RELEASE" | tr -cd '.' | wc -c) = 3 ] ; \
then MINETEST_RELEASE=${MINETEST_RELEASE%.*}; \
if [ $(echo "$MINETEST_RELEASE" | tr -cd '.' | wc -c) = 3 ]; then \
MINETEST_RELEASE=${MINETEST_RELEASE%.*}; \
fi && \
echo "**** fetch additional game ****" && \
mkdir -p \

View File

@ -9,7 +9,7 @@ LABEL maintainer="aptalca"
# environment variables
ENV HOME="/config" \
MINETEST_SUBGAME_PATH="/config/.minetest/games"
MINETEST_SUBGAME_PATH="/config/.minetest/games"
# build variables
ARG LDFLAGS="-lintl"
@ -49,6 +49,7 @@ RUN \
curl \
gmp \
hiredis \
leveldb \
libgcc \
libintl \
libstdc++ \
@ -56,9 +57,6 @@ RUN \
lua-socket \
sqlite \
sqlite-libs && \
apk add --no-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
leveldb && \
echo "**** compile spatialindex ****" && \
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex && \
cd /tmp/spatialindex && \
@ -105,9 +103,8 @@ RUN \
cp -pr /usr/share/minetest/games/* /defaults/games/ && \
echo "**** split after 3rd dot if it exists in minetest tag variable ****" && \
echo "**** so we fetch game version x.x.x etc ****" && \
if \
[ $(echo "$MINETEST_RELEASE" | tr -cd '.' | wc -c) = 3 ] ; \
then MINETEST_RELEASE=${MINETEST_RELEASE%.*}; \
if [ $(echo "$MINETEST_RELEASE" | tr -cd '.' | wc -c) = 3 ]; then \
MINETEST_RELEASE=${MINETEST_RELEASE%.*}; \
fi && \
echo "**** fetch additional game ****" && \
mkdir -p \

View File

@ -7,11 +7,11 @@ mkdir -p \
/config/.minetest/main-config
if [ ! -f "/config/.minetest/main-config/minetest.conf" ]; then
cp /defaults/minetest.conf /config/.minetest/main-config/minetest.conf
cp /defaults/minetest.conf /config/.minetest/main-config/minetest.conf
fi
if [ ! -d "/config/.minetest/games/minimal" ]; then
cp -pr /defaults/games/* /config/.minetest/games/
cp -pr /defaults/games/* /config/.minetest/games/
fi
# permissions