Skip to content

Commit

Permalink
Unifi-video 3.10.13 release
Browse files Browse the repository at this point in the history
  • Loading branch information
exsilium committed Aug 12, 2021
1 parent c6d38ea commit 377287d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM phusion/baseimage:0.11

ENV DEBIAN_FRONTEND noninteractive

RUN curl -sS https://dl.ubnt.com/firmwares/ufv/v3.10.12/unifi-video.Ubuntu18.04_amd64.v3.10.12.deb > /tmp/unifi-video.deb
RUN curl -sS https://dl.ubnt.com/firmwares/ufv/v3.10.13/unifi-video.Ubuntu18.04_amd64.v3.10.13.deb > /tmp/unifi-video.deb
RUN curl -sS http://launchpadlibrarian.net/505954411/openjdk-8-jre-headless_8u275-b01-0ubuntu1~18.04_amd64.deb > /tmp/jre.deb

# Bring in the latest and greatest
Expand Down Expand Up @@ -53,4 +53,4 @@ CMD ["/sbin/my_init"]
# -p 7447:7447 \
# --name unifi-video \
# --restart=unless-stopped \
# exsilium/unifi-video:v3.10.12
# exsilium/unifi-video:v3.10.13
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ Because /usr/local is reserved for Docker, the example demonstrates installation
**NB!** If you receive permission errors when executing commands, precede them with `sudo`

- Create the `~/Applications/unifi-video` directory
- Run in Terminal: `docker pull exsilium/unifi-video:v3.10.12`
- Run in Terminal: `docker pull exsilium/unifi-video:v3.10.13`

```
`$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
exsilium/unifi-video v3.10.12 1cbeb1e369da 44 minutes ago 869.9 MB
exsilium/unifi-video v3.10.13 1cbeb1e369da 44 minutes ago 869.9 MB
```

- (Optional) Download\Save `run.sh` from [here](https://raw.githubusercontent.com/exsilium/docker-unifi-video/v3.10.12/run.sh)
- (Optional) Download\Save `run.sh` from [here](https://raw.githubusercontent.com/exsilium/docker-unifi-video/v3.10.13/run.sh)
- Create the following host data directories under `~/Applications/unifi-video`
- `mkdir mongodb`
- `mkdir unifi-video`
Expand All @@ -46,19 +46,19 @@ exsilium/unifi-video v3.10.12 1cbeb1e369da 44 minutes ago

By default, Docker provides network isolation and due to that the automatic discovery will not work. Directly access your camera IP and enter the host IP of your server where the unifi-video docker image is running.

## Upgrade from 3.9.12 to 3.10.12
## Upgrade from 3.9.12 to 3.10.13

With the 3.10.x images, there has been some significant changes to underlying OS version and the bundled MongoDB version - this makes in place upgrade more challenging.

**NB!** Really, make a backup!
**NB!** MongoDB will be upgraded from 2.6 to 3.6
**NB!** Make sure you are on v3.9.12

- Use the Unifi-Video web interface to launch an upgrade, this upgrade will not finish successfully, but will upgrade the database collections to the new `v3.10.12` format
- Use the Unifi-Video web interface to launch an upgrade, this upgrade will not finish successfully, but will upgrade the database collections to the new `v3.10.13` format
- Login to the docker container and make a `mongodump` of the `av` database. E.g: `mongodump --port 7441 -d av -o /var/lib/unifi-video/db.backup`
- Shutdown the Docker container
- Delete the equivalent of `/var/lib/unifi-video/db/*` from the Host volume
- Start the version v3.10.12 container
- Start the version v3.10.13 container
- Upon start a new set of collections will be populated (similar to a new installation). Relogin to the Docker container to import the previously created dump: `mongorestore --drop --port 7441 -d av /var/lib/unifi-video/db.backup/av`
- Restart the container.

Expand All @@ -67,7 +67,7 @@ With the 3.10.x images, there has been some significant changes to underlying OS
**NB!** Always create a backup before trying to upgrade!
**NB!** Upgrade scenarios over multiple versions have not been tested!
**NB!** Make sure to read release notes prior to upgrade!
**NB!** Note that, when upgrading to v3.10.12 from previous minor version, you first need to upgrade to v3.9.12.
**NB!** Note that, when upgrading to v3.10.13 from previous minor version, you first need to upgrade to v3.9.12.

- Stop the running container
- Backup your Host Data Volumes (`~/Applications/unifi-video`)
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BASEDIR=~/Applications/unifi-video
IP=0.0.0.0

NAME=unifi-video
VERSION=v3.10.12
VERSION=v3.10.13

# Run docker once to create a container and return the ID
# For following startups, use 'docker start <containerID>'
Expand Down

0 comments on commit 377287d

Please sign in to comment.