mirror of
https://github.com/linuxserver/docker-unifi-network-application.git
synced 2024-12-25 05:34:08 -08:00
Rebase to noble
This commit is contained in:
parent
4caf784aac
commit
2654f2d68b
|
@ -1,6 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
|
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
@ -34,6 +34,7 @@ RUN \
|
||||||
"https://dl.ui.com/unifi/${UNIFI_VERSION}/UniFi.unix.zip" && \
|
"https://dl.ui.com/unifi/${UNIFI_VERSION}/UniFi.unix.zip" && \
|
||||||
unzip /tmp/unifi.zip -d /usr/lib && \
|
unzip /tmp/unifi.zip -d /usr/lib && \
|
||||||
mv /usr/lib/UniFi /usr/lib/unifi && \
|
mv /usr/lib/UniFi /usr/lib/unifi && \
|
||||||
|
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
|
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
@ -34,6 +34,7 @@ RUN \
|
||||||
"https://dl.ui.com/unifi/${UNIFI_VERSION}/UniFi.unix.zip" && \
|
"https://dl.ui.com/unifi/${UNIFI_VERSION}/UniFi.unix.zip" && \
|
||||||
unzip /tmp/unifi.zip -d /usr/lib && \
|
unzip /tmp/unifi.zip -d /usr/lib && \
|
||||||
mv /usr/lib/UniFi /usr/lib/unifi && \
|
mv /usr/lib/UniFi /usr/lib/unifi && \
|
||||||
|
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -31,8 +31,8 @@ pipeline {
|
||||||
CI_PORT='8443'
|
CI_PORT='8443'
|
||||||
CI_SSL='true'
|
CI_SSL='true'
|
||||||
CI_DELAY='180'
|
CI_DELAY='180'
|
||||||
CI_DOCKERENV='TZ=US/Pacific'
|
CI_DOCKERENV=''
|
||||||
CI_AUTH='user:password'
|
CI_AUTH=''
|
||||||
CI_WEBPATH=''
|
CI_WEBPATH=''
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
|
|
@ -428,6 +428,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **18.07.24:** - Rebase to Ubuntu Noble.
|
||||||
* **04.03.24:** - Install from zip package instead of deb.
|
* **04.03.24:** - Install from zip package instead of deb.
|
||||||
* **17.10.23:** - Add environment variables for TLS and authSource to support Atlas and new MongoDB versions.
|
* **17.10.23:** - Add environment variables for TLS and authSource to support Atlas and new MongoDB versions.
|
||||||
* **05.09.23:** - Initial release.
|
* **05.09.23:** - Initial release.
|
||||||
|
|
|
@ -22,6 +22,6 @@ repo_vars:
|
||||||
- CI_PORT='8443'
|
- CI_PORT='8443'
|
||||||
- CI_SSL='true'
|
- CI_SSL='true'
|
||||||
- CI_DELAY='180'
|
- CI_DELAY='180'
|
||||||
- CI_DOCKERENV='TZ=US/Pacific'
|
- CI_DOCKERENV=''
|
||||||
- CI_AUTH='user:password'
|
- CI_AUTH=''
|
||||||
- CI_WEBPATH=''
|
- CI_WEBPATH=''
|
||||||
|
|
|
@ -12,9 +12,6 @@ available_architectures:
|
||||||
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
|
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
|
||||||
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
|
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
|
||||||
|
|
||||||
# development version
|
|
||||||
development_versions: false
|
|
||||||
|
|
||||||
# container parameters
|
# container parameters
|
||||||
param_container_name: "{{ project_name }}"
|
param_container_name: "{{ project_name }}"
|
||||||
param_usage_include_vols: true
|
param_usage_include_vols: true
|
||||||
|
@ -64,7 +61,7 @@ app_setup_block: |
|
||||||
Starting with version 8.1 of Unifi Network Application, mongodb 3.6 through 7.0 are supported.
|
Starting with version 8.1 of Unifi Network Application, mongodb 3.6 through 7.0 are supported.
|
||||||
|
|
||||||
**Make sure you pin your database image version and do not use `latest`, as mongodb does not support automatic upgrades between major versions.**
|
**Make sure you pin your database image version and do not use `latest`, as mongodb does not support automatic upgrades between major versions.**
|
||||||
|
|
||||||
**MongoDB >4.4 on X86_64 Hardware needs a CPU with AVX support. Some lower end Intel CPU models like Celeron and Pentium (before Tiger-Lake) more Details: [Advanced Vector Extensions - Wikipedia](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#CPUs_with_AVX) don't support AVX, but you can still use MongoDB 4.4.**
|
**MongoDB >4.4 on X86_64 Hardware needs a CPU with AVX support. Some lower end Intel CPU models like Celeron and Pentium (before Tiger-Lake) more Details: [Advanced Vector Extensions - Wikipedia](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#CPUs_with_AVX) don't support AVX, but you can still use MongoDB 4.4.**
|
||||||
|
|
||||||
If you are using the [official mongodb container](https://hub.docker.com/_/mongo/) in Version >=6, you can create your user using an `init-mongo.js` file with the following contents:
|
If you are using the [official mongodb container](https://hub.docker.com/_/mongo/) in Version >=6, you can create your user using an `init-mongo.js` file with the following contents:
|
||||||
|
@ -73,7 +70,7 @@ app_setup_block: |
|
||||||
db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}]});
|
db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}]});
|
||||||
db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});
|
db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are using mongodb < 6.0, you can create a `init-mongo.sh` file with the following contents:
|
If you are using mongodb < 6.0, you can create a `init-mongo.sh` file with the following contents:
|
||||||
```sh
|
```sh
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
@ -122,7 +119,7 @@ app_setup_block: |
|
||||||
- /path/to/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
|
- /path/to/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
*Note that the init script method will only work on first run. If you start the Mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean `/data/db` volume and an init script mounted.*
|
*Note that the init script method will only work on first run. If you start the Mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean `/data/db` volume and an init script mounted.*
|
||||||
|
|
||||||
|
@ -161,6 +158,7 @@ app_setup_block: |
|
||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "18.07.24:", desc: "Rebase to Ubuntu Noble." }
|
||||||
- { date: "04.03.24:", desc: "Install from zip package instead of deb." }
|
- { date: "04.03.24:", desc: "Install from zip package instead of deb." }
|
||||||
- { date: "17.10.23:", desc: "Add environment variables for TLS and authSource to support Atlas and new MongoDB versions." }
|
- { date: "17.10.23:", desc: "Add environment variables for TLS and authSource to support Atlas and new MongoDB versions." }
|
||||||
- { date: "05.09.23:", desc: "Initial release." }
|
- { date: "05.09.23:", desc: "Initial release." }
|
||||||
|
|
Loading…
Reference in a new issue