Skip to content
Snippets Groups Projects
Verified Commit 08fa1edf authored by Ole Binder's avatar Ole Binder
Browse files

Feat: add entrypoint for docker

parent 5af967da
No related branches found
No related tags found
1 merge request!8Feat jack support
......@@ -30,6 +30,7 @@ COPY tests /srv/tests
COPY config/sample.engine-core.docker.ini /srv/config/engine-core.ini
COPY Makefile /srv/Makefile
COPY VERSION /srv/VERSION
COPY scripts/entrypoint.sh /srv/entrypoint.sh
RUN groupadd --gid ${AURA_GID} aura && \
useradd --gid ${AURA_GID} --no-user-group --uid ${AURA_UID} --home-dir /srv --no-create-home aura && \
......
......@@ -12,6 +12,7 @@ services:
- audio
# devices:
# - /dev/snd
command: ["./entrypoint.sh"]
environment:
TZ: ${TIMEZONE}
AURA_ENGINE_CORE_LOG_LEVEL: ${AURA_ENGINE_CORE_LOG_LEVEL:?value from 1-5}
......
#!/bin/bash
# Start the first process
echo "Auto connecting PipeWire ports..."
/usr/bin/wpexec /etc/wireplumber/scripts/auto-connect-ports.lua &
# Start the second process
echo "Starting pw-jack..."
cd src && /usr/bin/pw-jack /usr/bin/liquidsoap ./engine.liq &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment