forked from justifiably/docker-logitechmediaserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
14 lines (11 loc) · 789 Bytes
/
Makefile
File metadata and controls
14 lines (11 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SH=/bin/bash
TAG=$(shell cat lmsdeb.txt | sed 's/.*_\([0-9\.~]*\)_all.deb/\1/' | sed 's/~/-/')
USER=jjvdgeer
#LMS_PATCHES=
build:
docker build --build-arg LMSDEB=`cat lmsdeb.txt` --build-arg LMS_PATCHES=$(LMS_PATCHES) -t $(USER)/logitechmediaserver:$(TAG) .; docker tag $(USER)/logitechmediaserver:$(TAG) $(USER)/logitechmediaserver:latest
base:
wget -O - -q "http://www.mysqueezebox.com/update/?version=7.9.2&revision=1&geturl=1&os=deb" > lmsdeb.txt
# Grab 8.0.0 latest beta release, can be updated in place without rebuilding image.
update:
-(LMSLATEST=`wget -O - -q "http://www.mysqueezebox.com/update/?version=8.0.0&revision=1&geturl=1&os=deb"`; if [ "`cat lmsdeb.txt`" = "$$LMSLATEST" ]; then echo "No update available"; exit 1; else /bin/echo -n $$LMSLATEST > lmsdeb.txt; fi)