GioF71 / network-audio-daemon-docker

A docker image for Signalyst Network Audio Daemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

network-audio-daemon-docker

A docker image for network-audio-adapter by signalyst.

References

NAME LINK
Signalyst Main website Website
Signalyst Consumer Products Link

Links

REPOSITORY TYPE LINK
Git Repository GitHub
Docker Images Docker Hub

Build

Build Arguments

ARGUMENT DESCRIPTION
NAA_VERSION The version to install, defaults to 5.0.0-59
FORCE_ARCH Force the installation of the specified architecture, empty by default

Build Examples

You can build version e.g. 5.0.0-59 (the current default) using the following command:

docker build . --build-arg -t giof71/network-audio-daemon

If you need to force the architecture (for example on a Raspberry Pi 4 running OSMC, so arm64 architecture but armhf packages), run the following:

docker build . --build-arg FORCE_ARCH=armv7l -t giof71/network-audio-daemon

Configure

Environment Variables

VARIABLE DESCRIPTION
NAA_NAME Player name, defaults to an empty string

Usage

Using docker run

You can run the container by typing:

docker run -d \
  --name network-audio-daemon \
  --network=host \
  --device /dev/snd \
  -e NAA_NAME=D10 \
  giof71/network-audio-daemon

It is possible to run the container using a specific uid:gid:

docker run -d \
  --name network-audio-daemon \
  --user "1000:29" \
  --network=host \
  --device /dev/snd \
  -e NAA_NAME=D10 \
  giof71/network-audio-daemon

I am using uid 1000 and gid 29 which corresponds, on my system, to the audio group.
Check the gid of the group audio using this command:

getent group audio

then modify the docker run commands accordingly.

Using docker compose

Example compose file:

---
version: "3"

services:
  network-audio-daemon:
    image: giof71/network-audio-daemon:latest
    container_name: network-audio-daemon
    user: "1000:29"
    network_mode: host
    devices:
      - /dev/snd:/dev/snd
    environment:
      - NAA_NAME=D10
    restart: unless-stopped

The user clause is optional as described in the Using docker run paragraph.

About

A docker image for Signalyst Network Audio Daemon

License:MIT License


Languages

Language:Shell 59.3%Language:Dockerfile 40.7%