Add Dev Container section on README
This commit is contained in:
@@ -2783,6 +2783,30 @@ $ yarn run build
|
|||||||
|
|
||||||
Resultant build will be at `dist/frigate-hass-card.js`. This could be installed via the [manual installation instructions above](#manual-installation).
|
Resultant build will be at `dist/frigate-hass-card.js`. This could be installed via the [manual installation instructions above](#manual-installation).
|
||||||
|
|
||||||
|
### Dev Container
|
||||||
|
|
||||||
|
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/dermotduffy/frigate-hass-card)
|
||||||
|
|
||||||
|
You can use the [VS Code Remote - Containers](https://code.visualstudio.com/docs/remote/containers) extension to speed up the development environment creation. Simply:
|
||||||
|
|
||||||
|
1. Clone the repository in your machine
|
||||||
|
2. Open VS Code on it
|
||||||
|
3. Reopen the folder in the Dev Container
|
||||||
|
4. Once done, press `F5` to start debugging
|
||||||
|
>**NOTE**: Use `admin`/`admin` to log into Home Assistant.
|
||||||
|
|
||||||
|
Ideally, everything should be working without any additional configuration.
|
||||||
|
|
||||||
|
Under the hoods, the dev container setup takes care of bringing up:
|
||||||
|
|
||||||
|
* Home Assistant (port `48123:8123`)
|
||||||
|
* Frigate (ports `45000:5000`, `41935:1935`)
|
||||||
|
* MQTT (port `41883:1883`)
|
||||||
|
|
||||||
|
As docker-compose containers.
|
||||||
|
|
||||||
|
* The Frigate Home Assistant Integration is registerd as a `git submodule` at `.devcontainer/frigate-hass-integration`, and VS Code will initialize/clone as well for you.
|
||||||
|
|
||||||
### Releasing
|
### Releasing
|
||||||
|
|
||||||
1. Merge a PR that contains only a `package.json` and `const.ts` version number bump (see [this example](https://github.com/dermotduffy/frigate-hass-card/commit/a854187d4a354f8841ad284d75b0afbed7b634c4)).
|
1. Merge a PR that contains only a `package.json` and `const.ts` version number bump (see [this example](https://github.com/dermotduffy/frigate-hass-card/commit/a854187d4a354f8841ad284d75b0afbed7b634c4)).
|
||||||
|
|||||||
Reference in New Issue
Block a user