-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
46 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,47 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy | ||
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 | ||
|
||
# set version label | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG SONARR_VERSION | ||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" | ||
LABEL maintainer="aptalca" | ||
LABEL maintainer="thespad" | ||
|
||
# set environment variables | ||
ARG DEBIAN_FRONTEND="noninteractive" | ||
ENV XDG_CONFIG_HOME="/config/xdg" | ||
ENV SONARR_CHANNEL="v4-stable" | ||
ENV SONARR_BRANCH="main" | ||
|
||
RUN \ | ||
echo "**** add mediaarea repository ****" && \ | ||
curl -L \ | ||
"https://mediaarea.net/repo/deb/repo-mediaarea_1.0-21_all.deb" \ | ||
-o /tmp/key.deb && \ | ||
dpkg -i /tmp/key.deb && \ | ||
echo "deb https://mediaarea.net/repo/deb/ubuntu jammy main" | tee /etc/apt/sources.list.d/mediaarea.list && \ | ||
echo "**** add mono repository ****" && \ | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ | ||
echo "deb http://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official.list && \ | ||
echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates-mono \ | ||
libmono-system-net-http4.0-cil \ | ||
libmono-corlib4.5-cil \ | ||
libmono-microsoft-csharp4.0-cil \ | ||
libmono-posix4.0-cil \ | ||
libmono-system-componentmodel-dataannotations4.0-cil \ | ||
libmono-system-configuration-install4.0-cil \ | ||
libmono-system-configuration4.0-cil \ | ||
libmono-system-core4.0-cil \ | ||
libmono-system-data-datasetextensions4.0-cil \ | ||
libmono-system-data4.0-cil \ | ||
libmono-system-identitymodel4.0-cil \ | ||
libmono-system-io-compression4.0-cil \ | ||
libmono-system-numerics4.0-cil \ | ||
libmono-system-runtime-serialization4.0-cil \ | ||
libmono-system-security4.0-cil \ | ||
libmono-system-servicemodel4.0a-cil \ | ||
libmono-system-serviceprocess4.0-cil \ | ||
libmono-system-transactions4.0-cil \ | ||
libmono-system-web4.0-cil \ | ||
libmono-system-xml-linq4.0-cil \ | ||
libmono-system-xml4.0-cil \ | ||
libmono-system4.0-cil \ | ||
mono-runtime \ | ||
mono-vbnc \ | ||
mediainfo \ | ||
xmlstarlet && \ | ||
apk add --no-cache \ | ||
icu-libs \ | ||
sqlite-libs \ | ||
xmlstarlet && \ | ||
echo "**** install sonarr ****" && \ | ||
mkdir -p /app/sonarr/bin && \ | ||
if [ -z ${SONARR_VERSION+x} ]; then \ | ||
SONARR_VERSION=$(curl -sX GET http://services.sonarr.tv/v1/releases \ | ||
| jq -r ".[] | select(.branch==\"$SONARR_BRANCH\") | .version"); \ | ||
| jq -r "first(.[] | select(.releaseChannel==\"${SONARR_CHANNEL}\") | .version)"); \ | ||
fi && \ | ||
curl -o \ | ||
/tmp/sonarr.tar.gz -L \ | ||
"https://download.sonarr.tv/v3/${SONARR_BRANCH}/${SONARR_VERSION}/Sonarr.${SONARR_BRANCH}.${SONARR_VERSION}.linux.tar.gz" && \ | ||
tar xf \ | ||
"https://download.sonarr.tv/v4/${SONARR_BRANCH}/${SONARR_VERSION}/Sonarr.${SONARR_BRANCH}.${SONARR_VERSION}.linux-musl-x64.tar.gz" && \ | ||
tar xzf \ | ||
/tmp/sonarr.tar.gz -C \ | ||
/app/sonarr/bin --strip-components=1 && \ | ||
echo "UpdateMethod=docker\nBranch=${SONARR_BRANCH}\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/sonarr/package_info && \ | ||
rm -rf /app/sonarr/bin/Sonarr.Update && \ | ||
echo -e "UpdateMethod=docker\nBranch=${SONARR_BRANCH}\nPackageVersion=${SONARR_VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/sonarr/package_info && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get clean && \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
/app/sonarr/bin/Sonarr.Update \ | ||
/tmp/* | ||
|
||
# add local files | ||
# add local files | ||
COPY root/ / | ||
|
||
# ports and volumes | ||
# ports and volumes | ||
EXPOSE 8989 | ||
|
||
VOLUME /config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,47 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy | ||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19 | ||
|
||
# set version label | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG SONARR_VERSION | ||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" | ||
LABEL maintainer="aptalca" | ||
LABEL maintainer="thespad" | ||
|
||
# set environment variables | ||
ARG DEBIAN_FRONTEND="noninteractive" | ||
ENV XDG_CONFIG_HOME="/config/xdg" | ||
ENV SONARR_CHANNEL="v4-stable" | ||
ENV SONARR_BRANCH="main" | ||
|
||
RUN \ | ||
echo "**** add mediaarea repository ****" && \ | ||
curl -L \ | ||
"https://mediaarea.net/repo/deb/repo-mediaarea_1.0-21_all.deb" \ | ||
-o /tmp/key.deb && \ | ||
dpkg -i /tmp/key.deb && \ | ||
echo "deb https://mediaarea.net/repo/deb/ubuntu jammy main" | tee /etc/apt/sources.list.d/mediaarea.list && \ | ||
echo "**** add mono repository ****" && \ | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ | ||
echo "deb http://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official.list && \ | ||
echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates-mono \ | ||
libmono-system-net-http4.0-cil \ | ||
libmono-corlib4.5-cil \ | ||
libmono-microsoft-csharp4.0-cil \ | ||
libmono-posix4.0-cil \ | ||
libmono-system-componentmodel-dataannotations4.0-cil \ | ||
libmono-system-configuration-install4.0-cil \ | ||
libmono-system-configuration4.0-cil \ | ||
libmono-system-core4.0-cil \ | ||
libmono-system-data-datasetextensions4.0-cil \ | ||
libmono-system-data4.0-cil \ | ||
libmono-system-identitymodel4.0-cil \ | ||
libmono-system-io-compression4.0-cil \ | ||
libmono-system-numerics4.0-cil \ | ||
libmono-system-runtime-serialization4.0-cil \ | ||
libmono-system-security4.0-cil \ | ||
libmono-system-servicemodel4.0a-cil \ | ||
libmono-system-serviceprocess4.0-cil \ | ||
libmono-system-transactions4.0-cil \ | ||
libmono-system-web4.0-cil \ | ||
libmono-system-xml-linq4.0-cil \ | ||
libmono-system-xml4.0-cil \ | ||
libmono-system4.0-cil \ | ||
mono-runtime \ | ||
mono-vbnc \ | ||
mediainfo \ | ||
xmlstarlet && \ | ||
apk add --no-cache \ | ||
icu-libs \ | ||
sqlite-libs \ | ||
xmlstarlet && \ | ||
echo "**** install sonarr ****" && \ | ||
mkdir -p /app/sonarr/bin && \ | ||
if [ -z ${SONARR_VERSION+x} ]; then \ | ||
SONARR_VERSION=$(curl -sX GET http://services.sonarr.tv/v1/releases \ | ||
| jq -r ".[] | select(.branch==\"$SONARR_BRANCH\") | .version"); \ | ||
| jq -r "first(.[] | select(.releaseChannel==\"${SONARR_CHANNEL}\") | .version)"); \ | ||
fi && \ | ||
curl -o \ | ||
/tmp/sonarr.tar.gz -L \ | ||
"https://download.sonarr.tv/v3/${SONARR_BRANCH}/${SONARR_VERSION}/Sonarr.${SONARR_BRANCH}.${SONARR_VERSION}.linux.tar.gz" && \ | ||
tar xf \ | ||
"https://download.sonarr.tv/v4/${SONARR_BRANCH}/${SONARR_VERSION}/Sonarr.${SONARR_BRANCH}.${SONARR_VERSION}.linux-musl-arm64.tar.gz" && \ | ||
tar xzf \ | ||
/tmp/sonarr.tar.gz -C \ | ||
/app/sonarr/bin --strip-components=1 && \ | ||
echo "UpdateMethod=docker\nBranch=${SONARR_BRANCH}\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/sonarr/package_info && \ | ||
rm -rf /app/sonarr/bin/Sonarr.Update && \ | ||
echo -e "UpdateMethod=docker\nBranch=${SONARR_BRANCH}\nPackageVersion=${SONARR_VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/sonarr/package_info && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get clean && \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
/app/sonarr/bin/Sonarr.Update \ | ||
/tmp/* | ||
|
||
# add local files | ||
# add local files | ||
COPY root/ / | ||
|
||
# ports and volumes | ||
# ports and volumes | ||
EXPOSE 8989 | ||
|
||
VOLUME /config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck shell=bash | ||
|
||
# cleanup pid if it exists | ||
if [[ -e /config/sonarr.pid ]]; then | ||
rm -rf /config/sonarr.pid | ||
fi | ||
|
||
# permissions | ||
lsiown -R abc:abc \ | ||
/app/sonarr/bin \ | ||
/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters