Skip to content

Commit

Permalink
Unifi-video 3.10.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
exsilium committed Dec 29, 2019
1 parent 14e306e commit 04be043
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.7/unifi-video.Ubuntu18.04_amd64.v3.10.7.deb > /tmp/unifi-video.deb
RUN curl -sS https://dl.ubnt.com/firmwares/ufv/v3.10.8/unifi-video.Ubuntu18.04_amd64.v3.10.8.deb > /tmp/unifi-video.deb

# Bring in the latest and greatest
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold"
Expand Down Expand Up @@ -51,4 +51,4 @@ CMD ["/sbin/my_init"]
# -p 7447:7447 \
# --name unifi-video \
# --restart=unless-stopped \
# exsilium/unifi-video:v3.10.7
# exsilium/unifi-video:v3.10.8
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.7`
- Run in Terminal: `docker pull exsilium/unifi-video:v3.10.8`

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

- (Optional) Download\Save `run.sh` from [here](https://raw.githubusercontent.com/exsilium/docker-unifi-video/v3.10.7/run.sh)
- (Optional) Download\Save `run.sh` from [here](https://raw.githubusercontent.com/exsilium/docker-unifi-video/v3.10.8/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.7 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.7
## Upgrade from 3.9.12 to 3.10.8

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.7` 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.8` 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 requivalent of `/var/lib/unifi-video/db/*` from the Host volume
- Start the version v3.10.7 container
- Start the version v3.10.8 container
- Upon start a new set of collections will be populated (similar to a new installation). Relogin to the 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.7 from previous minor version, you first need to upgrade to v3.9.12.
**NB!** Note that, when upgrading to v3.10.8 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.7
VERSION=v3.10.8

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

0 comments on commit 04be043

Please sign in to comment.