-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker / RTSP #1
Comments
Hi, I will do my best to port this application to docker, it is already in my plan, indeed 😄 . I also think that RTSP is a good feature to add. Maybe, there could be a central machine which does the classification and serve the webapp, connected to several audio recorders, streaming to the central machine, from the backyard, for instance. I do not know very much about home assistant, but that seems to be a great project. Thank you very much for your interest ! |
Here's how far I got with the following commands and edits to install.sh: docker run -it --name birdnet-test debian I removed the venv part from python as it was throwing a fit. And added python3 -m in front of both pip commands Once inside the container : I was getting loads of errors from systemctl, wants absolute paths. |
Thank you for this test. I am going to run it inside a debian vm, then try it in docker container. And we should also offer the possibility to run all in one container, for the sake of simplicity (at least for the beginning). |
I have achieved to run BirdNET-stream on a debian 11 vm using the /install.sh script, with some modifications. I will pull the changes to main, they are only on dev branch right now. |
So from what I have read systemd is a nogo on docker, or it's a bit hard to set up. Supervisord however is fine. docker run -it -p 81:80 --name birdnet debian:bullseye It installs but can't get the services to run as systems is a nono. |
Indeed, an 'all in one' docker container may be easier to manage for the user. Systemctl seems not to be fine to use with docker. I will look to supervisord. I don't know anything about it for now. However, I did some improvements to the docker-compose approach. |
Good start, looks like the right way to go. `ARG PHP_VERSION=${PHP_VERSION:-8.1} FROM php:${PHP_VERSION} ARG PROJECT_ROOT=${PROJECT_ROOT:-/opt/birdnet} RUN apt update && apt upgrade -y RUN docker-php-ext-install zip && apt clean Install composerRUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" Install nodejs and npmENV NVM_DIR="/usr/local/nvm" COPY . ${PROJECT_ROOT} Install composer packagesRUN composer install Install yarn dependenciesRUN . "$NVM_DIR/nvm.sh" && yarn install && yarn build CMD ["bash"]` After that it installed fine, but I still couldn't start the app as docker won't mount "/media/DATA/birdnet/records". This however is linked to my docker install, I'm on a mac rn so somethings are slightly different. I've tried mounting different volume options but to no avail |
Did you check that this directory exists on your host system ? Thanks for your proposition. (ps. For multiline code includes, you may use |
So it installs fine on the VM now, still needed to mod the symphony docker file with the following RUN apt update && apt upgrade -y
RUN apt install -y
curl
gzip
git
vim
zlib1g-dev
libzip-dev
unzip I get the Welcome to nginx! and that's it. Is the reverse proxy suppose to be serving the symphony app ? |
So by adding 'tty: true' to the docker-compose file for the symphony app it started running. However still only getting the nginx page and the containers are restarting over and over |
I updated the docker branch. The birdnet_symfony container does not need to run as daemon; it is rather used as a builder for symfony dependencies, which are kept inside docker_app volume, and accessed using nginx. So I switched to It is in progress, however, the symfony Dockerfile drops the installation process of npm and composer dependencies. I didn't achieve, for now, to build the php dependencies from docker, as composer install requires a connection to mysql (which is not running on |
Ah faire point, i'll see if I can get it running on my side and I'll keep in touch |
ps. This page is maybe not the best example; as it relies on Systemd to get services status, which is not involved in docker method xD... |
Hello,
Nice port of the birdnet eco-system. Would this be easily ported to docker? If so it'd be a surefast way of getting it integrated as an addon for home assistant.
As I haven't yet had the time to try and install it, can you add a rtsp stream instead of using a directly connected mic? Should be possible with ffmpeg. Anyhow thanks for you time invested in this sort of project.
Cheers
Matthew
The text was updated successfully, but these errors were encountered: