aboutsummaryrefslogtreecommitdiff
path: root/unifi-video
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-09-17 23:39:04 +0000
committerMike Crute <mike@crute.us>2019-09-17 23:39:04 +0000
commit9e45e53e5fc3851e8dff17667f6520160ae98b06 (patch)
tree79d07bf36dfc72e9690e25a97a9cdfa22182a9c7 /unifi-video
parent5fe40adb19d4ed17d11c474e71fef67c1cf96a65 (diff)
downloaddockerfiles-9e45e53e5fc3851e8dff17667f6520160ae98b06.tar.bz2
dockerfiles-9e45e53e5fc3851e8dff17667f6520160ae98b06.tar.xz
dockerfiles-9e45e53e5fc3851e8dff17667f6520160ae98b06.zip
Upgrade unifi-video to 3.10.5
Diffstat (limited to 'unifi-video')
-rw-r--r--unifi-video/Dockerfile2
-rw-r--r--unifi-video/Makefile4
-rwxr-xr-xunifi-video/entrypoint.sh6
3 files changed, 6 insertions, 6 deletions
diff --git a/unifi-video/Dockerfile b/unifi-video/Dockerfile
index a2481c0..ae584b0 100644
--- a/unifi-video/Dockerfile
+++ b/unifi-video/Dockerfile
@@ -1,4 +1,4 @@
1FROM frolvlad/alpine-oraclejdk8-temporary:slim 1FROM frolvlad/alpine-java:jre8-slim
2LABEL maintainer="Mike Crute <mike@crute.us>" 2LABEL maintainer="Mike Crute <mike@crute.us>"
3 3
4ARG dl_url 4ARG dl_url
diff --git a/unifi-video/Makefile b/unifi-video/Makefile
index d2b9fea..0772459 100644
--- a/unifi-video/Makefile
+++ b/unifi-video/Makefile
@@ -1,6 +1,6 @@
1VERSION=3.10.1 1VERSION=3.10.5
2IMAGE=docker.crute.me/unifi-video 2IMAGE=docker.crute.me/unifi-video
3DL_URL="https://dl.ubnt.com/firmwares/unifi-video/v3.10.1/unifi-video.Ubuntu16.04_amd64.v3.10.1.deb" 3DL_URL="https://dl.ubnt.com/firmwares/ufv/v$(VERSION)/unifi-video.Ubuntu16.04_amd64.v$(VERSION).deb"
4 4
5all: 5all:
6 docker build \ 6 docker build \
diff --git a/unifi-video/entrypoint.sh b/unifi-video/entrypoint.sh
index ceb4dba..3fceeb4 100755
--- a/unifi-video/entrypoint.sh
+++ b/unifi-video/entrypoint.sh
@@ -10,8 +10,8 @@ DATA_DIR="${BASEDIR}/data"
10UNIFI_UID=${UNIFI_UID:-$(stat -L -c "%u" $DATA_DIR)} 10UNIFI_UID=${UNIFI_UID:-$(stat -L -c "%u" $DATA_DIR)}
11UNIFI_GID=${UNIFI_GID:-$(stat -L -c "%u" $DATA_DIR)} 11UNIFI_GID=${UNIFI_GID:-$(stat -L -c "%u" $DATA_DIR)}
12 12
13if [ "$UNIFI_GID" = 0 -o "$UNIFI_GID" = 0 ]; then 13if [ "$UNIFI_UID" = 0 -o "$UNIFI_GID" = 0 ]; then
14 echo "Set UNIFI_GID and UNIFI_GID in environment" 14 echo "Set UNIFI_UID and UNIFI_GID in environment"
15 exit 1 15 exit 1
16else 16else
17 echo "Unifi UID/GID: $UNIFI_UID $UNIFI_GID" 17 echo "Unifi UID/GID: $UNIFI_UID $UNIFI_GID"
@@ -83,7 +83,7 @@ else
83 # Replace the current process with a scoped-down controller. The java app 83 # Replace the current process with a scoped-down controller. The java app
84 # is designed to do its own job control but it has to run with an init 84 # is designed to do its own job control but it has to run with an init
85 # system or it doesn't get the signals from docker. 85 # system or it doesn't get the signals from docker.
86 exec /usr/bin/dumb-init -c /sbin/su-exec ${USERNAME} /usr/lib/jvm/default-jvm/bin/java \ 86 exec /usr/bin/dumb-init -c /sbin/su-exec ${USERNAME} /usr/lib/jvm/default-jvm/jre/bin/java \
87 -cp ${BASEDIR}/lib/airvision.jar \ 87 -cp ${BASEDIR}/lib/airvision.jar \
88 -Dlog4j.configurationFile=${BASEDIR}/log4j2.json \ 88 -Dlog4j.configurationFile=${BASEDIR}/log4j2.json \
89 ${TMPFS_ARG} \ 89 ${TMPFS_ARG} \