mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
Convert addons to non-legacy (#36)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## 0.2.0
|
||||
|
||||
- not a legacy addon anymore
|
||||
|
||||
## 0.1.2
|
||||
|
||||
- transmission-magnet-redirect 0.1.2 (petersendev/transmission-magnet-redirect:0.1.2)
|
||||
@@ -1,3 +1,41 @@
|
||||
ARG BUILD_FROM
|
||||
# hadolint ignore=DL3006
|
||||
FROM $BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
ARG BUILD_ARCH=amd64
|
||||
RUN apt-get update \
|
||||
\
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq=1.5+dfsg-2+b1 \
|
||||
\
|
||||
&& S6_ARCH="${BUILD_ARCH}" \
|
||||
&& if [ "${BUILD_ARCH}" = "i386" ]; then S6_ARCH="x86"; fi \
|
||||
&& if [ "${BUILD_ARCH}" = "armv7" ]; then S6_ARCH="arm"; fi \
|
||||
\
|
||||
&& curl -L -s "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-${S6_ARCH}.tar.gz" \
|
||||
| tar zxvf - -C / \
|
||||
\
|
||||
&& mkdir -p /etc/fix-attrs.d \
|
||||
&& mkdir -p /etc/services.d \
|
||||
\
|
||||
&& 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/*
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
|
||||
ENTRYPOINT [ "/init" ]
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "transmission-magnet-redirect",
|
||||
"version": "0.1.2",
|
||||
"version": "0.2.0",
|
||||
"slug": "transmission-magnet-redirect",
|
||||
"legacy": true,
|
||||
"legacy": false,
|
||||
"maintenance": {
|
||||
"github_release": "https://github.com/petersendev/docker-transmission-magnet-redirect",
|
||||
"version_regex": "(\\d+\\.\\d\\.\\d)"
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
|
||||
if -n { s6-test $# -ne 0 }
|
||||
if -n { s6-test ${1} -eq 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
bashio::log.info 'Starting transmission-magnet-redirect...'
|
||||
|
||||
cd /app
|
||||
exec dotnet TransmissionMagnetRedirect.dll
|
||||
Reference in New Issue
Block a user