Add go2rtc-beta Home Assistant addon#33
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: skrashevich <15078499+skrashevich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add go2rtc-beta Home Assistant addon
Add go2rtc-beta Home Assistant addon
Mar 11, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
go2rtc-betaaddon built from thebetabranch ofskrashevich/go2rtc, mirroring thedouble-take/double-take-betapattern already in the repo.New files:
go2rtc-beta/config.yaml— sluggo2rtc-beta, imageghcr.io/skrashevich/hassio-addon-go2rtc-beta-{arch}, ingress on 1984, ports 1984/8554/8555 (tcp+udp),log_levelschema,config:rwmapDockerfile— three-stage build:build: cross-compiles go2rtc binary fromskrashevich/go2rtc@betausinggolang:1.26-alpinedownload-cdn: independently clones the repo to rundownload_cdn.shfor offline web UI assets — fixes the logical error in the spec whereCOPY --from=build /src/...referenced source paths that never exist in the build stage (only the compiled binary does)alpine:3.21+ s6-overlay3.1.6.2+ bashiov0.14.3;run.shbootstraps/config/go2rtc.yamlon first start usingbashio::configREADME.md/CHANGELOG.md— standard addon docsOriginal prompt
Задача
Добавить новый Home Assistant addon
go2rtc-betaв репозиторийskrashevich/hassio-addons, основанный на веткеbetaрепозиторияskrashevich/go2rtc.Контекст
Репозиторий уже содержит аддоны с похожей структурой:
double-take/— стабильная версияdouble-take-beta/— бета-версия с суффиксом-betaНужно создать аналогичную пару: аддон
go2rtc-beta(beta-ветка go2rtc).Структура репозитория go2rtc (ветка beta)
main.go,go.mod)docker/Dockerfile(multi-stage: build → download-cdn → final alpine+python образ)1984(HTTP/WebUI),8554(RTSP),8555(WebRTC/TCP),8555/udp(WebRTC/UDP)/config/usr/local/bin/entrypoint.shamd64,aarch64,armv7Что нужно создать
Создать директорию
go2rtc-beta/со следующими файлами:1.
go2rtc-beta/config.yaml2.
go2rtc-beta/DockerfileDockerfile должен:
betaрепозиторияskrashevich/go2rtc/run.sh, который читает конфиг через bashio и запускает go2rtc