mirror of
https://github.com/hassio-addons/addon-mopidy.git
synced 2025-05-05 12:01:52 +00:00
⬆️ Upgrades add-on base image to 6.0.0 (#201)
This commit is contained in:
parent
998a488acb
commit
0c5f09e2ca
11 changed files with 51 additions and 54 deletions
|
@ -1,4 +1,4 @@
|
||||||
ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base/amd64:4.2.2
|
ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base/amd64:6.0.0
|
||||||
# hadolint ignore=DL3006
|
# hadolint ignore=DL3006
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
|
@ -10,51 +10,48 @@ COPY requirements.txt /tmp/
|
||||||
|
|
||||||
# Setup base
|
# Setup base
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
mkdir -p /usr/local/share/keyrings \
|
||||||
\
|
&& curl -L https://apt.mopidy.com/mopidy.gpg -o /usr/local/share/keyrings/mopidy-archive-keyring.gpg \
|
||||||
&& apt-get install -y --no-install-recommends \
|
|
||||||
dirmngr=2.2.12-1+deb10u1 \
|
|
||||||
gpg-agent=2.2.12-1+deb10u1 \
|
|
||||||
gpg=2.2.12-1+deb10u1 \
|
|
||||||
nginx=1.14.2-2+deb10u4 \
|
|
||||||
git=1:2.20.1-2+deb10u3 \
|
|
||||||
\
|
|
||||||
&& curl -L https://apt.mopidy.com/mopidy.gpg | apt-key add - \
|
|
||||||
&& curl -L https://apt.mopidy.com/mopidy.list -o /etc/apt/sources.list.d/mopidy.list \
|
&& curl -L https://apt.mopidy.com/mopidy.list -o /etc/apt/sources.list.d/mopidy.list \
|
||||||
\
|
\
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
\
|
\
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
libffi-dev=3.2.1-9 \
|
build-essential=12.9 \
|
||||||
libxml2-dev=2.9.4+dfsg1-7+deb10u2 \
|
git=1:2.30.2-1 \
|
||||||
libxslt1-dev=1.1.32-2.2~deb10u1 \
|
gstreamer1.0-alsa=1.18.4-2 \
|
||||||
libasound2-dev=1.1.8-1 \
|
gstreamer1.0-plugins-bad=1.18.4-3 \
|
||||||
libspotify12=12.1.51-1 \
|
gstreamer1.0-plugins-good=1.18.4-2 \
|
||||||
|
gstreamer1.0-plugins-ugly=1.18.4-2 \
|
||||||
|
gstreamer1.0-pulseaudio=1.18.4-2 \
|
||||||
|
libasound2-dev=1.2.4-1.1 \
|
||||||
|
libffi-dev=3.3-6 \
|
||||||
libspotify-dev=12.1.51-1 \
|
libspotify-dev=12.1.51-1 \
|
||||||
zlib1g-dev=1:1.2.11.dfsg-1 \
|
libspotify12=12.1.51-1 \
|
||||||
build-essential=12.6 \
|
libxml2-dev=2.9.10+dfsg-6.7+deb11u2 \
|
||||||
python3-dev=3.7.3-1 \
|
libxslt1-dev=1.1.34-4 \
|
||||||
python3-gi=3.30.4-1 \
|
nginx=1.18.0-6.1 \
|
||||||
python3-gst-1.0=1.14.4-1+b1 \
|
python3-dev=3.9.2-3 \
|
||||||
gstreamer1.0-alsa=1.14.4-2+deb10u1 \
|
python3-gi=3.38.0-2 \
|
||||||
gstreamer1.0-plugins-bad=1.14.4-1+deb10u2 \
|
python3-gst-1.0=1.18.3-1 \
|
||||||
gstreamer1.0-plugins-good=1.14.4-1+deb10u1 \
|
zlib1g-dev=1:1.2.11.dfsg-2+deb11u1 \
|
||||||
gstreamer1.0-plugins-ugly=1.14.4-1+deb10u1 \
|
mopidy=3.3.0-1 \
|
||||||
gstreamer1.0-pulseaudio=1.14.4-1+deb10u1 \
|
mopidy-alsamixer=2.0.1-1 \
|
||||||
|
mopidy-local=3.2.1-1 \
|
||||||
|
mopidy-mpd=3.3.0-1 \
|
||||||
|
mopidy-podcast=3.0.1-1 \
|
||||||
|
mopidy-soundcloud=3.0.1-1 \
|
||||||
|
mopidy-tunein=1.1.0-1 \
|
||||||
\
|
\
|
||||||
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
|
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
|
||||||
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
|
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
|
||||||
\
|
\
|
||||||
&& find /usr/local/lib/python3.7/ -type d -name tests -depth -exec rm -rf {} \; \
|
&& find /usr/local \
|
||||||
&& find /usr/local/lib/python3.7/ -type d -name test -depth -exec rm -rf {} \; \
|
\( -type d -a -name test -o -name tests -o -name '__pycache__' \) \
|
||||||
&& find /usr/local/lib/python3.7/ -name __pycache__ -depth -exec rm -rf {} \; \
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||||
&& find /usr/local/lib/python3.7/ -name "*.pyc" -depth -exec rm -f {} \; \
|
-exec rm -rf '{}' + \
|
||||||
\
|
\
|
||||||
&& apt-get purge -y --auto-remove \
|
&& apt-get purge -y --auto-remove \
|
||||||
dirmngr \
|
|
||||||
gpg-agent \
|
|
||||||
gpg \
|
|
||||||
git \
|
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
|
@ -63,7 +60,6 @@ RUN \
|
||||||
gcc \
|
gcc \
|
||||||
python-dev \
|
python-dev \
|
||||||
dpkg-dev \
|
dpkg-dev \
|
||||||
gcc-7 \
|
|
||||||
&& rm -fr \
|
&& rm -fr \
|
||||||
/var/{cache,log}/* \
|
/var/{cache,log}/* \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
---
|
---
|
||||||
build_from:
|
build_from:
|
||||||
amd64: ghcr.io/hassio-addons/debian-base/amd64:4.2.2
|
amd64: ghcr.io/hassio-addons/debian-base/amd64:6.0.0
|
||||||
|
codenotary:
|
||||||
|
base_image: codenotary@frenck.dev
|
||||||
|
signer: codenotary@frenck.dev
|
||||||
|
|
|
@ -5,9 +5,11 @@ slug: mopidy
|
||||||
panel_icon: mdi:music-circle
|
panel_icon: mdi:music-circle
|
||||||
description: Mopidy is an extensible music server
|
description: Mopidy is an extensible music server
|
||||||
url: https://github.com/hassio-addons/addon-mopidy
|
url: https://github.com/hassio-addons/addon-mopidy
|
||||||
|
codenotary: codenotary@frenck.dev
|
||||||
ingress: true
|
ingress: true
|
||||||
ingress_entry: iris/
|
ingress_entry: iris/
|
||||||
ingress_stream: true
|
ingress_stream: true
|
||||||
|
init: false
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
auth_api: true
|
auth_api: true
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
Mopidy==3.3.0
|
|
||||||
Pykka==3.1.1
|
|
||||||
Mopidy-Local==3.2.1
|
|
||||||
Mopidy-AlsaMixer==2.0.1
|
|
||||||
Mopidy-Spotify==4.1.1
|
Mopidy-Spotify==4.1.1
|
||||||
Mopidy-Iris==3.63.0
|
Mopidy-Iris==3.63.0
|
||||||
Mopidy-SoundCloud==3.0.1
|
|
||||||
Mopidy-GMusic==4.0.1
|
Mopidy-GMusic==4.0.1
|
||||||
Mopidy-Youtube==3.5
|
Mopidy-Youtube==3.5
|
||||||
Mopidy-MPD==3.3.0
|
|
2
mopidy/rootfs/etc/cont-init.d/folders.sh
Normal file → Executable file
2
mopidy/rootfs/etc/cont-init.d/folders.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Ensures needed folder exists.
|
# Ensures needed folder exists.
|
||||||
|
|
2
mopidy/rootfs/etc/cont-init.d/nginx.sh
Normal file → Executable file
2
mopidy/rootfs/etc/cont-init.d/nginx.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Configures NGINX
|
# Configures NGINX
|
||||||
|
|
2
mopidy/rootfs/etc/cont-init.d/packages.sh
Normal file → Executable file
2
mopidy/rootfs/etc/cont-init.d/packages.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Install user configured/requested packages
|
# Install user configured/requested packages
|
||||||
|
|
10
mopidy/rootfs/etc/services.d/mopidy/finish
Normal file → Executable file
10
mopidy/rootfs/etc/services.d/mopidy/finish
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Take down the S6 supervision tree when Mopidy fails
|
# Take down the S6 supervision tree when Mopidy fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if -n { s6-test $# -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if -n { s6-test ${1} -eq 256 }
|
bashio::log.warning "Mopidy crashed, halting add-on"
|
||||||
|
/run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
bashio::log.info "Mopidy stopped, restarting..."
|
||||||
|
|
2
mopidy/rootfs/etc/services.d/mopidy/run
Normal file → Executable file
2
mopidy/rootfs/etc/services.d/mopidy/run
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Runs the Mopidy
|
# Runs the Mopidy
|
||||||
|
|
2
mopidy/rootfs/etc/services.d/nginx/finish
Normal file → Executable file
2
mopidy/rootfs/etc/services.d/nginx/finish
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Take down the S6 supervision tree when Nginx fails
|
# Take down the S6 supervision tree when Nginx fails
|
||||||
|
|
6
mopidy/rootfs/etc/services.d/nginx/run
Normal file → Executable file
6
mopidy/rootfs/etc/services.d/nginx/run
Normal file → Executable file
|
@ -1,12 +1,12 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Mopidy
|
# Home Assistant Community Add-on: Mopidy
|
||||||
# Runs the Nginx daemon
|
# Runs the NGINX daemon
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
declare -a options
|
declare -a options
|
||||||
|
|
||||||
# Wait for Mopidy to become available
|
# Wait for Mopidy to become available
|
||||||
bashio::net.wait_for 4478
|
bashio::net.wait_for 4478
|
||||||
|
|
||||||
bashio::log.info "Starting NGinx..."
|
bashio::log.info "Starting NGINX..."
|
||||||
exec nginx "${options[@]}"
|
exec nginx "${options[@]}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue