From 350e851ff67de70a23f72f89f66892aae0d5deab Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 17 Apr 2017 11:43:29 +0100 Subject: [PATCH] mono_rebase --- Dockerfile | 18 ------------------ README.md | 20 ++++++++++++++++++-- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8856fd0..a9b2583 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,24 +5,6 @@ MAINTAINER sparklyballs ARG DEBIAN_FRONTEND="noninteractive" ENV XDG_CONFIG_HOME="/config/xdg" -# install packages -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-get update && \ - apt-get install -y \ - libmono-cil-dev \ - mediainfo \ - sqlite3 && \ - -# cleanup - rm -rf \ - /tmp/* \ - /var/lib/apt/lists/* \ - /var/tmp/* - # copy local files COPY root/ / diff --git a/README.md b/README.md index 5946f4e..019c309 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,21 @@ docker create \ --name sonarr \ -p 8989:8989 \ -e PUID= -e PGID= \ - -v /dev/rtc:/dev/rtc:ro \ + -e TZ= \ + -v /etc/localtime:/etc/localtime:ro \ -v :/config \ -v :/tv \ -v :/downloads \ 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. @@ -43,14 +51,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 /dev/rtc:/dev/rtc:ro` - map hwclock 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 +84,9 @@ Access the webui at `:8989`, for more information check out [Sonarr](ht ## Changelog ++ **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 + **23.09.16:** Add cd to /opt fixes redirects with althub (issue #25) , make XDG config environment variable