diff options
author | Mike Crute <mike@crute.us> | 2017-12-31 02:01:50 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2017-12-31 02:01:50 +0000 |
commit | d35000214a24c39fbf3307a91fea9aae1e5e99bf (patch) | |
tree | 3bac715e45d1f40f5d45fb3458fbf111e0af939d /unifi-video | |
parent | dca2d466728f62e61c174bc2abc956ff6a0f35ca (diff) | |
download | dockerfiles-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/Dockerfile | 6 | ||||
-rw-r--r-- | unifi-video/Makefile | 7 |
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 @@ | |||
1 | FROM frolvlad/alpine-oraclejdk8:slim | 1 | FROM frolvlad/alpine-oraclejdk8:slim |
2 | LABEL maintainer="Mike Crute <mike@crute.us>" | 2 | LABEL maintainer="Mike Crute <mike@crute.us>" |
3 | 3 | ||
4 | ARG version | 4 | ARG dl_url |
5 | 5 | ||
6 | ADD lsb_release /usr/bin | 6 | ADD lsb_release /usr/bin |
7 | ADD log4j2.json /tmp | 7 | ADD log4j2.json /tmp |
8 | 8 | ||
9 | RUN \ | 9 | RUN \ |
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 @@ | |||
1 | REPO=575365190010.dkr.ecr.us-west-2.amazonaws.com | 1 | REPO=575365190010.dkr.ecr.us-west-2.amazonaws.com |
2 | VERSION=3.8.5 | 2 | VERSION=3.9.0rc1 |
3 | IMAGE_BASE=unifi-video | 3 | IMAGE_BASE=unifi-video |
4 | IMAGE=$(IMAGE_BASE):$(VERSION)-alpine | 4 | IMAGE=$(IMAGE_BASE):$(VERSION)-alpine |
5 | DL_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 | ||
6 | all: | 7 | all: |
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 | ||
11 | all-no-cache: | 12 | all-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 | ||
17 | run: | 18 | run: |