Skip to content

Commit

Permalink
Merge pull request #19 from meltaxa/bullseye
Browse files Browse the repository at this point in the history
Updated for Raspberry Pi OS Bullseye
  • Loading branch information
meltaxa authored Mar 21, 2022
2 parents b50268e + ea1cb7e commit 52ab29f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9
FROM python:3.9-alpine

WORKDIR /musicfig
COPY . /musicfig/
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ Bus 001 Device 008: ID 0e6f:0241 Logic3

When running Docker, the device path will correspond to the bus and device numbers. For example, Bus 001 and Device 008 would correspond to: /dev/bus/usb/001/008.

Run Docker:
Run Musicfig Docker example (change the config directory mount and usb device bus accordingly):
```
docker run -v <path/to/configs>:/config -p 5000:5000 --device=/dev/bus/usb/<bus>/<device> --device=/dev/snd meltaxa/musicfig
docker run -v /home/pi/musicfig:/config -p 5000:5000 --device=/dev/bus/usb/001/008 --device=/dev/snd meltaxa/musicfig
```
The /path/to/configs is the directory where you store the config.py and tags.yml files.
In this example, the /home/pi/musicfig is the directory where you store the config.py and tags.yml files.

# Stopping and Starting

Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pip_install() {
setup_usb() {
if [ ! -f /etc/udev/rules.d/99-lego.rules ]; then
echo "[INFO] Install USB device rules..."
curl -s -O https://raw.githubusercontent.com/meltaxa/musicfig/master/99-lego.rules
sudo cp ${DIR}/99-lego.rules /etc/udev/rules.d
sudo udevadm control --reload-rules && sudo udevadm trigger
fi
Expand Down

0 comments on commit 52ab29f

Please sign in to comment.