-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quadlet quickstart #92
base: stable
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -58,6 +58,46 @@ services: | |||||
restart: unless-stopped | ||||||
.... | ||||||
Podman quadlet: | ||||||
[source,ini] | ||||||
.... | ||||||
[Unit] | ||||||
Description=Podman Wolf Gamestreaming | ||||||
[Service] | ||||||
TimeoutStartSec=900 | ||||||
ExecStartPre=-/usr/bin/mkdir /tmp/sockets | ||||||
ExecStartPre=-/usr/bin/podman rm --force WolfPulseAudio | ||||||
Restart=on-failure | ||||||
RestartSec=5 | ||||||
StartLimitBurst=5 | ||||||
[Container] | ||||||
AutoUpdate=registry | ||||||
ContainerName=%N | ||||||
HostName=%N | ||||||
Image=ghcr.io/games-on-whales/wolf:stable | ||||||
AddCapability=CAP_SYS_PTRACE | ||||||
AddCapability=CAP_NET_ADMIN | ||||||
Network=host | ||||||
SecurityLabelDisable=true | ||||||
PodmanArgs=--ipc=host --device-cgroup-rule "c 13:* rmw" | ||||||
AddDevice=/dev/dri | ||||||
AddDevice=/dev/uinput | ||||||
AddDevice=/dev/uhid | ||||||
Environment=HOST_APPS_STATE_FOLDER=/etc/wolf | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moving env var definitions to a separate file and using An example of using EnvironmentFile can be found here: https://www.flatcar.org/docs/latest/setup/systemd/environment-variables/#environmentfile-directive I'm currently working around some permissions issues related to running on Bazzite, but here are the working configs I'm using: https://github.com/detiber/beardy-os/pull/1/files I'm going to continue tweaking on things in that PR while I re-scope the permissions back down |
||||||
Environment=GST_DEBUG=2 | ||||||
Comment on lines
+89
to
+90
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason why you manually specified those? It shouldn't be required since it's the same as the defaults Lines 115 to 116 in e10d00b
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original quadlet file that was posted on discord set a bunch more environment variables which I removed. If you want I can remove it from all of them... |
||||||
Volume=/dev/input:/dev/input:ro | ||||||
Volume=/run/udev:/run/udev:ro | ||||||
Volume=/tmp/sockets:/tmp/sockets:rw | ||||||
Volume=/run/podman/podman.sock:/var/run/docker.sock:ro | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||||||
Volume=/etc/wolf:/etc/wolf | ||||||
[Install] | ||||||
WantedBy=multi-user.target | ||||||
.... | ||||||
-- | ||||||
Nvidia (Container Toolkit):: | ||||||
+ | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This unit implies you're using a system wide podman service. This will work if you have
podman.socket
active when you run this unit, but it would be best if you added the dependency explicitly.