Skip to content

Run Sound App in Singularity #209

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

Closed
bobhenkel opened this issue Apr 16, 2021 · 1 comment
Closed

Run Sound App in Singularity #209

bobhenkel opened this issue Apr 16, 2021 · 1 comment

Comments

@bobhenkel
Copy link

bobhenkel commented Apr 16, 2021

Hello,

I come from a docker background and I'm just testing things out. Is there a way to launch a container with Singularity and allow it to produce sound. I have a container so far that can run Firefox, but sound doesn't come out if I have youtube playing. For example I believe on docker you can pass --device /dev/snd (Add a host device to the container). Here is my Singularity file

Bootstrap: docker
From: ubuntu:latest

%post
        apt-get update -y
        apt-get install -y firefox pulseaudio

%runscript
        firefox

Here are are the things I tried with no luck

./singularity-firefox.sif

And

singularity run --bind  /dev/snd:/dev/snd singularity-firefox.sif
FATAL:   could not open image /dev/snd:/dev/snd: failed to retrieve path for /dev/snd:/dev/snd: lstat /dev/snd:: no such file or directory

Thanks!

@bobhenkel
Copy link
Author

Looks like there's a different github org to post issues too. Anyways I figured it out.
This works, why I can't tell you as I have no idea.

singularity run --bind  /run singularity-firefox.sif

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

No branches or pull requests

1 participant