antimof / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.27k stars 177 forks source link

Docker Container #76

Closed markst closed 2 years ago

markst commented 2 years ago

Is there any reason why this couldn't run in a Docker container?

I've managed to install all the dependencies & build using debian:buster base image.

I can get it to run into a state where by the following outputs:

supported audio format 1: AAC-ELD 44100/2
supported audio format 2: ALAC 44100/16/2
supported audio format 3: AAC-LC 44100/2
supported audio format 4: PCM 44100/16/2 S16LE
Initialized GStreamer video renderer
using system MAC address 6c:4b:90:ce:67:18
Initialized server socket(s)

In which the server doesn't appear on my client.

So could well mean it's an Avahi issue.

I've attempted to install avahi-daemon, but when attempting to run prior to executing uxplay the following occurs:

[ ok ] Starting system message bus: dbus.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonTimeout reached while wating for return value
Could not receive return value from daemon process.
 (warning).

Here's my start.sh script:

#!/bin/bash

/etc/init.d/dbus start
/etc/init.d/avahi-daemon start

uxplay -d
markst commented 2 years ago

Here's how I'm running the command in the container:

docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTHORITY -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR --net host -it test
markst commented 2 years ago

Moving to https://github.com/FDH2/UxPlay/issues/55