initial commit
This commit is contained in:
commit
55113f9f52
15
.drone.yml
Normal file
15
.drone.yml
Normal file
@ -0,0 +1,15 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: djeeberjr/spotifyd
|
||||
username: djeeberjr
|
||||
password:
|
||||
from_secret: DOCKER_HUB_TOKEN
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@ -0,0 +1,26 @@
|
||||
FROM rust as build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN apt-get -yqq update && \
|
||||
apt-get install --no-install-recommends -yqq libasound2-dev && \
|
||||
git clone --branch=master https://github.com/Spotifyd/spotifyd.git .
|
||||
|
||||
RUN cargo build --release --features alsa_backend
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -yqq --no-install-recommends libasound2 && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
groupadd -r spotify && \
|
||||
useradd --no-log-init -r -g spotify -G audio spotify
|
||||
|
||||
USER spotify
|
||||
|
||||
COPY --from=build /build/target/release/spotifyd /spotifyd
|
||||
COPY start.sh /start.sh
|
||||
|
||||
WORKDIR /
|
||||
|
||||
ENTRYPOINT [ "/start.sh" ]
|
20
README.md
Normal file
20
README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Spotifyd docker
|
||||
|
||||
Run [spotifyd](https://github.com/Spotifyd/spotifyd) inside docker. Inspired by [GnaphronG/docker-spotifyd](https://github.com/GnaphronG/docker-spotifyd).
|
||||
|
||||
# Setup
|
||||
|
||||
You need to add the `/dev/snd` to the container. Because the container uses Alsa you can have only one application use the device. If you have a something else runnig on your system that uses Alsa, you will get an error.
|
||||
|
||||
Check out the `docker-compose.yml` for an example.
|
||||
|
||||
# Configuration
|
||||
|
||||
Following variables are available.
|
||||
|
||||
`SPOTIFYD_USERNAME` Required. Spotify username.
|
||||
|
||||
`SPOTIFYD_PASSWORD` Required. Spotify password.
|
||||
|
||||
`SPOTIFYD_DEVICE` Name of the device.
|
||||
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
spotifyd:
|
||||
container_name: spotify
|
||||
image: djeeberjr/spotifyd
|
||||
build: .
|
||||
devices:
|
||||
- "/dev/snd:/dev/snd"
|
||||
environment:
|
||||
- SPOTIFYD_USERNAME=myUsername
|
||||
- SPOTIFYD_PASSWORD=myPassword
|
||||
- SPOTIFYD_DEVICE=Spotifyd
|
Loading…
Reference in New Issue
Block a user