Skip to content
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

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from
Open

Conversation

knoellle
Copy link

@knoellle knoellle commented Aug 5, 2024

This PR adds an example quadlet file to the quickstart docs.
Quadlets are a way of describing a podman container configuration as a systemd unit.

It was adapted from what @Drakulix posted on discord, updating since renamed flags/variables and bringing the state configuration in line with the other quickstart examples.

I only added this to the Intel/AMD sections since I don't have an Nvidia GPU to test with.

[source,ini]
....
[Unit]
Description=Podman Wolf Gamestreaming
Copy link

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.

[Unit]
Description=Podman Wolf Gamestreaming
Requires=podman.service
After=podman.service 

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The podman.socket unit uses %t/podman/podman.sock.
The snippet here should do the same, since distros might put it in /var/run instead.

Comment on lines +89 to +90
Environment=HOST_APPS_STATE_FOLDER=/etc/wolf
Environment=GST_DEBUG=2
Copy link
Member

Choose a reason for hiding this comment

The 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

wolf/docker/wolf.Dockerfile

Lines 115 to 116 in e10d00b

HOST_APPS_STATE_FOLDER=/etc/wolf \
GST_DEBUG=2 \

Copy link
Author

Choose a reason for hiding this comment

The 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.
Apparently I forgot to remove the GST_DEBUG line.
The HOST_APPS_STATE_FOLDER I kept because both the docker and docker-compose blocks set that variable as well.

If you want I can remove it from all of them...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants