diff options
Diffstat (limited to 'unifi/Dockerfile')
-rw-r--r-- | unifi/Dockerfile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unifi/Dockerfile b/unifi/Dockerfile index a04d001..208d05b 100644 --- a/unifi/Dockerfile +++ b/unifi/Dockerfile | |||
@@ -3,15 +3,15 @@ LABEL maintainer="Mike Crute <mike@crute.us>" | |||
3 | 3 | ||
4 | # TODO: Move all the unpacking stuff to the Makefile | 4 | # TODO: Move all the unpacking stuff to the Makefile |
5 | 5 | ||
6 | ARG deb_location | 6 | ARG deb_version |
7 | ARG checksum_line | 7 | ARG checksum |
8 | 8 | ||
9 | ADD log4j.properties /tmp/ | 9 | ADD log4j.properties /tmp/ |
10 | 10 | ||
11 | RUN set -euxo pipefail; \ | 11 | RUN set -euxo pipefail; \ |
12 | # Validate required arguments were passed | 12 | # Validate required arguments were passed |
13 | test -z "${deb_location}" && { echo -e "\033[31mMissing build parameter 'deb_location'\033[39m"; exit 1; }; \ | 13 | test -z "${deb_version}" && { echo -e "\033[31mMissing build parameter 'deb_version'\033[39m"; exit 1; }; \ |
14 | test -z "${checksum_line}" && { echo -e "\033[31mMissing build parameter 'checksum_line'\033[39m"; exit 1; }; \ | 14 | test -z "${checksum}" && { echo -e "\033[31mMissing build parameter 'checksum'\033[39m"; exit 1; }; \ |
15 | \ | 15 | \ |
16 | # Install build and run dependencies | 16 | # Install build and run dependencies |
17 | apk add --no-cache --virtual .build-deps \ | 17 | apk add --no-cache --virtual .build-deps \ |
@@ -28,13 +28,13 @@ RUN set -euxo pipefail; \ | |||
28 | # mongodb \ | 28 | # mongodb \ |
29 | mongodb-tools \ | 29 | mongodb-tools \ |
30 | nss \ | 30 | nss \ |
31 | openjdk8-jre-base \ | 31 | openjdk11-jre-headless \ |
32 | su-exec \ | 32 | su-exec \ |
33 | \ | 33 | \ |
34 | # Fetch the Unifi package and validate the checksum before unpacking | 34 | # Fetch the Unifi package and validate the checksum before unpacking |
35 | && cd /tmp \ | 35 | && cd /tmp \ |
36 | && curl -sO "$deb_location" \ | 36 | && curl -sO "https://dl.ui.com/unifi/${deb_version}/unifi_sysvinit_all.deb" \ |
37 | && echo "${checksum_line}" > checksums.txt \ | 37 | && echo "${checksum} *unifi_sysvinit_all.deb" > checksums.txt \ |
38 | && sha256sum -sc checksums.txt \ | 38 | && sha256sum -sc checksums.txt \ |
39 | \ | 39 | \ |
40 | # Unpack the debian package and "install" it | 40 | # Unpack the debian package and "install" it |