install: Fix curl command
This commit is contained in:
parent
6f7c27d62e
commit
ca28fc6242
18
INSTALL.md
18
INSTALL.md
|
@ -2,24 +2,6 @@
|
||||||
|
|
||||||
This guide allow you to install BirdNET-stream step by step on your debian based system.
|
This guide allow you to install BirdNET-stream step by step on your debian based system.
|
||||||
|
|
||||||
For a one-liner installation, you can use the following command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -sL https://raw.githubusercontent.com/UncleSamulus/BirdNET-stream/main/install.sh | bash
|
|
||||||
```
|
|
||||||
|
|
||||||
For debug purposes, you can use the following command, it will log the installation steps to the console:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
DEBUG=1 ./install.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
If you need to use a specific branch (e.g. dev), you can use the following command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
BRANCH=dev ./install.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- git
|
- git
|
||||||
|
|
|
@ -42,7 +42,7 @@ On debian based systems (tested on Debian Bullseye), the following command shoul
|
||||||
# Change to your installation directory here, /home/$USER/Documents/BirdNET-stream for instance, or /opt/birdnet-stream, or whatever
|
# Change to your installation directory here, /home/$USER/Documents/BirdNET-stream for instance, or /opt/birdnet-stream, or whatever
|
||||||
cd /path/to/installation/directory
|
cd /path/to/installation/directory
|
||||||
# Download installation script
|
# Download installation script
|
||||||
curl -0 https://raw.githubusercontent.com/UncleSamulus/BirdNET-stream/main/install.sh
|
curl -O https://raw.githubusercontent.com/UncleSamulus/BirdNET-stream/main/install.sh
|
||||||
# Run installation script:
|
# Run installation script:
|
||||||
chmod +x ./install.sh
|
chmod +x ./install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# recording:
|
recording:
|
||||||
# container_name: birdnet_recording
|
container_name: birdnet_recording
|
||||||
# build:
|
build:
|
||||||
# context: .
|
context: .
|
||||||
# dockerfile: ./docker/recording/Dockerfile
|
dockerfile: ./docker/recording/Dockerfile
|
||||||
# restart: unless-stopped
|
restart: unless-stopped
|
||||||
# environment:
|
volumes:
|
||||||
# - CHUNK_FOLDER=${CHUNK_FOLDER:-/media/birdnet/records}
|
- birdnet_app:${PROJECT_ROOT:-/opt/birdnet}
|
||||||
# volumes:
|
- birdnet_records:${RECORDS_DIR:-/media/birdnet/records}
|
||||||
# - ${RECORDS_DIR:-/media/birdnet/records}:${RECORS_FOLDER:-/media/birdnet/records}
|
# Allow container to access to the hosts microphone
|
||||||
# # Allow container to access to the hosts microphone
|
devices:
|
||||||
# devices:
|
- /dev/snd:/dev/snd
|
||||||
# - /dev/snd:/dev/snd
|
|
||||||
# analyzer:
|
# analyzer:
|
||||||
# container_name: birdnet_analyzer
|
# container_name: birdnet_analyzer
|
||||||
# build:
|
# build:
|
||||||
|
|
|
@ -11,15 +11,9 @@ ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt-get update && apt-get upgrade -y \
|
RUN apt-get update && apt-get upgrade -y \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
libasound2 \
|
ffmpeg \
|
||||||
alsa-utils \
|
|
||||||
libsndfile1-dev \
|
|
||||||
&& apt-get install -y ffmpeg \
|
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
RUN mkdir -p /opt/birdnet/
|
WORKDIR /opt/birdnet
|
||||||
WORKDIR /opt/birdnet/
|
|
||||||
COPY config ./config
|
|
||||||
COPY daemon/birdnet_recording.sh /usr/local/bin/birdnet_recording.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/birdnet_recording.sh"]
|
ENTRYPOINT ["./daemon/birdnet_recording.sh"]
|
Loading…
Reference in New Issue