Skip to content

Commit

Permalink
add wolf
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber committed Dec 5, 2024
1 parent 549e033 commit 4d3c394
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 38 deletions.
14 changes: 0 additions & 14 deletions files/apps/wolf/scripts/debugging/steam-test.sh

This file was deleted.

1 change: 0 additions & 1 deletion files/apps/wolf/scripts/debugging/wolf-api.sh

This file was deleted.

23 changes: 0 additions & 23 deletions files/apps/wolf/scripts/debugging/wolf.sh

This file was deleted.

39 changes: 39 additions & 0 deletions files/justfiles/apps/wolf/wolf.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
wolf-api-schema:
sudo curl --unix-socket /var/run/wolf/wolf.sock http://localhost/api/v1/openapi-schema | jq

wolf-debug-steam:
sudo podman run --rm -it \
--device=/dev/dri/renderD128 \
--device=/dev/dri/card1 \
-ipc=host \
-privileged \
-cap-add=ALL \
-security-opt seccomp=unconfined \
-e XDG_RUNTIME_DIR=/tmp \
-v ${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}:/tmp/${WAYLAND_DISPLAY}:rw \
-e XDG_SESSION_TYPE=wayland \
-e WAYLAND_DISPLAY=${WAYLAND_DISPLAY} \
-e RUN_SWAY=true \
-v /tmp/SteamGOWData:/home/retro/ \
ghcr.io/games-on-whales/steam:fix-steam-mesa

wolf-debug:
sudo podman stop WolfPulseAudio || true
sudo podman rm WolfPulseAudio || true
sudo podman run --rm \
--name wolf \
--privileged \
--network=host \
--ipc=host \
--cap-add=ALL \
--device-cgroup-rule "c 13:* rmw" \
--device /dev/dri \
--device /dev/uinput \
--device /dev/uhid \
-v /tmp/sockets:/tmp/sockets:rw \
-v /etc/wolf:/etc/wolf:rw \
-v /run/podman/podman.sock:/var/run/docker.sock:ro \
-v /dev/input:/dev/input:ro \
-v /run/udev:/run/udev:rw \
--security-opt seccomp=unconfined \
ghcr.io/games-on-whales/wolf:stable
10 changes: 10 additions & 0 deletions recipes/apps/wolf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
modules:
- type: files
files:
- source: apps/wolf/system
destination: / # copies files/apps/wolf/system/* (* means everything inside it) into your image's root folder /

- type: justfiles
validate: true
include:
- apps/wolf
3 changes: 3 additions & 0 deletions recipes/beardy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,7 @@ modules:
# # - libva-intel-media-driver
# # - igt-gpu-tools # To check GPU usage via sudo intel_gpu_top

# Add wolf
- from-file: apps/wolf.yml

- type: signing # this sets up the proper policy & signing files for signed images to work fully

0 comments on commit 4d3c394

Please sign in to comment.