Removed linuxserver.io's extras.
- Removed linuxserver.io's extras: + Build from regular alpine instead of their base image. + Removed their config, scripts, init stuff. - Currently runs.
This commit is contained in:
+38
-21
@@ -1,13 +1,11 @@
|
|||||||
FROM lsiobase/alpine:3.8
|
FROM alpine:3.8
|
||||||
|
|
||||||
# set version label
|
|
||||||
ARG BUILD_DATE
|
|
||||||
ARG VERSION
|
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
||||||
LABEL maintainer="sparklyballs"
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install build packages ****" && \
|
echo -e "\n" \
|
||||||
|
"**************************************************************************" \
|
||||||
|
"\n * Install build packages.\n" \
|
||||||
|
"**************************************************************************\n" \
|
||||||
|
&& \
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
apk add --no-cache --virtual=build-dependencies \
|
||||||
cmake \
|
cmake \
|
||||||
ffmpeg-dev \
|
ffmpeg-dev \
|
||||||
@@ -19,8 +17,13 @@ RUN \
|
|||||||
make \
|
make \
|
||||||
mpg123-dev \
|
mpg123-dev \
|
||||||
openjpeg-dev \
|
openjpeg-dev \
|
||||||
python2-dev && \
|
python2-dev \
|
||||||
echo "**** install runtime packages ****" && \
|
&& \
|
||||||
|
echo -e "\n" \
|
||||||
|
"**************************************************************************" \
|
||||||
|
"\n * Install runtime packages.\n" \
|
||||||
|
"**************************************************************************\n" \
|
||||||
|
&& \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
expat \
|
expat \
|
||||||
@@ -34,7 +37,6 @@ RUN \
|
|||||||
libffi \
|
libffi \
|
||||||
libpng \
|
libpng \
|
||||||
mpg123 \
|
mpg123 \
|
||||||
nano \
|
|
||||||
openjpeg \
|
openjpeg \
|
||||||
py2-gobject3 \
|
py2-gobject3 \
|
||||||
py2-pip \
|
py2-pip \
|
||||||
@@ -42,8 +44,13 @@ RUN \
|
|||||||
python2 \
|
python2 \
|
||||||
sqlite-libs \
|
sqlite-libs \
|
||||||
tar \
|
tar \
|
||||||
|
vim \
|
||||||
wget && \
|
wget && \
|
||||||
echo "**** compile mp3gain ****" && \
|
echo -e "\n" \
|
||||||
|
"**************************************************************************" \
|
||||||
|
"\n * Compile mp3gain.\n" \
|
||||||
|
"**************************************************************************\n" \
|
||||||
|
&& \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/tmp/mp3gain-src && \
|
/tmp/mp3gain-src && \
|
||||||
curl -o \
|
curl -o \
|
||||||
@@ -54,7 +61,11 @@ RUN \
|
|||||||
sed -i "s#/usr/local/bin#/usr/bin#g" /tmp/mp3gain-src/Makefile && \
|
sed -i "s#/usr/local/bin#/usr/bin#g" /tmp/mp3gain-src/Makefile && \
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
echo "**** compile chromaprint ****" && \
|
echo -e "\n" \
|
||||||
|
"**************************************************************************" \
|
||||||
|
"\n * Compile chromaprint.\n" \
|
||||||
|
"**************************************************************************\n" \
|
||||||
|
&& \
|
||||||
git clone https://bitbucket.org/acoustid/chromaprint.git \
|
git clone https://bitbucket.org/acoustid/chromaprint.git \
|
||||||
/tmp/chromaprint && \
|
/tmp/chromaprint && \
|
||||||
cd /tmp/chromaprint && \
|
cd /tmp/chromaprint && \
|
||||||
@@ -64,7 +75,11 @@ RUN \
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr && \
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr && \
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
echo "**** install pip packages ****" && \
|
echo -e "\n" \
|
||||||
|
"**************************************************************************" \
|
||||||
|
"\n * Install pip packages.\n" \
|
||||||
|
"**************************************************************************\n" \
|
||||||
|
&& \
|
||||||
pip install --no-cache-dir -U \
|
pip install --no-cache-dir -U \
|
||||||
beautifulsoup4 \
|
beautifulsoup4 \
|
||||||
beets \
|
beets \
|
||||||
@@ -76,7 +91,11 @@ RUN \
|
|||||||
pyacoustid \
|
pyacoustid \
|
||||||
requests \
|
requests \
|
||||||
unidecode && \
|
unidecode && \
|
||||||
echo "**** cleanup ****" && \
|
echo -e "\n" \
|
||||||
|
"**************************************************************************" \
|
||||||
|
"\n * Cleanup.\n" \
|
||||||
|
"**************************************************************************\n" \
|
||||||
|
&& \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
@@ -85,12 +104,10 @@ RUN \
|
|||||||
|
|
||||||
# environment settings
|
# environment settings
|
||||||
ENV BEETSDIR="/config" \
|
ENV BEETSDIR="/config" \
|
||||||
EDITOR="nano" \
|
EDITOR="vim" \
|
||||||
HOME="/config"
|
HOME="/config"
|
||||||
|
|
||||||
# copy local files
|
VOLUME /config /downloads /music /staging
|
||||||
COPY root/ /
|
|
||||||
|
ENTRYPOINT ["/usr/bin/beet"]
|
||||||
|
|
||||||
# ports and volumes
|
|
||||||
EXPOSE 8337
|
|
||||||
VOLUME /config /downloads /music
|
|
||||||
|
|||||||
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
BEETS_DOCKER_DATA="/home/gert/projects/beets-docker-data"
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--name beets \
|
||||||
|
--rm \
|
||||||
|
-ti \
|
||||||
|
--user $(id -u):$(id -g) \
|
||||||
|
-v $BEETS_DOCKER_DATA:/config \
|
||||||
|
beets:latest $@
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# beets music tagger - post-processing script
|
|
||||||
#
|
|
||||||
# Author: Rich Manton (overbyrn)
|
|
||||||
# Date: 29-04-13
|
|
||||||
#
|
|
||||||
# $1 - Fullpath of directory to be processed. eg./mnt/user/downloads/some.artist_some.album
|
|
||||||
|
|
||||||
# $7 - Status of post processing. 0 = OK, 1 = failed verification, 2 = failed unpack, 3 = 1+2
|
|
||||||
if [ ! -z "$7" ] && [ "$7" -gt 0 ]; then
|
|
||||||
echo "post-processing failed, bypassing script"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# process files
|
|
||||||
echo "--------------------------"
|
|
||||||
printf %b "$(date)\n"
|
|
||||||
echo "Starting beets.sh for $(basename $1)"
|
|
||||||
|
|
||||||
BEETSDIR=/config
|
|
||||||
export BEETSDIR
|
|
||||||
FPCALC=/usr/bin/fpcalc
|
|
||||||
export FPCALC
|
|
||||||
/usr/local/bin/beet -v import -q "$1"
|
|
||||||
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
plugins: fetchart embedart convert scrub replaygain lastgenre chroma web
|
|
||||||
directory: /music
|
|
||||||
library: /config/musiclibrary.blb
|
|
||||||
art_filename: albumart
|
|
||||||
threaded: yes
|
|
||||||
original_date: no
|
|
||||||
per_disc_numbering: no
|
|
||||||
|
|
||||||
convert:
|
|
||||||
auto: no
|
|
||||||
ffmpeg: /usr/bin/ffmpeg
|
|
||||||
opts: -ab 320k -ac 2 -ar 48000
|
|
||||||
max_bitrate: 320
|
|
||||||
threads: 1
|
|
||||||
|
|
||||||
paths:
|
|
||||||
default: $albumartist/$album%aunique{}/$track - $title
|
|
||||||
singleton: Non-Album/$artist - $title
|
|
||||||
comp: Compilations/$album%aunique{}/$track - $title
|
|
||||||
albumtype_soundtrack: Soundtracks/$album/$track $title
|
|
||||||
|
|
||||||
import:
|
|
||||||
write: yes
|
|
||||||
copy: no
|
|
||||||
move: yes
|
|
||||||
resume: ask
|
|
||||||
incremental: yes
|
|
||||||
quiet_fallback: skip
|
|
||||||
timid: no
|
|
||||||
log: /config/beet.log
|
|
||||||
|
|
||||||
lastgenre:
|
|
||||||
auto: yes
|
|
||||||
source: album
|
|
||||||
|
|
||||||
embedart:
|
|
||||||
auto: yes
|
|
||||||
|
|
||||||
fetchart:
|
|
||||||
auto: yes
|
|
||||||
|
|
||||||
replaygain:
|
|
||||||
auto: no
|
|
||||||
|
|
||||||
scrub:
|
|
||||||
auto: yes
|
|
||||||
|
|
||||||
replace:
|
|
||||||
'^\.': _
|
|
||||||
'[\x00-\x1f]': _
|
|
||||||
'[<>:"\?\*\|]': _
|
|
||||||
'[\xE8-\xEB]': e
|
|
||||||
'[\xEC-\xEF]': i
|
|
||||||
'[\xE2-\xE6]': a
|
|
||||||
'[\xF2-\xF6]': o
|
|
||||||
'[\xF8]': o
|
|
||||||
'\.$': _
|
|
||||||
'\s+$': ''
|
|
||||||
|
|
||||||
web:
|
|
||||||
host: 0.0.0.0
|
|
||||||
port: 8337
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
# copy config
|
|
||||||
[[ ! -e /config/beets.sh ]] && \
|
|
||||||
cp /defaults/beets.sh /config/beets.sh
|
|
||||||
[[ ! -e /config/config.yaml ]] && \
|
|
||||||
cp /defaults/config.yaml /config/config.yaml
|
|
||||||
|
|
||||||
# permissions
|
|
||||||
chown -R abc:abc \
|
|
||||||
/config
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
umask 022
|
|
||||||
|
|
||||||
exec \
|
|
||||||
s6-setuidgid abc beet web
|
|
||||||
Reference in New Issue
Block a user