mirror of
https://github.com/linuxserver/docker-lidarr.git
synced 2026-02-20 01:02:41 +08:00
Merge pull request #28 from thelamer/preview
swapping preview over to netcore builds
This commit is contained in:
commit
d0d0c8e9ec
15
Dockerfile
15
Dockerfile
@ -1,11 +1,11 @@
|
||||
FROM lsiobase/mono:LTS
|
||||
FROM lsiobase/ubuntu:bionic
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG LIDARR_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="sparklyballs"
|
||||
LABEL maintainer="thelamer"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
@ -16,24 +16,23 @@ RUN \
|
||||
echo "**** install packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
libchromaprint-tools \
|
||||
jq && \
|
||||
jq \
|
||||
libicu60 && \
|
||||
echo "**** install lidarr ****" && \
|
||||
mkdir -p /app/lidarr && \
|
||||
if [ -z ${LIDARR_RELEASE+x} ]; then \
|
||||
LIDARR_RELEASE=$(curl -sL "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
|
||||
| jq -r '.[0].version'); \
|
||||
fi && \
|
||||
lidarr_url=$(curl -sL "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
|
||||
| jq -r "first(.[] | select(.version == \"${LIDARR_RELEASE}\")) | .url") && \
|
||||
curl -o \
|
||||
/tmp/lidarr.tar.gz -L \
|
||||
"${lidarr_url}" && \
|
||||
"https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/updatefile?version=${LIDARR_RELEASE}&os=linux&runtime=netcore&arch=x64" && \
|
||||
tar ixzf \
|
||||
/tmp/lidarr.tar.gz -C \
|
||||
/app/lidarr --strip-components=1 && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/app/lidarr/Lidarr.Update \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
@ -43,4 +42,4 @@ COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 8686
|
||||
VOLUME /config /downloads /music
|
||||
VOLUME /config
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
FROM lsiobase/mono:arm64v8-LTS
|
||||
FROM lsiobase/ubuntu:arm64v8-bionic
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG LIDARR_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="sparklyballs"
|
||||
LABEL maintainer="thelamer"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
@ -16,24 +16,23 @@ RUN \
|
||||
echo "**** install packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
libchromaprint-tools \
|
||||
jq && \
|
||||
jq \
|
||||
libicu60 && \
|
||||
echo "**** install lidarr ****" && \
|
||||
mkdir -p /app/lidarr && \
|
||||
if [ -z ${LIDARR_RELEASE+x} ]; then \
|
||||
LIDARR_RELEASE=$(curl -sL "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
|
||||
| jq -r '.[0].version'); \
|
||||
fi && \
|
||||
lidarr_url=$(curl -sL "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
|
||||
| jq -r "first(.[] | select(.version == \"${LIDARR_RELEASE}\")) | .url") && \
|
||||
curl -o \
|
||||
/tmp/lidarr.tar.gz -L \
|
||||
"${lidarr_url}" && \
|
||||
"https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/updatefile?version=${LIDARR_RELEASE}&os=linux&runtime=netcore&arch=arm64" && \
|
||||
tar ixzf \
|
||||
/tmp/lidarr.tar.gz -C \
|
||||
/app/lidarr --strip-components=1 && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/app/lidarr/Lidarr.Update \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
@ -43,4 +42,4 @@ COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 8686
|
||||
VOLUME /config /downloads /music
|
||||
VOLUME /config
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
FROM lsiobase/mono:arm32v7-LTS
|
||||
FROM lsiobase/ubuntu:bionic
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG LIDARR_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="sparklyballs"
|
||||
LABEL maintainer="thelamer"
|
||||
|
||||
# environment settings
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
@ -16,24 +16,23 @@ RUN \
|
||||
echo "**** install packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
libchromaprint-tools \
|
||||
jq && \
|
||||
jq \
|
||||
libicu60 && \
|
||||
echo "**** install lidarr ****" && \
|
||||
mkdir -p /app/lidarr && \
|
||||
if [ -z ${LIDARR_RELEASE+x} ]; then \
|
||||
LIDARR_RELEASE=$(curl -sL "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
|
||||
| jq -r '.[0].version'); \
|
||||
fi && \
|
||||
lidarr_url=$(curl -sL "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
|
||||
| jq -r "first(.[] | select(.version == \"${LIDARR_RELEASE}\")) | .url") && \
|
||||
curl -o \
|
||||
/tmp/lidarr.tar.gz -L \
|
||||
"${lidarr_url}" && \
|
||||
"https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/updatefile?version=${LIDARR_RELEASE}&os=linux&runtime=netcore&arch=arm" && \
|
||||
tar ixzf \
|
||||
/tmp/lidarr.tar.gz -C \
|
||||
/app/lidarr --strip-components=1 && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/app/lidarr/Lidarr.Update \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
@ -43,4 +42,4 @@ COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 8686
|
||||
VOLUME /config /downloads /music
|
||||
VOLUME /config
|
||||
|
||||
@ -206,6 +206,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **29.10.19:** - Switch preview branch to netcore builds.
|
||||
* **01.08.19:** - Rebase to Linuxserver LTS mono version.
|
||||
* **13.06.19:** - Add env variable for setting umask.
|
||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||
|
||||
@ -46,6 +46,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "29.10.19:", desc: "Switch preview branch to netcore builds." }
|
||||
- { date: "01.08.19:", desc: "Rebase to Linuxserver LTS mono version." }
|
||||
- { date: "13.06.19:", desc: "Add env variable for setting umask." }
|
||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||
|
||||
@ -2,5 +2,4 @@
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
/app/lidarr \
|
||||
/config
|
||||
|
||||
@ -1,11 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# cd /app/lidarr || exit
|
||||
# cd /app/lidarr || exit
|
||||
|
||||
UMASK_SET=${UMASK_SET:-022}
|
||||
umask "$UMASK_SET"
|
||||
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc mono --debug /app/lidarr/Lidarr.exe \
|
||||
s6-setuidgid abc /app/lidarr/Lidarr \
|
||||
-nobrowser -data=/config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user