Add wayland support
This commit is contained in:
parent
e4a40279bc
commit
ef71705c2b
|
@ -18,6 +18,8 @@ FROM mcr.microsoft.com/dotnet/core/runtime-deps
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install --no-install-recommends \
|
&& apt-get -y install --no-install-recommends \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
libegl1-mesa-dev \
|
||||||
|
libgbm1 \
|
||||||
libgl1 \
|
libgl1 \
|
||||||
pulseaudio \
|
pulseaudio \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
14
run.sh
14
run.sh
|
@ -18,16 +18,16 @@ docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-it \
|
-it \
|
||||||
--name osu \
|
--name osu \
|
||||||
-e DISPLAY \
|
|
||||||
-e PULSE_SERVER=/run/user/$(id -u)/pulse/native \
|
|
||||||
-e PULSE_COOKIE=/run/pulse/cookie \
|
|
||||||
--device /dev/dri \
|
--device /dev/dri \
|
||||||
--group-add $(getent group video|cut -d: -f3) \
|
|
||||||
--group-add $(getent group audio|cut -d: -f3) \
|
--group-add $(getent group audio|cut -d: -f3) \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
--group-add $(getent group video|cut -d: -f3) \
|
||||||
-v /run/user/$(id -u)/pulse/native:/run/user/$(id -u)/pulse/native \
|
-e PULSE_COOKIE=/run/pulse/cookie \
|
||||||
-v "$HOME/.config/pulse/cookie:/run/pulse/cookie" \
|
-e PULSE_SERVER=/run/user/$(id -u)/pulse/native \
|
||||||
|
-e WAYLAND_DISPLAY \
|
||||||
|
-e XDG_RUNTIME_DIR \
|
||||||
-v "$BASEDIR/data/:/home/osu/osu/" \
|
-v "$BASEDIR/data/:/home/osu/osu/" \
|
||||||
-v "$BASEDIR/import/:$BASEDIR/import/" \
|
-v "$BASEDIR/import/:$BASEDIR/import/" \
|
||||||
|
-v "$HOME/.config/pulse/cookie:/run/pulse/cookie" \
|
||||||
|
-v "${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}" \
|
||||||
r.sbruder.de/osu \
|
r.sbruder.de/osu \
|
||||||
$@
|
$@
|
||||||
|
|
Loading…
Reference in a new issue