diff options
Diffstat (limited to 'unifi/Makefile')
-rw-r--r-- | unifi/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/unifi/Makefile b/unifi/Makefile index b1c9503..feded0a 100644 --- a/unifi/Makefile +++ b/unifi/Makefile | |||
@@ -1,24 +1,25 @@ | |||
1 | VERSION=7.2.91-85c367a4aa | 1 | VERSION=7.4.162 |
2 | VERSION_TAG=$(VERSION)-1 | 2 | VERSION_SUFFIX=-3116043f9f |
3 | VERSION_TAG=$(VERSION)-0 | ||
3 | IMAGE=docker.crute.me/unifi:$(VERSION_TAG) | 4 | IMAGE=docker.crute.me/unifi:$(VERSION_TAG) |
4 | LATEST=$(subst :$(VERSION_TAG),,$(IMAGE)):latest | 5 | LATEST=$(subst :$(VERSION_TAG),,$(IMAGE)):latest |
5 | 6 | ||
6 | DEB_LOCATION="https://dl.ui.com/unifi/$(VERSION)/unifi_sysvinit_all.deb" | 7 | DEB_VERSION="$(VERSION)$(VERSION_SUFFIX)" |
7 | CHECKSUM_LINE="d33e7b5a838a4c301ca545910e7119ba62bda80202259655191ced1e482cecde *unifi_sysvinit_all.deb" | 8 | CHECKSUM="069652f793498124468c985537a569f3fe1d8dd404be3fb69df6b2d18b153c4c" |
8 | 9 | ||
9 | all: | 10 | all: |
10 | docker pull alpine:latest | 11 | docker pull alpine:latest |
11 | docker build \ | 12 | docker build \ |
12 | --no-cache \ | 13 | --no-cache \ |
13 | --build-arg=deb_location=$(DEB_LOCATION) \ | 14 | --build-arg=deb_version=$(DEB_VERSION) \ |
14 | --build-arg=checksum_line=$(CHECKSUM_LINE) \ | 15 | --build-arg=checksum=$(CHECKSUM) \ |
15 | -t $(IMAGE) . | 16 | -t $(IMAGE) . |
16 | 17 | ||
17 | all-no-cache: | 18 | all-no-cache: |
18 | docker build \ | 19 | docker build \ |
19 | --no-cache \ | 20 | --no-cache \ |
20 | --build-arg=deb_location=$(DEB_LOCATION) \ | 21 | --build-arg=deb_version=$(DEB_VERSION) \ |
21 | --build-arg=checksum_line=$(CHECKSUM_LINE) \ | 22 | --build-arg=checksum=$(CHECKSUM) \ |
22 | -t $(IMAGE) . | 23 | -t $(IMAGE) . |
23 | 24 | ||
24 | run: | 25 | run: |