project start
This commit is contained in:
parent
e96f00f0b0
commit
5f6e2a414d
5 changed files with 38 additions and 0 deletions
13
sender/Dockerfile
Normal file
13
sender/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pipewire_sender
|
||||
FROM docker.io/alpine:edge
|
||||
RUN apk add --no-cache \
|
||||
pipewire pipewire-alsa pipewire-jack pipewire-pulse \
|
||||
pipewire-echo-cancel pipewire-spa-tools pipewire-zeroconf \
|
||||
pipewire-media-session \
|
||||
pulseaudio-utils \
|
||||
bash
|
||||
|
||||
COPY --chown=1000 ./src/service.sh /service.sh
|
||||
|
||||
USER 1000
|
||||
ENTRYPOINT /service.sh
|
4
sender/build.sh
Executable file
4
sender/build.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
source "src/library.sh"
|
||||
|
||||
"$DOCKER_BIN" build -t pipewire_sender "$SCRIPT_DIR"
|
4
sender/run.sh
Executable file
4
sender/run.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
source "./src/library.sh"
|
||||
|
||||
"$DOCKER_BIN" run pipewire_sender
|
11
sender/src/library.sh
Normal file
11
sender/src/library.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
#set -x # activate traces
|
||||
|
||||
SCRIPT_DIR=$(realpath "$(dirname "$0")")
|
||||
DOCKER_BIN="podman"
|
||||
#DOCKER_BIN="docker" # switch if you use docker
|
||||
|
||||
printf "\n\n"
|
||||
printf "## Running $0 ##\n"
|
||||
printf "\n"
|
6
sender/src/service.sh
Executable file
6
sender/src/service.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "Hi Vern, this is just a test if it builds on a raspi. ;)"
|
||||
|
||||
#pactl load-module module-native-protocol-tcp port=4713 listen=0.0.0.0
|
||||
|
Loading…
Add table
Reference in a new issue