-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable more beets plugins, persist state
Store beet state file within the volume (along with the music library and db) in order to be able to resume imports.
- Loading branch information
1 parent
9114149
commit d14dddb
Showing
3 changed files
with
173 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
FROM python:3-alpine3.18 | ||
RUN apk add --update --no-cache cargo g++ openblas-dev ffmpeg | ||
RUN apk add --update --no-cache cargo g++ openblas-dev ffmpeg flac py3-gst gst-plugins-good gst-plugins-bad chromaprint jq recode | ||
RUN python3 -m pip install \ | ||
beets==1.6.0 \ | ||
flask==3.0.0 \ | ||
flask-cors==4.0.0 \ | ||
pylast==5.2.0 \ | ||
pyacoustid==1.3.0 \ | ||
python-mpd2==3.1.0 \ | ||
beets-describe==0.0.4 \ | ||
beets-goingrunning==1.2.5 | ||
RUN apk add --update --no-cache beets | ||
COPY beets.yaml /etc/beets.yaml | ||
RUN set -eux; \ | ||
addgroup -g 1000 beets; \ | ||
adduser -Su 1000 -G beets beets; \ | ||
mkdir -m750 /data; \ | ||
chown beets:beets /data | ||
chown beets:beets /data; \ | ||
mkdir -p /home/beets/.config; \ | ||
ln -s /data/beets-state /home/beets/.config/beets | ||
COPY beets.yaml /etc/beets.yaml | ||
COPY entrypoint.sh /entrypoint.sh | ||
USER beets:beets | ||
WORKDIR /data | ||
ENTRYPOINT ["beet", "-c", "/etc/beets.yaml"] | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["web"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
mkdir -p /data/beets-state | ||
|
||
exec beet -c /etc/beets.yaml "$@" |