Add OBS application
Add LICENSE Add .gitignore Remove deprecated experimental_http3 Caddy option
This commit is contained in:
parent
f3a7c6de4a
commit
6beb123909
11 changed files with 104 additions and 15 deletions
1
apps/obs/Dockerfile
Symbolic link
1
apps/obs/Dockerfile
Symbolic link
|
@ -0,0 +1 @@
|
|||
Dockerfile.sway
|
10
apps/obs/Dockerfile.cage
Normal file
10
apps/obs/Dockerfile.cage
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM cagevnc:latest
|
||||
|
||||
RUN pacman -Syu --noconfirm obs-studio \
|
||||
&& yes y | pacman -Scc \
|
||||
&& rm -rf /usr/share/man/* /usr/share/doc/* \
|
||||
/var/cache/pacman/pkg/* /var/lib/pacman/sync/* \
|
||||
/tmp/*
|
||||
|
||||
ENV PAGE_TITLE="OBS Studio" \
|
||||
APP=obs
|
10
apps/obs/Dockerfile.sway
Normal file
10
apps/obs/Dockerfile.sway
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM swayvnc:latest
|
||||
|
||||
RUN pacman -Syu --noconfirm obs-studio \
|
||||
&& yes y | pacman -Scc \
|
||||
&& rm -rf /usr/share/man/* /usr/share/doc/* \
|
||||
/var/cache/pacman/pkg/* /var/lib/pacman/sync/* \
|
||||
/tmp/*
|
||||
|
||||
ENV PAGE_TITLE="OBS Studio" \
|
||||
APP=obs
|
30
apps/obs/compose.yml
Normal file
30
apps/obs/compose.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
x-restart-policy: &restart_policy
|
||||
restart: unless-stopped
|
||||
x-compose-defaults: &compose_defaults
|
||||
<<: *restart_policy
|
||||
networks:
|
||||
desktop:
|
||||
|
||||
services:
|
||||
obs:
|
||||
<<: *compose_defaults
|
||||
build:
|
||||
context: ./apps/obs
|
||||
dockerfile: Dockerfile
|
||||
image: obs-studio:latest
|
||||
container_name: obs-studio
|
||||
pull_policy: never
|
||||
hostname: $HOSTNAME
|
||||
links:
|
||||
- guacd
|
||||
volumes:
|
||||
- ./user:/home/nobody
|
||||
devices:
|
||||
- /dev/dri:/dev/dri # for gpu acceleration
|
||||
expose:
|
||||
- 5900/tcp
|
||||
|
||||
networks:
|
||||
desktop:
|
||||
external: true
|
11
apps/obs/entrypoint.sh
Executable file
11
apps/obs/entrypoint.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
runuser -u user -- sh -c "exec env WAYLAND_DISPLAY=wayland-0 XDG_RUNTIME_DIR=/run/user/10000 \
|
||||
WLR_BACKENDS=headless \
|
||||
WLR_NO_HARDWARE_CURSORS=1 \
|
||||
WLR_DRM_DEVICES=/dev/dri/card0 \
|
||||
/usr/bin/cage obs &"
|
||||
|
||||
sleep 3s
|
||||
|
||||
runuser -u user -- sh -c "exec env DISPLAY=:1 WAYLAND_DISPLAY=wayland-0 XDG_RUNTIME_DIR=/run/user/10000 /usr/bin/wayvnc -C /etc/wayvnc/config -g"
|
Loading…
Add table
Add a link
Reference in a new issue