mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
docker/main: add download-models overlay into s6 startup
This commit is contained in:
parent
d6ff220e45
commit
7c58c3ed4e
@ -197,6 +197,8 @@ EXPOSE 8555/tcp 8555/udp
|
||||
|
||||
# Configure logging to prepend timestamps, log to stdout, keep 0 archives and rotate on 10MB
|
||||
ENV S6_LOGGING_SCRIPT="T 1 n0 s10000000 T"
|
||||
# Do not fail on long-running download scripts
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
||||
|
||||
ENTRYPOINT ["/init"]
|
||||
CMD []
|
||||
|
8
docker/main/rootfs/etc/s6-overlay/s6-rc.d/download-models/run
Executable file
8
docker/main/rootfs/etc/s6-overlay/s6-rc.d/download-models/run
Executable file
@ -0,0 +1,8 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
# Download yolov8 models when DOWNLOAD_YOLOV8=1 environment variable is set
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
python3 /opt/frigate/frigate/util/download_models.py
|
||||
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
oneshot
|
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/download-models/run
|
Loading…
Reference in New Issue
Block a user