Try to fix problems (project abandoned)
This commit is contained in:
parent
39073d8f3a
commit
dd147a743a
5 changed files with 30 additions and 22 deletions
|
@ -1,20 +1,32 @@
|
|||
ARG BUILD_FROM
|
||||
|
||||
#FROM rust:alpine as librespot-builder
|
||||
#
|
||||
#RUN apk add git build-base \
|
||||
# && git clone https://github.com/librespot-org/librespot.git /librespot \
|
||||
# && cd /librespot \
|
||||
# && cargo build --release --no-default-features
|
||||
|
||||
FROM $BUILD_FROM
|
||||
|
||||
ARG BUILD_ARCH
|
||||
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk add \
|
||||
gst-plugins-good \
|
||||
gst-plugins-bad \
|
||||
librespot \
|
||||
mopidy \
|
||||
nginx \
|
||||
py3-pip \
|
||||
snapcast-server \
|
||||
supervisor && \
|
||||
python3 -m pip install Mopidy-Mobile && \
|
||||
python3 -m pip install --break-system-packages Mopidy-Mobile && \
|
||||
echo "daemon off;" >> /etc/nginx/nginx.conf
|
||||
|
||||
#COPY --from=librespot-builder /librespot/target/release/librespot /usr/bin/librespot
|
||||
ADD --chmod=755 https://s3.serguzim.me/public/librespot/librespot-${BUILD_ARCH} /usr/bin/librespot
|
||||
|
||||
COPY data/supervisord.conf /etc/supervisord.conf
|
||||
|
||||
COPY data/snapserver.conf /etc/snapserver.conf
|
||||
|
@ -33,7 +45,9 @@ EXPOSE 1704 1705 6680
|
|||
ENV LIBRESPOT_BACKEND=pipe
|
||||
ENV LIBRESPOT_DEVICE=/tmp/snapfifo_librespot
|
||||
ENV LIBRESPOT_NAME=Snapcast
|
||||
ENV LIBRESPOT_AUTOPLAY=true
|
||||
ENV LIBRESPOT_AUTOPLAY=on
|
||||
ENV LIBRESPOT_VOLUME=100
|
||||
|
||||
ENV RUST_LOG=DEBUG
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
name: "Snapcast"
|
||||
description: "Snapcast server with librespot and mopidy"
|
||||
version: "0.0.8"
|
||||
version: "0.1.0-dev1"
|
||||
slug: "snapcast"
|
||||
image: registry.serguzim.me/hass-io/snapcast-dev
|
||||
init: false
|
||||
ingress: true
|
||||
startup: application
|
||||
|
@ -26,6 +27,7 @@ schema:
|
|||
spotify_username: str
|
||||
spotify_password: password
|
||||
radios:
|
||||
- name: str
|
||||
url: str
|
||||
|
||||
- name: str?
|
||||
url: str?
|
||||
map:
|
||||
- addon_config:rw
|
||||
|
|
|
@ -5,7 +5,7 @@ source = tcp://127.0.0.1:4953?name=Mopidy
|
|||
source = pipe:///tmp/snapfifo_librespot?name=Spotify&sampleformat=44100:16:2
|
||||
|
||||
[logging]
|
||||
filter = debug
|
||||
filter = info
|
||||
|
||||
[http]
|
||||
doc_root = /usr/share/snapserver/snapweb/
|
||||
|
|
|
@ -5,6 +5,7 @@ logfile_maxbytes=0
|
|||
pidfile=/run/supervisord.pid
|
||||
user=root
|
||||
|
||||
|
||||
[program:nginx]
|
||||
command=nginx
|
||||
priority=1
|
||||
|
@ -14,9 +15,7 @@ stdout_logfile_maxbytes=0
|
|||
redirect_stderr=true
|
||||
killasgroup=true
|
||||
stopasgroup=true
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=root
|
||||
|
||||
|
||||
[program:snapcast-server]
|
||||
command=snapserver
|
||||
|
@ -27,9 +26,7 @@ stdout_logfile_maxbytes=0
|
|||
redirect_stderr=true
|
||||
killasgroup=true
|
||||
stopasgroup=true
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=root
|
||||
|
||||
|
||||
[program:mopidy]
|
||||
command=mopidy --config /etc/mopidy/
|
||||
|
@ -40,19 +37,14 @@ stdout_logfile_maxbytes=0
|
|||
redirect_stderr=true
|
||||
killasgroup=true
|
||||
stopasgroup=true
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=root
|
||||
|
||||
|
||||
[program:librespot]
|
||||
command=librespot
|
||||
priority=1
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile=/config/librespot.log
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
redirect_stderr=true
|
||||
killasgroup=true
|
||||
stopasgroup=true
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=root
|
||||
|
|
|
@ -2,7 +2,7 @@ variable "REG" {
|
|||
default = "registry.serguzim.me"
|
||||
}
|
||||
variable "REPO" {
|
||||
default = "smarthome/audio"
|
||||
default = "hass-io/snapcast"
|
||||
}
|
||||
variable "TAG" {
|
||||
default = "latest"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue