diff --git a/Dockerfile.unifi5 b/Dockerfile.unifi5 index 57bae75..db0eb23 100644 --- a/Dockerfile.unifi5 +++ b/Dockerfile.unifi5 @@ -1,18 +1,22 @@ -FROM ubuntu:16.04 +FROM ubuntu:18.04 ENV DEBIAN_FRONTEND noninteractive ARG REPO RUN mkdir -p /usr/lib/unifi/data /backups /logs +RUN apt-get -q update && apt-get -y upgrade && \ + apt-get install -y -q lsof anacron vim net-tools less gnupg2 apt-transport-https ca-certificates # add unifi repo +keys RUN if [ -z "$REPO" ]; then REPO="stable"; fi && \ echo "deb http://www.ubnt.com/downloads/unifi/debian $REPO ubiquiti" >/etc/apt/sources.list.d/ubnt.list && \ - apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 + apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \ + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \ + echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" >/etc/apt/sources.list.d/mongodb-org-3.4.list # update then install RUN apt-get update -q -y && \ - apt-get install -q -y mongodb-server unifi lsof anacron vim net-tools less + apt-get install -q -y unifi #add scripts COPY ["unifi.sh","backup_unifi.sh","restore_unifi.sh", "/usr/lib/unifi/"] diff --git a/build_unifi.sh b/build_unifi.sh index c7fd7bb..3c77114 100644 --- a/build_unifi.sh +++ b/build_unifi.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=5.8.23 -REPO=unifi-5.8 +VERSION=5.10.12 +REPO=unifi-5.10 #REPO=stable VMNAME=${1:-unifi5} if [ -r Dockerfile.$VMNAME ]; then