mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Add go2rtc to local services and add to s6
This commit is contained in:
parent
0aa5e3509f
commit
fe5399d5f8
@ -119,7 +119,9 @@ ENV PATH=$PATH:/usr/lib/btbn-ffmpeg/bin
|
||||
|
||||
# install go2rtc
|
||||
RUN wget -O go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v0.1-beta.8/go2rtc_linux_${TARGETARCH}" \
|
||||
&& chmod +x go2rtc
|
||||
&& chmod +x go2rtc \
|
||||
&& mkdir -p /usr/local/go2rtc/sbin/ \
|
||||
&& mv go2rtc /usr/local/sbin/go2rtc
|
||||
|
||||
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
|
||||
|
||||
|
||||
5
docker/rootfs/etc/services.d/go2rtc/finish
Normal file
5
docker/rootfs/etc/services.d/go2rtc/finish
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/execlineb -S1
|
||||
if { s6-test ${1} -ne 0 }
|
||||
if { s6-test ${1} -ne 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
2
docker/rootfs/etc/services.d/go2rtc/run
Normal file
2
docker/rootfs/etc/services.d/go2rtc/run
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/execlineb -P
|
||||
/usr/local/go2rtc/sbin/go2rtc
|
||||
Loading…
Reference in New Issue
Block a user