mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
update contributing docs (#4727)
This commit is contained in:
parent
c85df9c691
commit
161991df1f
3
Makefile
3
Makefile
@ -12,9 +12,6 @@ version:
|
|||||||
local: version
|
local: version
|
||||||
docker buildx build --tag frigate:latest --load .
|
docker buildx build --tag frigate:latest --load .
|
||||||
|
|
||||||
build_web:
|
|
||||||
docker buildx build --target web-dist --output web/dist .
|
|
||||||
|
|
||||||
amd64:
|
amd64:
|
||||||
docker buildx build --platform linux/amd64 --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) .
|
docker buildx build --platform linux/amd64 --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) .
|
||||||
|
|
||||||
|
@ -40,9 +40,11 @@ Fork [blakeblackshear/frigate-hass-integration](https://github.com/blakeblackshe
|
|||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
#### 1. Build the version information and docker container locally by running `make`
|
#### 1. Open the repo with Visual Studio Code
|
||||||
|
|
||||||
#### 2. Create a local config file for testing
|
Upon opening, you should be prompted to open the project in a remote container. This will build a container on top of the base frigate container with all the development dependencies installed. This ensures everyone uses a consistent development environment without the need to install any dependencies on your host machine.
|
||||||
|
|
||||||
|
#### 2. Modify your local config file for testing
|
||||||
|
|
||||||
Place the file at `config/config.yml` in the root of the repo.
|
Place the file at `config/config.yml` in the root of the repo.
|
||||||
|
|
||||||
@ -73,18 +75,14 @@ These input args tell ffmpeg to read the mp4 file in an infinite loop. You can u
|
|||||||
|
|
||||||
Create and place these files in a `debug` folder in the root of the repo. This is also where recordings will be created if you enable them in your test config. Update your config from step 2 above to point at the right file. You can check the `docker-compose.yml` file in the repo to see how the volumes are mapped.
|
Create and place these files in a `debug` folder in the root of the repo. This is also where recordings will be created if you enable them in your test config. Update your config from step 2 above to point at the right file. You can check the `docker-compose.yml` file in the repo to see how the volumes are mapped.
|
||||||
|
|
||||||
#### 4. Open the repo with Visual Studio Code
|
#### 4. Run frigate from the command line
|
||||||
|
|
||||||
Upon opening, you should be prompted to open the project in a remote container. This will build a container on top of the base frigate container with all the development dependencies installed. This ensures everyone uses a consistent development environment without the need to install any dependencies on your host machine.
|
|
||||||
|
|
||||||
#### 5. Run frigate from the command line
|
|
||||||
|
|
||||||
VSCode will start the docker compose file for you and open a terminal window connected to `frigate-dev`.
|
VSCode will start the docker compose file for you and open a terminal window connected to `frigate-dev`.
|
||||||
|
|
||||||
- Run `python3 -m frigate` to start the backend.
|
- Run `python3 -m frigate` to start the backend.
|
||||||
- In a separate terminal window inside VS Code, change into the `web` directory and run `npm install && npm start` to start the frontend.
|
- In a separate terminal window inside VS Code, change into the `web` directory and run `npm install && npm start` to start the frontend.
|
||||||
|
|
||||||
#### 6. Teardown
|
#### 5. Teardown
|
||||||
|
|
||||||
After closing VSCode, you may still have containers running. To close everything down, just run `docker-compose down -v` to cleanup all containers.
|
After closing VSCode, you may still have containers running. To close everything down, just run `docker-compose down -v` to cleanup all containers.
|
||||||
|
|
||||||
@ -219,6 +217,5 @@ docker buildx stop builder && docker buildx rm builder # <---- if existing
|
|||||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
docker buildx create --name builder --driver docker-container --driver-opt network=host --use
|
docker buildx create --name builder --driver docker-container --driver-opt network=host --use
|
||||||
docker buildx inspect builder --bootstrap
|
docker buildx inspect builder --bootstrap
|
||||||
make build_web
|
|
||||||
make push
|
make push
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user