-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal container based on Alpine Linux #156
Comments
Tested it and its working great for me. Thanks, this is more elegant than my own dockerfile. |
Have you used any particular flag to run the container? It is not able to talk to ALSA on my setup. |
My bad, only tested with pulse (well, pipewire). |
I also forgot to mention how I run this one. Minimal compose file would be services:
go_librespot
image: docker.io/odiroot/go-librespot:latest
network_mode: host
volumes:
- "./vol_config:/config"
- "/home/<your username>/.config/pulse/cookie:/pulse_cookie:ro"
- "/run/user/<your uid>/pulse/native:/pulse_native"
environment:
PULSE_SERVER: "unix:/pulse_native"
PULSE_COOKIE: "/pulse_cookie"
userns_mode: keep-id Naturally Now for running with ALSA I believe this should work: services:
go_librespot:
image: docker.io/odiroot/go-librespot:latest
network_mode: host
volumes:
- "./vol_config:/config"
- "/usr/share/alsa:/usr/share/alsa:ro"
devices:
- "/dev/snd:/dev/snd"
userns_mode: keep-id |
Can confirm that the PulseAudio setup works, I was not able to get ALSA to work, but nontheless I'll add this to the repo and make official docker images! |
Sorry about the ALSA thing. I also couldn't get it to work but for a completely unrelated reason (config being ignored). |
Build fines for me and on the CI too: https://github.com/devgianlu/go-librespot/actions/runs/12573825057/job/35047226348 I'll leave this open if you think there are possible improvements, feel free to make a PR too! |
Hey @devgianlu |
Oops, copy pasted too much, thanks for noticing :^) |
My bad, sorry - I only used it with pipe output which should be the most easy scenario for a docker setup |
You might find it useful, if not please just close this issue.
I managed to build a very lightweight container starting with an Alpine Linux 3.20 base.
The result
See it published here.
Here's the Dockerfile I used
The text was updated successfully, but these errors were encountered: