2 Commits

Author SHA1 Message Date
  Robin Thoni d63db2f0f1
upgraded to 7.2.97 1 year ago
  Robin Thoni 8a4d1219ed
limit mongodb cache 1 year ago
3 changed files with 4 additions and 3 deletions
  1. 1
    0
      docker-compose.yml
  2. 2
    2
      unifi-controller/Dockerfile
  3. 1
    1
      unifi-controller/docker-build.sh

+ 1
- 0
docker-compose.yml View File

16
                     - mongodb.unfi-controller.internal.docker
16
                     - mongodb.unfi-controller.internal.docker
17
         volumes:
17
         volumes:
18
             - ./data/mongodb/db:/data/db
18
             - ./data/mongodb/db:/data/db
19
+        command: --wiredTigerCacheSizeGB 0.5
19
     unifi-controller:
20
     unifi-controller:
20
         << : *common
21
         << : *common
21
         build: ./unifi-controller
22
         build: ./unifi-controller

+ 2
- 2
unifi-controller/Dockerfile View File

4
 
4
 
5
 ARG DEBIAN_FRONTEND=noninteractive
5
 ARG DEBIAN_FRONTEND=noninteractive
6
 
6
 
7
-ENV PKGURL=https://dl.ubnt.com/unifi/5.10.17/unifi_sysvinit_all.deb
8
-
9
 ENV BASEDIR=/usr/lib/unifi \
7
 ENV BASEDIR=/usr/lib/unifi \
10
     DATADIR=/unifi/data \
8
     DATADIR=/unifi/data \
11
     LOGDIR=/unifi/log \
9
     LOGDIR=/unifi/log \
66
  && chmod +x /usr/local/bin/docker-healthcheck.sh \
64
  && chmod +x /usr/local/bin/docker-healthcheck.sh \
67
  && chmod +x /usr/local/bin/docker-build.sh
65
  && chmod +x /usr/local/bin/docker-build.sh
68
 
66
 
67
+ENV PKGURL=https://dl.ubnt.com/unifi/7.2.97/unifi_sysvinit_all.deb
68
+
69
 # Push installing openjdk-8-jre first, so that the unifi package doesn't pull in openjdk-7-jre as a dependency? Else uncomment and just go with openjdk-7.
69
 # Push installing openjdk-8-jre first, so that the unifi package doesn't pull in openjdk-7-jre as a dependency? Else uncomment and just go with openjdk-7.
70
 RUN set -ex \
70
 RUN set -ex \
71
  && mkdir -p /usr/share/man/man1/ \
71
  && mkdir -p /usr/share/man/man1/ \

+ 1
- 1
unifi-controller/docker-build.sh View File

47
 chown -R unifi:unifi /usr/lib/unifi
47
 chown -R unifi:unifi /usr/lib/unifi
48
 rm -rf /var/lib/apt/lists/*
48
 rm -rf /var/lib/apt/lists/*
49
 
49
 
50
-rm -rf ${ODATADIR} ${OLOGDIR}
50
+rm -rf ${ODATADIR} ${OLOGDIR} ${BASEDIR}/*
51
 mkdir -p ${DATADIR} ${LOGDIR}
51
 mkdir -p ${DATADIR} ${LOGDIR}
52
 ln -s ${DATADIR} ${BASEDIR}/data
52
 ln -s ${DATADIR} ${BASEDIR}/data
53
 ln -s ${RUNDIR} ${BASEDIR}/run
53
 ln -s ${RUNDIR} ${BASEDIR}/run

Loading…
Cancel
Save