aboutsummaryrefslogtreecommitdiff
path: root/unifi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'unifi/Makefile')
-rw-r--r--unifi/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/unifi/Makefile b/unifi/Makefile
new file mode 100644
index 0000000..81011c7
--- /dev/null
+++ b/unifi/Makefile
@@ -0,0 +1,32 @@
1VERSION=8.0.7
2VERSION_TAG=$(VERSION)-0
3IMAGE=docker.crute.me/unifi:$(VERSION_TAG)
4LATEST=$(subst :$(VERSION_TAG),,$(IMAGE)):latest
5
6all:
7 docker pull alpine:latest
8 docker build \
9 --no-cache \
10 -t $(IMAGE) .
11
12all-no-cache:
13 docker build \
14 --no-cache \
15 --build-arg=deb_version=$(DEB_VERSION) \
16 --build-arg=checksum=$(CHECKSUM) \
17 -t $(IMAGE) .
18
19run:
20 docker run -d \
21 -e UNIFI_UID=1001 \
22 -e UNIFI_GID=1001 \
23 -p 8080:8080 \
24 -p 8443:8443 \
25 $(IMAGE)
26
27publish:
28 docker push $(IMAGE)
29
30publish-prod:
31 docker tag $(IMAGE) $(LATEST)
32 docker push $(LATEST)