-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (23 loc) · 971 Bytes
/
Makefile
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
REMOTE_IMAGE_REF=piotrb/raspotify-docker:latest
build:
docker build . --platform arm -t piotrb/raspotify-docker:armhf-buster
push:
docker push piotrb/raspotify-docker:armhf-buster
docker manifest create ${REMOTE_IMAGE_REF} piotrb/raspotify-docker:armhf-buster
docker manifest annotate ${REMOTE_IMAGE_REF} piotrb/raspotify-docker:armhf-buster --os linux --arch arm --variant buster
docker manifest push --purge ${REMOTE_IMAGE_REF}
install:
sudo install -m 644 -o root -g root lib/systemd/system/raspotify-docker.service /lib/systemd/system/raspotify-docker.service
[ -e /etc/default/raspotify-docker ] || sudo install -m 644 -o root -g root etc/default/raspotify-docker /etc/default/raspotify-docker
sudo systemctl daemon-reload
sudo systemctl enable raspotify-docker
sudo systemctl start raspotify-docker
run:
docker run \
--net=host \
--rm \
-it \
--device /dev/snd \
-e DEVICE_NAME="raspotify-docker" \
-e BITRATE=320 \
${REMOTE_IMAGE_REF}