From 2ca2bc35a3ab8ad80da1ae39db23a839aeaa42d1 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Thu, 7 Dec 2017 07:13:28 +0000 Subject: [PATCH] bump to alpine 3.7 and fix continuation lines --- Dockerfile | 22 +++++++++------------- README.md | 1 + 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index f81ffb6..467305c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM lsiobase/alpine:3.6 +FROM lsiobase/alpine:3.7 MAINTAINER sparklyballs # set version label @@ -9,8 +9,11 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA # package version ARG DAAPD_VER="25.0" -# install build packages +# work around for hanging configure +ARG CONFIG_SHELL=/bin/sh + RUN \ + echo "**** install build packages ****" && \ apk add --no-cache --virtual=build-dependencies \ alsa-lib-dev \ autoconf \ @@ -48,8 +51,7 @@ RUN \ --repository http://nl.alpinelinux.org/alpine/edge/testing \ libantlr3c-dev \ mxml-dev && \ - -# install runtime packages + echo "**** install runtime packages ****" && \ apk add --no-cache \ avahi \ confuse \ @@ -69,8 +71,7 @@ RUN \ --repository http://nl.alpinelinux.org/alpine/edge/testing \ libantlr3c \ mxml && \ - -# make antlr wrapper + echo "**** make antlr wrapper and compile forked-daapd ****" && \ mkdir -p \ /tmp/source/forked-daapd && \ echo \ @@ -78,8 +79,6 @@ RUN \ echo \ "exec java -cp /tmp/source/antlr-3.4-complete.jar org.antlr.Tool \"\$@\"" >> /tmp/source/antlr3 && \ chmod a+x /tmp/source/antlr3 && \ - -# compile forked-daapd curl -o \ /tmp/source/antlr-3.4-complete.jar -L \ http://www.antlr3.org/download/antlr-3.4-complete.jar && \ @@ -103,8 +102,7 @@ RUN \ --mandir=/usr/share/man \ --prefix=/app \ --sysconfdir=/etc && \ - -# 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 && \ CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \ if echo $CPU_CORES | grep -E -q '^[0-9]+$'; then \ @@ -116,13 +114,11 @@ RUN \ elif [ "$CPU_CORES" -gt 3 ]; then \ CPU_CORES=$(( CPU_CORES - 1 )); fi \ else CPU_CORES="1"; fi && \ - make -j $CPU_CORES && \ set +ex && \ make install && \ cp /etc/forked-daapd.conf /etc/forked-daapd.conf.orig && \ - -# cleanup + echo "**** cleanup ****" && \ apk del --purge \ build-dependencies && \ rm -rf \ diff --git a/README.md b/README.md index efc5195..5320845 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ For further setup options of remotes etc, check out the daapd website, [Forked-d ## Versions ++ **07.12.17:** Rebase to alpine linux 3.7. + **03.12.17:** Bump to 25.0, cpu core counting routine for faster builds, linting fixes. + **26.05.17:** Rebase to alpine linux 3.6. + **06.02.17:** Rebase to alpine linux 3.5.