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
|
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
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
|
ARG BUILD_ARCH
|
||||||
|
|
||||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add \
|
apk add \
|
||||||
gst-plugins-good \
|
gst-plugins-good \
|
||||||
gst-plugins-bad \
|
gst-plugins-bad \
|
||||||
librespot \
|
|
||||||
mopidy \
|
mopidy \
|
||||||
nginx \
|
nginx \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
snapcast-server \
|
snapcast-server \
|
||||||
supervisor && \
|
supervisor && \
|
||||||
python3 -m pip install Mopidy-Mobile && \
|
python3 -m pip install --break-system-packages Mopidy-Mobile && \
|
||||||
echo "daemon off;" >> /etc/nginx/nginx.conf
|
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/supervisord.conf /etc/supervisord.conf
|
||||||
|
|
||||||
COPY data/snapserver.conf /etc/snapserver.conf
|
COPY data/snapserver.conf /etc/snapserver.conf
|
||||||
|
@ -33,7 +45,9 @@ EXPOSE 1704 1705 6680
|
||||||
ENV LIBRESPOT_BACKEND=pipe
|
ENV LIBRESPOT_BACKEND=pipe
|
||||||
ENV LIBRESPOT_DEVICE=/tmp/snapfifo_librespot
|
ENV LIBRESPOT_DEVICE=/tmp/snapfifo_librespot
|
||||||
ENV LIBRESPOT_NAME=Snapcast
|
ENV LIBRESPOT_NAME=Snapcast
|
||||||
ENV LIBRESPOT_AUTOPLAY=true
|
ENV LIBRESPOT_AUTOPLAY=on
|
||||||
ENV LIBRESPOT_VOLUME=100
|
ENV LIBRESPOT_VOLUME=100
|
||||||
|
|
||||||
|
ENV RUST_LOG=DEBUG
|
||||||
|
|
||||||
CMD [ "/run.sh" ]
|
CMD [ "/run.sh" ]
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
name: "Snapcast"
|
name: "Snapcast"
|
||||||
description: "Snapcast server with librespot and mopidy"
|
description: "Snapcast server with librespot and mopidy"
|
||||||
version: "0.0.8"
|
version: "0.1.0-dev1"
|
||||||
slug: "snapcast"
|
slug: "snapcast"
|
||||||
|
image: registry.serguzim.me/hass-io/snapcast-dev
|
||||||
init: false
|
init: false
|
||||||
ingress: true
|
ingress: true
|
||||||
startup: application
|
startup: application
|
||||||
|
@ -26,6 +27,7 @@ schema:
|
||||||
spotify_username: str
|
spotify_username: str
|
||||||
spotify_password: password
|
spotify_password: password
|
||||||
radios:
|
radios:
|
||||||
- name: str
|
- name: str?
|
||||||
url: 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
|
source = pipe:///tmp/snapfifo_librespot?name=Spotify&sampleformat=44100:16:2
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
filter = debug
|
filter = info
|
||||||
|
|
||||||
[http]
|
[http]
|
||||||
doc_root = /usr/share/snapserver/snapweb/
|
doc_root = /usr/share/snapserver/snapweb/
|
||||||
|
|
|
@ -5,6 +5,7 @@ logfile_maxbytes=0
|
||||||
pidfile=/run/supervisord.pid
|
pidfile=/run/supervisord.pid
|
||||||
user=root
|
user=root
|
||||||
|
|
||||||
|
|
||||||
[program:nginx]
|
[program:nginx]
|
||||||
command=nginx
|
command=nginx
|
||||||
priority=1
|
priority=1
|
||||||
|
@ -14,9 +15,7 @@ stdout_logfile_maxbytes=0
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
killasgroup=true
|
killasgroup=true
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
user=root
|
|
||||||
|
|
||||||
[program:snapcast-server]
|
[program:snapcast-server]
|
||||||
command=snapserver
|
command=snapserver
|
||||||
|
@ -27,9 +26,7 @@ stdout_logfile_maxbytes=0
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
killasgroup=true
|
killasgroup=true
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
user=root
|
|
||||||
|
|
||||||
[program:mopidy]
|
[program:mopidy]
|
||||||
command=mopidy --config /etc/mopidy/
|
command=mopidy --config /etc/mopidy/
|
||||||
|
@ -40,19 +37,14 @@ stdout_logfile_maxbytes=0
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
killasgroup=true
|
killasgroup=true
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
user=root
|
|
||||||
|
|
||||||
[program:librespot]
|
[program:librespot]
|
||||||
command=librespot
|
command=librespot
|
||||||
priority=1
|
priority=1
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/config/librespot.log
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
|
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
killasgroup=true
|
killasgroup=true
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
user=root
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ variable "REG" {
|
||||||
default = "registry.serguzim.me"
|
default = "registry.serguzim.me"
|
||||||
}
|
}
|
||||||
variable "REPO" {
|
variable "REPO" {
|
||||||
default = "smarthome/audio"
|
default = "hass-io/snapcast"
|
||||||
}
|
}
|
||||||
variable "TAG" {
|
variable "TAG" {
|
||||||
default = "latest"
|
default = "latest"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue