From 51c77d57bf19ff27650b256f8781687fe973b147 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 17 Apr 2017 12:05:22 +0100 Subject: [PATCH] mono rebase --- Dockerfile | 21 +++------------------ README.md | 11 +++++++++-- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 67b9799..ad47a1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ -FROM lsiobase/xenial +FROM lsiobase/mono MAINTAINER sparklyballs # environment settings -ARG DEBIAN_FRONTEND="noninteractive" ENV XDG_CONFIG_HOME="/config/xdg" # set version label @@ -10,20 +9,8 @@ ARG BUILD_DATE ARG VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" -# 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 \ - libcurl3 \ - libmono-cil-dev \ - mediainfo && \ - # install radarr +RUN \ radarr_tag=$(curl -sX GET "https://api.github.com/repos/Radarr/Radarr/releases" \ | awk '/tag_name/{print $4;exit}' FS='[""]') && \ mkdir -p \ @@ -37,9 +24,7 @@ RUN \ # clean up rm -rf \ - /tmp/* \ - /var/lib/apt/lists/* \ - /var/tmp/* + /tmp/* # add local files COPY /root / diff --git a/README.md b/README.md index f18cabf..a717351 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,9 @@ docker create \ -v :/config \ -v :/downloads \ -v :/movies \ - -e PGID= -e PUID= \ + -v /etc/localtime:/etc/localtime:ro \ -e TZ= \ + -e PGID= -e PUID= \ -p 7878:7878 \ linuxserver/radarr ``` @@ -45,12 +46,17 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po * `-v /config` - Radarr Application Data * `-v /downloads` - Downloads Folder * `-v /movies` - Movie Share +* `-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 -* `-e TZ` for timezone information, eg Europe/London It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it radarr /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" ™. @@ -81,5 +87,6 @@ Access the webui at `:7878`, for more information check out [Radarr][ap ## Versions ++ **17.04.17:** Switch to using inhouse mono baseimage, adds python also. + **13.04.17:** Switch to official mono repository. + **10.01.17:** Initial Release.