aboutsummaryrefslogtreecommitdiff
path: root/unifi
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2018-09-14 13:34:12 +0000
committerMike Crute <mike@crute.us>2018-09-14 13:34:12 +0000
commit8b9acf5175be71e03bb77228b921076265be4112 (patch)
treefc372ebec1b195213f344aab6f59c0896f3b4ff7 /unifi
parent761c86255560a4f9ad067babe063db268adce093 (diff)
downloaddockerfiles-8b9acf5175be71e03bb77228b921076265be4112.tar.bz2
dockerfiles-8b9acf5175be71e03bb77228b921076265be4112.tar.xz
dockerfiles-8b9acf5175be71e03bb77228b921076265be4112.zip
Upgrade unifi to 5.8.30
Diffstat (limited to 'unifi')
-rw-r--r--unifi/Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/unifi/Makefile b/unifi/Makefile
index 0807def..b236ac6 100644
--- a/unifi/Makefile
+++ b/unifi/Makefile
@@ -1,21 +1,24 @@
1VERSION=5.8.28-alpine 1BLOG_ID=342
2IMAGE=docker.crute.me/unifi 2VERSION=5.8.30
3IMAGE=docker.crute.me/unifi:$(VERSION)-alpine
4LATEST=$(subst :$(VERSION)-alpine,,$(IMAGE)):latest
3 5
4DEB_LOCATION="https://dl.ubnt.com/unifi/5.8.28/unifi_sysvinit_all.deb" 6DEB_LOCATION="https://dl.ubnt.com/unifi/$(VERSION)/unifi_sysvinit_all.deb"
5CHECKSUM_FILE="https://community.ubnt.com/ubnt/attachments/ubnt/Blog_UniFi/333/1/checksums.txt" 7CHECKSUM_FILE="https://community.ubnt.com/ubnt/attachments/ubnt/Blog_UniFi/$(BLOG_ID)/1/checksums.txt"
6 8
7all: 9all:
10 docker pull alpine:latest
8 docker build \ 11 docker build \
9 --build-arg=deb_location=$(DEB_LOCATION) \ 12 --build-arg=deb_location=$(DEB_LOCATION) \
10 --build-arg=checksum_file=$(CHECKSUM_FILE) \ 13 --build-arg=checksum_file=$(CHECKSUM_FILE) \
11 -t $(IMAGE):$(VERSION) . 14 -t $(IMAGE) .
12 15
13all-no-cache: 16all-no-cache:
14 docker build \ 17 docker build \
15 --no-cache \ 18 --no-cache \
16 --build-arg=deb_location=$(DEB_LOCATION) \ 19 --build-arg=deb_location=$(DEB_LOCATION) \
17 --build-arg=checksum_file=$(CHECKSUM_FILE) \ 20 --build-arg=checksum_file=$(CHECKSUM_FILE) \
18 -t $(IMAGE):$(VERSION) . 21 -t $(IMAGE) .
19 22
20run: 23run:
21 docker run -d \ 24 docker run -d \
@@ -23,9 +26,9 @@ run:
23 -e UNIFI_GID=1001 \ 26 -e UNIFI_GID=1001 \
24 -p 8080:8080 \ 27 -p 8080:8080 \
25 -p 8443:8443 \ 28 -p 8443:8443 \
26 $(IMAGE):$(VERSION) 29 $(IMAGE)
27 30
28publish: 31publish:
29 docker push $(IMAGE):$(VERSION) 32 docker push $(IMAGE)
30 docker tag $(IMAGE):$(VERSION) $(IMAGE):latest 33 docker tag $(IMAGE) $(LATEST)
31 docker push $(IMAGE):latest 34 docker push $(LATEST)