-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2829 from blakeblackshear/release-0.11.0
Release 0.11.0
- Loading branch information
Showing
215 changed files
with
17,369 additions
and
22,450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ config/ | |
.git | ||
core | ||
*.mp4 | ||
*.jpg | ||
*.db | ||
*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ web/build | |
web/node_modules | ||
web/coverage | ||
core | ||
!/web/**/*.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,39 @@ | ||
default_target: amd64_frigate | ||
default_target: local | ||
|
||
COMMIT_HASH := $(shell git log -1 --pretty=format:"%h"|tail -1) | ||
VERSION = 0.11.0 | ||
CURRENT_UID := $(shell id -u) | ||
CURRENT_GID := $(shell id -g) | ||
|
||
version: | ||
echo "VERSION='0.10.1-$(COMMIT_HASH)'" > frigate/version.py | ||
echo "VERSION=\"$(VERSION)-$(COMMIT_HASH)\"" > frigate/version.py | ||
|
||
web: | ||
docker build --tag frigate-web --file docker/Dockerfile.web web/ | ||
|
||
amd64_wheels: | ||
docker build --tag blakeblackshear/frigate-wheels:1.0.3-amd64 --file docker/Dockerfile.wheels . | ||
|
||
amd64_ffmpeg: | ||
docker build --no-cache --pull --tag blakeblackshear/frigate-ffmpeg:1.2.0-amd64 --file docker/Dockerfile.ffmpeg.amd64 . | ||
build_web: | ||
docker run --volume ${PWD}/web:/web -w /web --volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro -u $(CURRENT_UID):$(CURRENT_GID) node:16 /bin/bash -c "npm install && npm run build" | ||
|
||
nginx_frigate: | ||
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate-nginx:1.0.2 --file docker/Dockerfile.nginx . | ||
|
||
amd64_frigate: version web | ||
docker build --no-cache --tag frigate-base --build-arg ARCH=amd64 --build-arg FFMPEG_VERSION=1.1.0 --build-arg WHEELS_VERSION=1.0.3 --build-arg NGINX_VERSION=1.0.2 --file docker/Dockerfile.base . | ||
docker build --no-cache --tag frigate --file docker/Dockerfile.amd64 . | ||
|
||
amd64_all: amd64_wheels amd64_ffmpeg amd64_frigate | ||
|
||
amd64nvidia_wheels: | ||
docker build --tag blakeblackshear/frigate-wheels:1.0.3-amd64nvidia --file docker/Dockerfile.wheels . | ||
|
||
amd64nvidia_ffmpeg: | ||
docker build --no-cache --pull --tag blakeblackshear/frigate-ffmpeg:1.2.0-amd64nvidia --file docker/Dockerfile.ffmpeg.amd64nvidia . | ||
|
||
amd64nvidia_frigate: version web | ||
docker build --no-cache --tag frigate-base --build-arg ARCH=amd64nvidia --build-arg FFMPEG_VERSION=1.0.0 --build-arg WHEELS_VERSION=1.0.3 --build-arg NGINX_VERSION=1.0.2 --file docker/Dockerfile.base . | ||
docker build --no-cache --tag frigate --file docker/Dockerfile.amd64nvidia . | ||
|
||
amd64nvidia_all: amd64nvidia_wheels amd64nvidia_ffmpeg amd64nvidia_frigate | ||
|
||
aarch64_wheels: | ||
docker build --tag blakeblackshear/frigate-wheels:1.0.3-aarch64 --file docker/Dockerfile.wheels . | ||
|
||
aarch64_ffmpeg: | ||
docker build --no-cache --pull --tag blakeblackshear/frigate-ffmpeg:1.3.0-aarch64 --file docker/Dockerfile.ffmpeg.aarch64 . | ||
|
||
aarch64_frigate: version web | ||
docker build --no-cache --tag frigate-base --build-arg ARCH=aarch64 --build-arg FFMPEG_VERSION=1.0.0 --build-arg WHEELS_VERSION=1.0.3 --build-arg NGINX_VERSION=1.0.2 --file docker/Dockerfile.base . | ||
docker build --no-cache --tag frigate --file docker/Dockerfile.aarch64 . | ||
local: | ||
DOCKER_BUILDKIT=1 docker build -t frigate -f docker/Dockerfile . | ||
|
||
aarch64_all: aarch64_wheels aarch64_ffmpeg aarch64_frigate | ||
amd64: | ||
docker buildx build --platform linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile . | ||
|
||
armv7_wheels: | ||
docker build --tag blakeblackshear/frigate-wheels:1.0.3-armv7 --file docker/Dockerfile.wheels . | ||
arm64: | ||
docker buildx build --platform linux/arm64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile . | ||
|
||
armv7_ffmpeg: | ||
docker build --no-cache --pull --tag blakeblackshear/frigate-ffmpeg:1.2.0-armv7 --file docker/Dockerfile.ffmpeg.armv7 . | ||
armv7: | ||
docker buildx build --platform linux/arm/v7 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile . | ||
|
||
armv7_frigate: version web | ||
docker build --no-cache --tag frigate-base --build-arg ARCH=armv7 --build-arg FFMPEG_VERSION=1.0.0 --build-arg WHEELS_VERSION=1.0.3 --build-arg NGINX_VERSION=1.0.2 --file docker/Dockerfile.base . | ||
docker build --no-cache --tag frigate --file docker/Dockerfile.armv7 . | ||
build: version amd64 arm64 armv7 | ||
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile . | ||
|
||
armv7_all: armv7_wheels armv7_ffmpeg armv7_frigate | ||
push: build | ||
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate:$(VERSION)-$(COMMIT_HASH) --file docker/Dockerfile . | ||
|
||
run_tests: | ||
# PLATFORM: linux/arm64/v8 linux/amd64 or linux/arm/v7 | ||
# ARCH: aarch64 amd64 or armv7 | ||
@cat docker/Dockerfile.base docker/Dockerfile.$(ARCH) > docker/Dockerfile.test | ||
@sed -i "s/FROM frigate-web as web/#/g" docker/Dockerfile.test | ||
@sed -i "s/COPY --from=web \/opt\/frigate\/build web\//#/g" docker/Dockerfile.test | ||
@sed -i "s/FROM frigate-base/#/g" docker/Dockerfile.test | ||
@echo "" >> docker/Dockerfile.test | ||
@echo "RUN python3 -m unittest" >> docker/Dockerfile.test | ||
@docker buildx build --platform=$(PLATFORM) --tag frigate-base --build-arg NGINX_VERSION=1.0.2 --build-arg FFMPEG_VERSION=1.0.0 --build-arg ARCH=$(ARCH) --build-arg WHEELS_VERSION=1.0.3 --file docker/Dockerfile.test . | ||
@rm docker/Dockerfile.test | ||
run_tests: frigate | ||
docker run --rm --entrypoint=python3 frigate:latest -u -m unittest | ||
docker run --rm --entrypoint=python3 frigate:latest -u -m mypy --config-file frigate/mypy.ini frigate | ||
|
||
.PHONY: web run_tests | ||
.PHONY: run_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.