mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02:00
update
This commit is contained in:
@@ -24,7 +24,8 @@ ENV DEBIAN_FRONTEND="noninteractive" \
|
|||||||
PUID=1000 \
|
PUID=1000 \
|
||||||
PGID=1000 \
|
PGID=1000 \
|
||||||
HOME="/home/abc" \
|
HOME="/home/abc" \
|
||||||
XDG_RUNTIME_DIR="/run/user/1000"
|
XDG_RUNTIME_DIR="/run/user/1000" \
|
||||||
|
PYTHON_VIRTUAL_ENV="/home/abc/BirdNET-Pi/birdnet/bin/python3"
|
||||||
|
|
||||||
# hadolint ignore=DL3015,SC2016
|
# hadolint ignore=DL3015,SC2016
|
||||||
RUN \
|
RUN \
|
||||||
@@ -56,14 +57,14 @@ RUN \
|
|||||||
\
|
\
|
||||||
/./newinstaller.sh && \
|
/./newinstaller.sh && \
|
||||||
\
|
\
|
||||||
# Adapt for lsio
|
|
||||||
if [ -d /app ]; then rm -r /app; fi && \
|
|
||||||
ln -s /home/abc /app && \
|
|
||||||
chown -R abc:abc /home/abc /app && \
|
|
||||||
\
|
|
||||||
# Change user to pi
|
# Change user to pi
|
||||||
groupmod -o -g "100" abc && usermod -o -u "100" abc && \
|
groupmod -o -g "100" abc && usermod -o -u "100" abc && \
|
||||||
groupadd --gid 1000 pi && useradd --uid 1000 --gid 1000 -m pi
|
groupadd --gid 1000 pi && useradd --uid 1000 --gid 1000 -m pi
|
||||||
|
\
|
||||||
|
# Adapt for lsio
|
||||||
|
if [ -d /app ]; then rm -r /app; fi && \
|
||||||
|
ln -s /home/abc /app && \
|
||||||
|
chown -R pi:pi /home/abc /app
|
||||||
|
|
||||||
#USER abc
|
#USER abc
|
||||||
#WORKDIR /app
|
#WORKDIR /app
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-custom_recording
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-custom_recording
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-envdir /run/user/1000
|
s6-envdir /run/user/1000
|
||||||
s6-setuidgid ${USER}
|
s6-setuidgid ${USER}
|
||||||
/usr/local/bin/custom_recording.sh
|
/usr/local/bin/custom_recording.sh
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-avahi_alias
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-avahi_alias
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
s6-setuidgid ${USER}
|
||||||
|
|
||||||
echo "Starting service: avahi alias"
|
echo "Starting service: avahi alias"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_analysis
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_analysis
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: birdnet analysis"
|
echo "Starting service: birdnet analysis"
|
||||||
$PYTHON_VIRTUAL_ENV /usr/local/bin/birdnet_analysis.py
|
|
||||||
|
exec \
|
||||||
|
s6-setuidgid "$USER" "$PYTHON_VIRTUAL_ENV /usr/local/bin/birdnet_analysis.py"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_log
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_log
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: birdnet log"
|
echo "Starting service: birdnet log"
|
||||||
/usr/local/bin/gotty --address localhost -p 8080 --path log --title-format "BirdNET-Pi Log" birdnet_log.sh
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/usr/local/bin/gotty --address localhost -p 8080 --path log --title-format 'BirdNET-Pi Log' birdnet_log.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 6 }
|
if { sleep 6 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_recording
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_recording
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: birdnet recording"
|
echo "Starting service: birdnet recording"
|
||||||
/usr/local/bin/birdnet_recording.sh
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/usr/local/bin/birdnet_recording.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 5 }
|
if { sleep 5 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_stats
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-birdnet_stats
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
s6-setuidgid ${USER}
|
||||||
echo "Starting service: birdnet stats"
|
echo "Starting service: birdnet stats"
|
||||||
$HOME/BirdNET-Pi/birdnet/bin/streamlit run $HOME/BirdNET-Pi/scripts/plotly_streamlit.py --browser.gatherUsageStats false --server.address localhost --server.baseUrlPath "/stats"
|
exec \
|
||||||
|
s6-setuidgid "$USER" "$HOME/BirdNET-Pi/birdnet/bin/streamlit run $HOME/BirdNET-Pi/scripts/plotly_streamlit.py --browser.gatherUsageStats false --server.address localhost --server.baseUrlPath '/stats'"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-caddy
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-caddy
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: caddy"
|
echo "Starting service: caddy"
|
||||||
/usr/local/bin/caddy run --config /etc/caddy/Caddyfile
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/usr/local/bin/caddy run --config /etc/caddy/Caddyfile"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 120 }
|
if { sleep 120 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-chart_viewer
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-chart_viewer
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: chart viewer"
|
echo "Starting service: chart viewer"
|
||||||
$PYTHON_VIRTUAL_ENV /usr/local/bin/daily_plot.py --daemon --sleep 2
|
exec \
|
||||||
|
s6-setuidgid "$USER" "$PYTHON_VIRTUAL_ENV /usr/local/bin/daily_plot.py --daemon --sleep 2"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-getty
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-getty
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
with-contenv
|
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: getty"
|
echo "Starting service: getty"
|
||||||
/sbin/agetty --autologin ${USER} --noclear %I $TERM
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/sbin/agetty --autologin ${USER} --noclear %I $TERM"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-livestream
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-livestream
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
echo "Starting service: livestream"
|
echo "Starting service: livestream"
|
||||||
/usr/local/bin/livestream.sh
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/usr/local/bin/livestream.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 10 }
|
if { sleep 10 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-spectrogram_viewer
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-spectrogram_viewer
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
s6-setuidgid ${USER}
|
|
||||||
echo "Starting service: spectrogram viewer"
|
echo "Starting service: spectrogram viewer"
|
||||||
/usr/local/bin/spectrogram.sh
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/usr/local/bin/spectrogram.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
if { sleep 3 }
|
if { sleep 3 }
|
||||||
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-web_terminal
|
s6-svc -u /etc/s6-overlay/s6-rc.d/svc-web_terminal
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bashio
|
||||||
echo "Starting service: web terminal"
|
echo "Starting service: web terminal"
|
||||||
/usr/local/bin/gotty --address localhost -w -p 8888 --path terminal --title-format "BirdNET-Pi Terminal" login
|
exec \
|
||||||
|
s6-setuidgid "$USER" "/usr/local/bin/gotty --address localhost -w -p 8888 --path terminal --title-format 'BirdNET-Pi Terminal' login"
|
||||||
|
|||||||
Reference in New Issue
Block a user