add a docker compose test file which can be used to stream audio continuously

This commit is contained in:
2025-05-07 11:51:56 +02:00
parent d35a8bee2c
commit c368fd5c85
3 changed files with 44 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
# TODO: investigate using -alpine in the future
FROM python:3.11
FROM python:3.11
# Install system dependencies and poetry
RUN apt-get update && apt-get install -y \
@@ -15,9 +15,21 @@ COPY ./src/ .
RUN sed /^StrictHostKeyChecking/d /etc/ssh/ssh_config; \
echo StrictHostKeyChecking no >> /etc/ssh/ssh_config
RUN --mount=type=cache,target=/root/.cache \
--mount=type=ssh,required=true \
pip install ./
# Install poetry
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry config --list
RUN --mount=type=ssh,required=true \
--mount=type=cache,target=/root/.cache \
poetry install --verbose
# Debug: Verify packages were installed
RUN which python
RUN pip list
#poetry config virtualenvs.create false
# make sure to install sudo apt install docker-buildx
# make sure to set IdentityFile /home/pstruebi/.ssh/id_ed25519 in ~/.ssh/config -maybe not nececcary
@@ -30,3 +42,6 @@ RUN --mount=type=cache,target=/root/.cache \
# example run commands
# interactive:
# docker run --rm -it --device /dev/serial/by-id/usb-ZEPHYR_Zephyr_HCI_UART_sample_81BD14B8D71B5662-if00 bumble-auracast bash
#/usr/local/bin/python