aboutsummaryrefslogtreecommitdiff
path: root/unifi-video
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-12-31 02:01:50 +0000
committerMike Crute <mike@crute.us>2017-12-31 02:01:50 +0000
commitd35000214a24c39fbf3307a91fea9aae1e5e99bf (patch)
tree3bac715e45d1f40f5d45fb3458fbf111e0af939d /unifi-video
parentdca2d466728f62e61c174bc2abc956ff6a0f35ca (diff)
downloaddockerfiles-d35000214a24c39fbf3307a91fea9aae1e5e99bf.tar.bz2
dockerfiles-d35000214a24c39fbf3307a91fea9aae1e5e99bf.tar.xz
dockerfiles-d35000214a24c39fbf3307a91fea9aae1e5e99bf.zip
Unifi video 3.9.0 release
Diffstat (limited to 'unifi-video')
-rw-r--r--unifi-video/Dockerfile6
-rw-r--r--unifi-video/Makefile7
2 files changed, 7 insertions, 6 deletions
diff --git a/unifi-video/Dockerfile b/unifi-video/Dockerfile
index 2cb7b52..bf36953 100644
--- a/unifi-video/Dockerfile
+++ b/unifi-video/Dockerfile
@@ -1,14 +1,14 @@
1FROM frolvlad/alpine-oraclejdk8:slim 1FROM frolvlad/alpine-oraclejdk8:slim
2LABEL maintainer="Mike Crute <mike@crute.us>" 2LABEL maintainer="Mike Crute <mike@crute.us>"
3 3
4ARG version 4ARG dl_url
5 5
6ADD lsb_release /usr/bin 6ADD lsb_release /usr/bin
7ADD log4j2.json /tmp 7ADD log4j2.json /tmp
8 8
9RUN \ 9RUN \
10 # Validate required arguments were passed 10 # Validate required arguments were passed
11 test -z "${version}" && { echo -e "\033[31mMissing build parameter 'version'\033[39m"; exit 1; }; \ 11 test -z "${dl_url}" && { echo -e "\033[31mMissing build parameter 'dl_url'\033[39m"; exit 1; }; \
12 \ 12 \
13 # Install build and run dependencies 13 # Install build and run dependencies
14 apk add --no-cache --virtual .build-deps \ 14 apk add --no-cache --virtual .build-deps \
@@ -23,7 +23,7 @@ RUN \
23 \ 23 \
24 # Fetch the Unifi package 24 # Fetch the Unifi package
25 && cd /tmp \ 25 && cd /tmp \
26 && curl -s -o unifi_video.deb "https://dl.ubnt.com/firmwares/ufv/v${version}/unifi-video.Ubuntu16.04_amd64.v${version}.deb" \ 26 && curl -s -o unifi_video.deb "${dl_url}" \
27 \ 27 \
28 # Unpack the debian package and "install" it 28 # Unpack the debian package and "install" it
29 && ar x unifi_video.deb \ 29 && ar x unifi_video.deb \
diff --git a/unifi-video/Makefile b/unifi-video/Makefile
index c0985e1..d075b42 100644
--- a/unifi-video/Makefile
+++ b/unifi-video/Makefile
@@ -1,17 +1,18 @@
1REPO=575365190010.dkr.ecr.us-west-2.amazonaws.com 1REPO=575365190010.dkr.ecr.us-west-2.amazonaws.com
2VERSION=3.8.5 2VERSION=3.9.0rc1
3IMAGE_BASE=unifi-video 3IMAGE_BASE=unifi-video
4IMAGE=$(IMAGE_BASE):$(VERSION)-alpine 4IMAGE=$(IMAGE_BASE):$(VERSION)-alpine
5DL_URL="https://dl.ubnt.com/firmwares/unifi-video/v3.9.0rc1/unifi-video.Ubuntu16.04_amd64.v3.9.0+645141.171227.2316.deb"
5 6
6all: 7all:
7 docker build \ 8 docker build \
8 --build-arg=version=$(VERSION) \ 9 --build-arg=dl_url=$(DL_URL) \
9 -t $(IMAGE) . 10 -t $(IMAGE) .
10 11
11all-no-cache: 12all-no-cache:
12 docker build \ 13 docker build \
13 --no-cache \ 14 --no-cache \
14 --build-arg=version=$(VERSION) \ 15 --build-arg=dl_url=$(DL_URL) \
15 -t $(IMAGE) . 16 -t $(IMAGE) .
16 17
17run: 18run: