rebase to inhouse mono image

This commit is contained in:
sparklyballs
2017-04-17 10:51:22 +01:00
parent f8199a871c
commit 87144862a7
2 changed files with 10 additions and 7 deletions

View File

@@ -1,15 +1,12 @@
FROM lsiobase/xenial FROM lsiobase/mono
MAINTAINER sparklyballs MAINTAINER sparklyballs
# set environment variables # set environment variables
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ENV XDG_CONFIG_HOME="/config/xdg" ENV XDG_CONFIG_HOME="/config/xdg"
# add sonarr and mono repositories # add sonarr repository
RUN \ 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 \ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb http://download.mono-project.com/repo/debian wheezy main" \ echo "deb http://download.mono-project.com/repo/debian wheezy main" \
@@ -18,7 +15,6 @@ RUN \
# install packages # install packages
apt-get update && \ apt-get update && \
apt-get install -y \ apt-get install -y \
libcurl3 \
nzbdrone && \ nzbdrone && \
# cleanup # cleanup

View File

@@ -27,6 +27,7 @@ docker create \
--name sonarr \ --name sonarr \
-p 8989:8989 \ -p 8989:8989 \
-e PUID=<UID> -e PGID=<GID> \ -e PUID=<UID> -e PGID=<GID> \
-e TZ=<timezone> \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
-v </path/to/appdata>:/config \ -v </path/to/appdata>:/config \
-v <path/to/tvseries>:/tv \ -v <path/to/tvseries>:/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 * `-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 /config` - database and sonarr configs
* `-v /tv` - location of TV library on disk * `-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 PGID` for for GroupID - see below for explanation
* `-e PUID` for for UserID - 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`. 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 ### 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" <sup>TM</sup>. 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" <sup>TM</sup>.
@@ -71,6 +77,7 @@ Access the webui at `<your-ip>:8989`, for more information check out [Sonarr](ht
## Changelog ## Changelog
+ **17.04.17:** Switch to using inhouse mono baseimage.
+ **14.04.17:** Change to mount /etc/localtime in README, thanks cbgj. + **14.04.17:** Change to mount /etc/localtime in README, thanks cbgj.
+ **13.04.17:** Switch to official mono repository. + **13.04.17:** Switch to official mono repository.
+ **30.09.16:** Fix umask + **30.09.16:** Fix umask