Merge pull request #9 from linuxserver/3.7

bump to alpine 3.7 and fix continuation lines
This commit is contained in:
sparklyballs 2017-12-17 00:13:10 +00:00 committed by GitHub
commit 94808c3b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 21 deletions

View File

@ -1,10 +1,10 @@
FROM lsiobase/alpine:3.6 FROM lsiobase/alpine:3.7
MAINTAINER sparklyballs
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE
ARG VERSION ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# environment variables # environment variables
ENV HOME="/config" \ ENV HOME="/config" \
@ -13,8 +13,8 @@ MINETEST_SUBGAME_PATH="/config/.minetest/games"
# build variables # build variables
ARG LDFLAGS="-lintl" ARG LDFLAGS="-lintl"
# install build packages
RUN \ RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \ apk add --no-cache --virtual=build-dependencies \
bzip2-dev \ bzip2-dev \
cmake \ cmake \
@ -40,12 +40,10 @@ RUN \
openal-soft-dev \ openal-soft-dev \
python-dev \ python-dev \
sqlite-dev && \ sqlite-dev && \
apk add --no-cache --virtual=build-dependencies \
apk add --no-cache --virtual=build-dependencies \
--repository http://nl.alpinelinux.org/alpine/edge/testing \ --repository http://nl.alpinelinux.org/alpine/edge/testing \
leveldb-dev && \ leveldb-dev && \
echo "**** install runtime packages ****" && \
# install runtime packages
apk add --no-cache \ apk add --no-cache \
curl \ curl \
gmp \ gmp \
@ -57,17 +55,15 @@ apk add --no-cache --virtual=build-dependencies \
lua-socket \ lua-socket \
sqlite \ sqlite \
sqlite-libs && \ sqlite-libs && \
apk add --no-cache \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \ --repository http://nl.alpinelinux.org/alpine/edge/testing \
leveldb && \ leveldb && \
echo "**** compile spatialindex ****" && \
# compile spatialindex
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex && \ git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex && \
cd /tmp/spatialindex && \ cd /tmp/spatialindex && \
cmake . \ cmake . \
-DCMAKE_INSTALL_PREFIX=/usr && \ -DCMAKE_INSTALL_PREFIX=/usr && \
# attempt to set number of cores available for make to use echo "**** attempt to set number of cores available for make to use ****" && \
set -ex && \ set -ex && \
CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \ CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \
if echo $CPU_CORES | grep -E -q '^[0-9]+$'; then \ if echo $CPU_CORES | grep -E -q '^[0-9]+$'; then \
@ -79,11 +75,9 @@ apk add --no-cache \
elif [ "$CPU_CORES" -gt 3 ]; then \ elif [ "$CPU_CORES" -gt 3 ]; then \
CPU_CORES=$(( CPU_CORES - 1 )); fi \ CPU_CORES=$(( CPU_CORES - 1 )); fi \
else CPU_CORES="1"; fi && \ else CPU_CORES="1"; fi && \
make -j $CPU_CORES && \ make -j $CPU_CORES && \
make install && \ make install && \
echo "**** compile minetestserver ****" && \
# compile minetestserver
git clone --depth 1 https://github.com/minetest/minetest.git /tmp/minetest && \ git clone --depth 1 https://github.com/minetest/minetest.git /tmp/minetest && \
cp /tmp/minetest//minetest.conf.example /defaults/minetest.conf && \ cp /tmp/minetest//minetest.conf.example /defaults/minetest.conf && \
cd /tmp/minetest && \ cd /tmp/minetest && \
@ -104,16 +98,13 @@ apk add --no-cache \
make -j $CPU_CORES && \ make -j $CPU_CORES && \
set +ex && \ set +ex && \
make install && \ make install && \
echo "**** copy games to temporary folder ****" && \
# copy games to temporary folder
mkdir -p \ mkdir -p \
/defaults/games && \ /defaults/games && \
cp -pr /usr/share/minetest/games/* /defaults/games/ && \ cp -pr /usr/share/minetest/games/* /defaults/games/ && \
echo "**** fetch additional game from git ****" && \
# fetch additional game from git
git clone --depth 1 https://github.com/minetest/minetest_game.git /defaults/games/minetest && \ git clone --depth 1 https://github.com/minetest/minetest_game.git /defaults/games/minetest && \
echo "**** cleanup ****" && \
# cleanup
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \
rm -rf \ rm -rf \

View File

@ -76,6 +76,7 @@ You can find the world maps, mods folder and config files in /config/.minetest.
## Versions ## Versions
+ **08.12.17:** Rebase to alpine 3.7.
+ **30.11.17:** Use cpu core counting routine to speed up build time. + **30.11.17:** Use cpu core counting routine to speed up build time.
+ **26.05.17:** Rebase to alpine 3.6. + **26.05.17:** Rebase to alpine 3.6.
+ **14.02.17:** Rebase to alpine 3.5. + **14.02.17:** Rebase to alpine 3.5.