muvox-io / euphonium

Tiny audio platform
GNU Affero General Public License v3.0
96 stars 15 forks source link

adding docker build #42

Open TooDissing opened 2 years ago

TooDissing commented 2 years ago

Fixes #41.

Adding a small docker container that can build the cli target.

The resulting bin also runs, but fails (on my machine) when trying to access ALSA. This makes sense as I am running on macOS.

TODO: Hope to be able to test on a linux within a few day, to validate that audio also works.

feelfreelinux commented 2 years ago

Looks good, will hold on with merging until I test it out on my machine. Not sure how audio would work without forwarding /dev/snd.

TooDissing commented 2 years ago

Looks good, will hold on with merging until I test it out on my machine. Not sure how audio would work without forwarding /dev/snd.

I guess it won't.

But something you can choose to do, when starting the container. We can create a docker-compose.yaml file to make this part easier.

feelfreelinux commented 2 years ago

Looks good, will hold on with merging until I test it out on my machine. Not sure how audio would work without forwarding /dev/snd.

I guess it won't.

But something you can choose to do, when starting the container. We can create a docker-compose.yaml file to make this part easier.

Actually, my bad, now i see that you point to pulse's socket. Maybe this would also work after installing pulse on macos?

TooDissing commented 2 years ago

Looks good, will hold on with merging until I test it out on my machine. Not sure how audio would work without forwarding /dev/snd.

I guess it won't. But something you can choose to do, when starting the container. We can create a docker-compose.yaml file to make this part easier.

Actually, my bad, now i see that you point to pulse's socket. Maybe this would also work after installing pulse on macos?

Basically just took the config from the docker image in the cspot project. Main purpose was to be able to build the CLI target. Will convert to draft and do additional testing :-)