Skip to content

Commit

Permalink
rebase to alpine 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sparklyballs committed Aug 20, 2018
1 parent 7dcb564 commit 662d02f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM lsiobase/alpine:3.7 as buildstage
FROM lsiobase/alpine:3.8 as buildstage
############## build stage ##############

RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
apk add --no-cache \
alsa-lib-dev \
autoconf \
automake \
Expand All @@ -27,18 +27,18 @@ RUN \
libgcrypt-dev \
libogg-dev \
libplist-dev \
libressl-dev \
libsodium-dev \
libtool \
libunistring-dev \
libwebsockets-dev \
make \
openjdk8-jre-base \
openssl-dev \
protobuf-c-dev \
sqlite-dev \
taglib-dev \
tar && \
apk add --no-cache --virtual=build-dependencies \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
libantlr3c-dev \
mxml-dev && \
Expand Down Expand Up @@ -74,13 +74,13 @@ RUN \
--infodir=/usr/share/info \
--localstatedir=/var \
--mandir=/usr/share/man \
--prefix=/app \
--prefix=/usr \
--sysconfdir=/etc && \
make && \
make install

make DESTDIR=/tmp/daapd-build install && \
mv /tmp/daapd-build/etc/forked-daapd.conf /tmp/daapd-build/etc/forked-daapd.conf.orig
############## runtime stage ##############
FROM lsiobase/alpine:3.7
FROM lsiobase/alpine:3.8

# set version label
ARG BUILD_DATE
Expand All @@ -100,10 +100,10 @@ RUN \
libevent \
libgcrypt \
libplist \
libressl \
libsodium \
libunistring \
libwebsockets \
openssl \
protobuf-c \
sqlite \
sqlite-libs && \
Expand All @@ -113,8 +113,7 @@ RUN \
mxml

# copy buildstage and local files
COPY --from=buildstage /etc/forked-daapd.conf /etc/forked-daapd.conf.orig
COPY --from=buildstage /app/ app/
COPY --from=buildstage /tmp/daapd-build/ /
COPY root/ /

# ports and volumes
Expand Down
6 changes: 6 additions & 0 deletions root/etc/cont-init.d/30-dbus
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/usr/bin/with-contenv bash

# make our folders
mkdir -p \
/var/run/dbus


[[ -e /var/run/dbus.pid ]] && \
rm -f /var/run/dbus.pid

dbus-uuidgen --ensure
sleep 1

2 changes: 1 addition & 1 deletion root/etc/services.d/forked/run
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash

exec \
s6-setuidgid abc /app/sbin/forked-daapd -f \
s6-setuidgid abc /usr/sbin/forked-daapd -f \
-P /daapd-pidfolder/forked-daapd.pid

0 comments on commit 662d02f

Please sign in to comment.