Convert addons to non-legacy (#36)

This commit is contained in:
Arne Petersen
2020-02-21 07:36:55 +01:00
committed by GitHub
parent 790ab99324
commit a14fabc5d4
55 changed files with 767 additions and 229 deletions

View File

@@ -1,3 +1,8 @@
## 0.2.0
- not a legacy addon anymore
- Update base image to linuxserver/emby:4.3.1.0-ls31
## 0.1.0
- emby to 4.3.1.0 (linuxserver/emby:4.3.1.0-ls26)

View File

@@ -2,11 +2,31 @@ ARG BUILD_FROM
# hadolint ignore=DL3006
FROM $BUILD_FROM
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
\
&& apt-get install -y --no-install-recommends \
jq=1.5+dfsg-2 \
\
&& curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v0.7.1.tar.gz" \
&& mkdir /tmp/bashio \
&& tar zxvf \
/tmp/bashio.tar.gz \
--strip 1 -C /tmp/bashio \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \
/tmp/* \
/var/{cache,log}/* \
/var/lib/apt/lists/*
RUN sed -i "s|/config|/emby|g" /etc/services.d/emby/run \
&& sed -i "s|/config|/emby|g" /etc/cont-init.d/30-config
RUN cat /etc/services.d/emby/run
# copy local files
COPY root/ /

View File

@@ -1,13 +1,13 @@
{
"build_from_template": {
"image": "linuxserver/emby",
"version": "4.3.1.0-ls26"
"version": "4.3.1.0-ls31"
},
"build_from": {
"armhf": "linuxserver/emby:arm32v7-4.3.1.0-ls26",
"aarch64": "linuxserver/emby:arm64v8-4.3.1.0-ls26",
"amd64": "linuxserver/emby:amd64-4.3.1.0-ls26"
"armhf": "linuxserver/emby:arm32v7-4.3.1.0-ls31",
"aarch64": "linuxserver/emby:arm64v8-4.3.1.0-ls31",
"amd64": "linuxserver/emby:amd64-4.3.1.0-ls31"
},
"squash": false,
"args": {}
}
}

View File

@@ -1,8 +1,8 @@
{
"name": "emby",
"version": "0.1.0",
"version": "0.2.0",
"slug": "emby",
"legacy": true,
"legacy": false,
"maintenance": {
"github_release": "https://github.com/linuxserver/docker-emby",
"version_regex": "(\\d+\\.\\d+\\.\\d+.\\d+)-(ls\\d+)"

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
done