Skip to content

Commit

Permalink
Merge pull request #68 from GioF71/67-release-2022-09-17
Browse files Browse the repository at this point in the history
67 release 2022 09 17
  • Loading branch information
GioF71 committed Sep 17, 2022
2 parents 9d0b4ba + f06a315 commit 2600cf1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Images: [DockerHub](https://hub.docker.com/r/giof71/squeezelite)

## Why

I prepared this Dockerfile Because I wanted to be able to install squeezelite easily on any machine (provided the architecture is amd64 or arm). Also I wanted to be able to configure and govern the parameters easily, with particular reference to the configuration of the ALSA output. Configuring the container is easy through a webapp like [Portainer](https://www.portainer.io/).
I prepared this Dockerfile Because I wanted to be able to install squeezelite easily on any machine (provided the architecture is amd64 or arm). Also I wanted to be able to configure and govern the parameters easily, with particular reference to the configuration of the ALSA output. PulseAudio is also supported since 2022-09-15. Configuring the container is easy through a webapp like [Portainer](https://www.portainer.io/).

## Prerequisites

Expand Down Expand Up @@ -82,7 +82,7 @@ Variable|SqueezeLite corresponding option|Default|Notes
:---|:---:|:---:|:---
SQUEEZELITE_MODE||ALSA|Set to PULSE for [PulseAudio](#pulseaudio) mode
PUID||1000|User ID for PulseAudio Mode
PGID||1000|Gser ID for PulseAudio Mode
PGID||1000|Group ID for PulseAudio Mode
PRESET|||You can now choose to set variables using predefined presets. Presets can currently tune the values of `SQUEEZELITE_AUDIO_DEVICE`, `SQUEEZELITE_RATES`, `SQUEEZELITE_UPSAMPLING`, `SQUEEZELITE_CODECS` and `SQUEEZELITE_EXCLUDE_CODECS` for you. See the [Available presets](#available-presets) table for reference. Presets can be combined (the separator must be a comma `,`), but keep in mind that the first preset setting a variable has the priority: one set by a preset, a variable cannot be overwritten by subsequent presets.
SQUEEZELITE_AUDIO_DEVICE|-o||The audio device. Common examples: `hw:CARD=x20,DEV=0` or `hw:CARD=DAC,DEV=0` for usb dac based on XMOS. If left empty, the default alsa device is used.
SQUEEZELITE_PARAMS|-a||Please refer to the squeezelite's man page for `-a`.
Expand Down
9 changes: 9 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## Releases

### 2022-09-17

Feature|Description
:---|:---
Documentation|Fixed typo on PGID notes
Documentation|Mentioned PulseAudio early in Why section
PulseAudio/SystemD|Removed my custom player name from unit, now the player name reflects the hostname
PulseAudio/SystemD|Service now should wait for the network

### 2022-09-16

Feature|Description
Expand Down
17 changes: 9 additions & 8 deletions pulse/squeezelite-docker-pulse.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=Squeezelite Docker Pulse
After=network.target sound.target
After=network.target network-online.target sound.target
Wants=network-online.target

[Service]
Type=simple
Expand All @@ -9,15 +10,15 @@ ExecStartPre=-/usr/bin/docker rm squeezelite-pulse
ExecStartPre=-/usr/bin/docker network create squeezelite-pulse
ExecStart=/usr/bin/docker run -i \
--network=squeezelite-pulse \
-e PUID=%U \
-e PUID=%U \
-e PGID=%G \
-e SQUEEZELITE_MODE=PULSE \
-e SQUEEZELITE_NAME=xeon10-pulse-exp \
-e SQUEEZELITE_SERVER_PORT=lms.homelab.com \
-e SQUEEZELITE_MODE=PULSE \
-e SQUEEZELITE_NAME="%H-pulse" \
-e SQUEEZELITE_SERVER_PORT=lms.homelab.com \
-v /run/user/%U/pulse:/run/user/%U/pulse \
--name squeezelite-pulse \
--label com.centurylinklabs.watchtower.enable=false \
giof71/squeezelite:stable
--name squeezelite-pulse \
--label com.centurylinklabs.watchtower.enable=false \
giof71/squeezelite:stable

ExecStop=-/usr/bin/docker stop squeezelite-pulse
ExecStop=-/usr/bin/docker rm squeezelite-pulse
Expand Down

0 comments on commit 2600cf1

Please sign in to comment.