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,7 @@
## 0.4.0
- not a legacy addon anymore
## 0.3.0
- Update znc to 1.7.5 (linuxserver/znc:znc-1.7.5-ls23)

View File

@@ -2,6 +2,22 @@ ARG BUILD_FROM
# hadolint ignore=DL3006
FROM $BUILD_FROM
RUN apk add --no-cache \
curl=7.67.0-r0 \
jq=1.6-r0 \
&& curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v0.8.0.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 -f -r \
/tmp/*
# use /data instead of /config for hass.io environment
RUN sed -i "s|/config|/config/znc|g" /etc/services.d/znc/run \
&& sed -i "s|/config|/config/znc|g" /etc/cont-init.d/20-config \

View File

@@ -1,12 +1,12 @@
{
"build_from_template": {
"image": "linuxserver/znc",
"version": "znc-1.7.5-ls23"
"version": "znc-1.7.5-ls28"
},
"build_from": {
"armhf": "linuxserver/znc:arm32v7-znc-1.7.5-ls23",
"aarch64": "linuxserver/znc:arm64v8-znc-1.7.5-ls23",
"amd64": "linuxserver/znc:amd64-znc-1.7.5-ls23"
"armhf": "linuxserver/znc:arm32v7-znc-1.7.5-ls28",
"aarch64": "linuxserver/znc:arm64v8-znc-1.7.5-ls28",
"amd64": "linuxserver/znc:amd64-znc-1.7.5-ls28"
},
"squash": false,
"args": {}

View File

@@ -1,8 +1,8 @@
{
"name": "znc",
"version": "0.3.0",
"version": "0.4.0",
"slug": "znc",
"legacy": true,
"legacy": false,
"maintenance": {
"github_release": "https://github.com/linuxserver/docker-znc",
"version_regex": "(\\d+\\.\\d+\\.\\d+-?\\w*)-(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