From 87144862a767a451dd83c2f0d850c1b6787fd107 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 17 Apr 2017 10:51:22 +0100 Subject: [PATCH 1/3] rebase to inhouse mono image --- Dockerfile | 8 ++------ README.md | 9 ++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7c07f3..ab13f6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,12 @@ -FROM lsiobase/xenial +FROM lsiobase/mono MAINTAINER sparklyballs # set environment variables ARG DEBIAN_FRONTEND="noninteractive" ENV XDG_CONFIG_HOME="/config/xdg" -# add sonarr and mono repositories +# add sonarr repository RUN \ - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC && \ - echo "deb http://apt.sonarr.tv/ develop main" > \ - /etc/apt/sources.list.d/sonarr.list && \ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \ --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ echo "deb http://download.mono-project.com/repo/debian wheezy main" \ @@ -18,7 +15,6 @@ RUN \ # install packages apt-get update && \ apt-get install -y \ - libcurl3 \ nzbdrone && \ # cleanup diff --git a/README.md b/README.md index 774f896..628b986 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ docker create \ --name sonarr \ -p 8989:8989 \ -e PUID= -e PGID= \ + -e TZ= \ -v /etc/localtime:/etc/localtime:ro \ -v :/config \ -v :/tv \ @@ -43,14 +44,19 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po * `-p 8989` - the port sonarr webinterface -* `-v /etc/localtime:/etc/localtime:ro` - map localtime as ReadOnly (mono throws exceptions otherwise) * `-v /config` - database and sonarr configs * `-v /tv` - location of TV library on disk +* `-v /etc/localtime` for timesync - see [Localtime](#localtime) for important information +* `-e TZ` for timezone information, Europe/London - see [Localtime](#localtime) for important information * `-e PGID` for for GroupID - see below for explanation * `-e PUID` for for UserID - see below for explanation It is based on ubuntu xenial with S6 overlay, for shell access whilst the container is running do `docker exec -it sonarr /bin/bash`. +## Localtime + +It is important that you either set `-v /etc/localtime:/etc/localtime:ro` or the TZ variable, mono will throw exceptions without one of them set. + ### User / Group Identifiers Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" TM. @@ -71,6 +77,7 @@ Access the webui at `:8989`, for more information check out [Sonarr](ht ## Changelog ++ **17.04.17:** Switch to using inhouse mono baseimage. + **14.04.17:** Change to mount /etc/localtime in README, thanks cbgj. + **13.04.17:** Switch to official mono repository. + **30.09.16:** Fix umask From 001dff6d7bd12848a15fe295c584db72ab4b0f7b Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 17 Apr 2017 11:08:49 +0100 Subject: [PATCH 2/3] add python note to changelog --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 628b986..019c309 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,13 @@ docker create \ linuxserver/sonarr ``` +You can choose between ,using tags, various branch versions of sonarr, no tag is required to remain on the main branch. + +Add one of the tags, if required, to the linuxserver/sonarr line of the run/create command in the following format, linuxserver/sonarr:develop + +#### Tags ++ **develop** + ## Parameters `The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. @@ -77,7 +84,7 @@ Access the webui at `:8989`, for more information check out [Sonarr](ht ## Changelog -+ **17.04.17:** Switch to using inhouse mono baseimage. ++ **17.04.17:** Switch to using inhouse mono baseimage, adds python also. + **14.04.17:** Change to mount /etc/localtime in README, thanks cbgj. + **13.04.17:** Switch to official mono repository. + **30.09.16:** Fix umask From 99f98d8b9fe548d0168e18f5b0438ff405337018 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 17 Apr 2017 11:39:10 +0100 Subject: [PATCH 3/3] removed wrong repository --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab13f6c..38a1b1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,9 @@ ENV XDG_CONFIG_HOME="/config/xdg" # add sonarr repository RUN \ - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \ - --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ - echo "deb http://download.mono-project.com/repo/debian wheezy main" \ - | tee /etc/apt/sources.list.d/mono-xamarin.list && \ + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC && \ + echo "deb http://apt.sonarr.tv/ master main" > \ + /etc/apt/sources.list.d/sonarr.list && \ # install packages apt-get update && \