forked from balena-io-experimental/audio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
34 lines (24 loc) · 972 Bytes
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:bullseye-run
WORKDIR /usr/src
# Required to autodetect ALSA devices
ENV UDEV=on
# DBUS is required for module-bluetooth-discover
ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
RUN install_packages pulseaudio pulseaudio-module-bluetooth xxd alsa-utils libasound2-plugin-equal
#setting variables specific to uschwars device
ENV AUDIO_OUTPUT=EQ
ENV BALENA_HOST_CONFIG_dtoverlay=hifiberry-dacplus
# For local development
#dev-cmd-live=pulseaudio || balena-idle
# PulseAudio configuration
COPY pulseaudio/primitive.pa /etc/pulse/primitive.pa
COPY pulseaudio/client.conf /etc/pulse/client.conf
COPY pulseaudio/daemon.conf /etc/pulse/daemon.conf
# Alsa EQ configuration
COPY alsa/asound.conf /etc/asound.conf
# UDev configuration
COPY udev/95-balena-audio.rules /etc/udev/rules.d/95-balena-audio.rules
# Entrypoint
COPY entry.sh .
ENTRYPOINT [ "/bin/bash", "/usr/src/entry.sh" ]
CMD [ "pulseaudio" ]