Jellyfin (#19)

jellyfin 10.4.1 (linuxserver/jellyfin:v10.4.1-ls24)
This commit is contained in:
Arne Petersen
2019-11-16 23:18:56 +01:00
committed by GitHub
parent ee2fa3ae95
commit 0317817891
8 changed files with 136 additions and 0 deletions

View File

@@ -102,3 +102,16 @@ jobs:
parameters:
addon: 'radarr'
arch: '--all'
- job: 'jellyfin'
condition: and(eq(variables['Build.SourceBranchName'], 'master'), succeeded('Hadolint'), succeeded('JQ'))
dependsOn:
- 'Hadolint'
- 'JQ'
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: .azure-pipelines/addon-template.yml
parameters:
addon: 'jellyfin'
arch: '--all'

3
jellyfin/CHANGELOG.md Normal file
View File

@@ -0,0 +1,3 @@
## 0.1.0
- jellyfin 10.4.1 (linuxserver/jellyfin:v10.4.1-ls24)

15
jellyfin/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM linuxserver/jellyfin:v10.4.1-ls24
RUN sed -i "s|/config/data|/share/jellyfin/data|g" /etc/services.d/jellyfin/run \
&& sed -i "s|/config/log|/share/jellyfin/log|g" /etc/services.d/jellyfin/run \
&& sed -i "s|/config/cache|/share/jellyfin/cache|g" /etc/services.d/jellyfin/run \
&& sed -i "s|/config|/config/jellyfin|g" /etc/services.d/jellyfin/run \
&& sed -i "s|/config/{log,data,cache}|/xxx/jellyfin|g" /etc/cont-init.d/30-config \
&& sed -i "s|/config|/config/jellyfin|g" /etc/cont-init.d/30-config \
&& sed -i "s|/xxx|/config|g" /etc/cont-init.d/30-config \
&& sed -i "s|/data|/share/jellyfin/data|g" /etc/cont-init.d/30-config
RUN cat /etc/services.d/jellyfin/run && cat /etc/cont-init.d/30-config
# copy local files
COPY root/ /

27
jellyfin/README.md Normal file
View File

@@ -0,0 +1,27 @@
# Hassio Add-ons by petersendev: Jellyfin
## About
[Jellyfin](https://jellyfin.github.io/) is a Free Software Media System that puts you in control of managing and streaming your media. It is an alternative to the proprietary Emby and Plex, to provide media from a dedicated server to end-user devices via multiple apps. Jellyfin is descended from Emby's 3.5.2 release and ported to the .NET Core framework to enable full cross-platform support. There are no strings attached, no premium licenses or features, and no hidden agendas: just a team who want to build something better and work together to achieve it.
This addon is based on the [docker image](https://github.com/linuxserver/docker-jellyfin) from linuxserver.io.
## Installation
The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Hass.io add-on.
1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance.
1. Install this add-on.
1. Click the `Save` button to store your configuration.
1. Start the add-on.
1. Check the logs of the add-on to see if everything went well.
1. Carefully configure the add-on to your preferences, see the official documentation for for that.
## Configuration
Webui can be found at `<your-ip>:8989`.
[repository]: https://github.com/petersendev/hassio-addons

41
jellyfin/config.json Normal file
View File

@@ -0,0 +1,41 @@
{
"name": "jellyfin",
"version": "0.1.0",
"slug": "jellyfin",
"legacy": true,
"maintenance": {
"github_release": "https://github.com/linuxserver/docker-jellyfin",
"version_regex": "v(\\d+\\.\\d+\\.\\d+)-(ls\\d+)"
},
"description": "A Free Software Media System that puts you in control of managing and streaming your media.",
"url": "https://github.com/petersendev/hassio-addons/jellyfin",
"startup": "services",
"arch": [
"aarch64",
"amd64",
"armhf"
],
"ports": {
"8096/tcp": 8096
},
"ports_description": {
"8096/tcp": "web interface"
},
"map": [
"config:rw",
"share:rw",
"ssl"
],
"webui": "http://[HOST]:[PORT:8096]",
"boot": "auto",
"options": {
"PUID": 1001,
"PGID": 1001
},
"schema": {
"PUID": "int",
"PGID": "int",
"TZ": "str?"
},
"image": "petersendev/hassio-jellyfin-{arch}"
}

BIN
jellyfin/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
jellyfin/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -0,0 +1,37 @@
#!/usr/bin/with-contenv bash
if [ ! -d /share/storage/tv ]; then
echo "Creating /share/storage/tv"
mkdir -p /share/storage/tv
chown -R abc:abc /share/storage/tv
fi
if [ ! -d /share/storage/movies ]; then
echo "Creating /share/storage/movies"
mkdir -p /share/storage/movies
chown -R abc:abc /share/storage/movies
fi
if [ ! -d /share/jellyfin/data ]; then
echo "Creating /share/jellyfin/data"
mkdir -p /share/jellyfin/data
chown -R abc:abc /share/jellyfin/data
fi
if [ ! -d /share/jellyfin/cache ]; then
echo "Creating /share/jellyfin/cache"
mkdir -p /share/jellyfin/cache
chown -R abc:abc /share/jellyfin/cache
fi
if [ ! -d /share/jellyfin/log ]; then
echo "Creating /share/jellyfin/log"
mkdir -p /share/jellyfin/log
chown -R abc:abc /share/jellyfin/log
fi
if [ ! -d /config/jellyfin ]; then
echo "Creating /config/jellyfin"
mkdir -p /config/jellyfin
chown -R abc:abc /config/jellyfin
fi