From 3e46abaaec3c8698fb4a720493bfec80e213600d Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Mon, 9 Feb 2015 08:30:55 +0000 Subject: [PATCH] Add build files for sonarr --- build/make/sonarr.mk | 3 +++ build/runit/sonarr | 3 +++ build/scripts/sonarr.sh | 14 ++++++++++++++ images/sonarr.mk | 6 ++++++ 4 files changed, 26 insertions(+) create mode 100644 build/make/sonarr.mk create mode 100644 build/runit/sonarr create mode 100644 build/scripts/sonarr.sh create mode 100644 images/sonarr.mk diff --git a/build/make/sonarr.mk b/build/make/sonarr.mk new file mode 100644 index 0000000..b620064 --- /dev/null +++ b/build/make/sonarr.mk @@ -0,0 +1,3 @@ +sonarr: + $(call script,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/runit/sonarr b/build/runit/sonarr new file mode 100644 index 0000000..a81b269 --- /dev/null +++ b/build/runit/sonarr @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +mono /opt/NzbDrone/NzbDrone.exe --no-browser -data=$SONARR_DATA \ No newline at end of file diff --git a/build/scripts/sonarr.sh b/build/scripts/sonarr.sh new file mode 100644 index 0000000..f76e7a0 --- /dev/null +++ b/build/scripts/sonarr.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +export_env SONARR_DATA /host/var/lib/sonarr + +## Sonarr +apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC +echo "deb http://apt.sonarr.tv/ develop main" | tee -a /etc/apt/sources.list +apt-get update +apt_get_install_permanent nzbdrone mediainfo +chmod +x /opt/NzbDrone/NzbDrone.exe \ No newline at end of file diff --git a/images/sonarr.mk b/images/sonarr.mk new file mode 100644 index 0000000..54eb99f --- /dev/null +++ b/images/sonarr.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = sonarr +VERSION = latest + +build: sonarr \ No newline at end of file