diff options
author | Mike Crute <mike@crute.us> | 2019-09-17 23:39:04 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-09-17 23:39:04 +0000 |
commit | 9e45e53e5fc3851e8dff17667f6520160ae98b06 (patch) | |
tree | 79d07bf36dfc72e9690e25a97a9cdfa22182a9c7 /unifi-video | |
parent | 5fe40adb19d4ed17d11c474e71fef67c1cf96a65 (diff) | |
download | dockerfiles-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/Dockerfile | 2 | ||||
-rw-r--r-- | unifi-video/Makefile | 4 | ||||
-rwxr-xr-x | unifi-video/entrypoint.sh | 6 |
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 @@ | |||
1 | FROM frolvlad/alpine-oraclejdk8-temporary:slim | 1 | FROM frolvlad/alpine-java:jre8-slim |
2 | LABEL maintainer="Mike Crute <mike@crute.us>" | 2 | LABEL maintainer="Mike Crute <mike@crute.us>" |
3 | 3 | ||
4 | ARG dl_url | 4 | ARG 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 @@ | |||
1 | VERSION=3.10.1 | 1 | VERSION=3.10.5 |
2 | IMAGE=docker.crute.me/unifi-video | 2 | IMAGE=docker.crute.me/unifi-video |
3 | DL_URL="https://dl.ubnt.com/firmwares/unifi-video/v3.10.1/unifi-video.Ubuntu16.04_amd64.v3.10.1.deb" | 3 | DL_URL="https://dl.ubnt.com/firmwares/ufv/v$(VERSION)/unifi-video.Ubuntu16.04_amd64.v$(VERSION).deb" |
4 | 4 | ||
5 | all: | 5 | all: |
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" | |||
10 | UNIFI_UID=${UNIFI_UID:-$(stat -L -c "%u" $DATA_DIR)} | 10 | UNIFI_UID=${UNIFI_UID:-$(stat -L -c "%u" $DATA_DIR)} |
11 | UNIFI_GID=${UNIFI_GID:-$(stat -L -c "%u" $DATA_DIR)} | 11 | UNIFI_GID=${UNIFI_GID:-$(stat -L -c "%u" $DATA_DIR)} |
12 | 12 | ||
13 | if [ "$UNIFI_GID" = 0 -o "$UNIFI_GID" = 0 ]; then | 13 | if [ "$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 |
16 | else | 16 | else |
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} \ |