-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
An example docker file for building bevy on Ubuntu #11768
Comments
Shipping and maintaining this is a large burden: I'd be opposed to doing so unless it was automatically tested with a enthusiastic volunteer owning the upkeep. |
This error probably means that winit is detecting a linux but not finding one of the environment supported, x11 or wayland. Why are you trying to run an application that tries to open a window inside a docker? If you want to have that working, you'll need to install x11, a virtual display server ( |
hey @alice-i-cecile @mockersf, I'm working on a headless renderer plugin for bevy (https://github.com/cs50victor/bevy_headless). My use case is to run a game on a container and have users connect to it. ( like Google's Stadia project ). When I run it locally it doesn't open a window so I'm wondering if I can get rid of winit or suppress the errors. Is this feasible at the moment, can I hack around bevy's source code even though the winit seems somewhat tightly coupled to the renderer.
|
What you would want ideally is #22 The other way is the one I highlighted in my previous comment, with a virtual display server and x11 in a docker. I have a dockerfile around that is not minimal that I use to reproduce some CI issues:
running it with your local bevy repo mounted as |
Thanks for letting me know trying to uncouple winit is not really possible at the moment ( before I learnt the heard way ). I'll test your Dockerfile and give you feedback. |
It worked. Thanks @mockersf. Really appreciate it. |
How can Bevy's documentation be improved?
Please can we have a sample docker file for building bevy in a docker container
Tried running this but it errors out with this error message
compile_error!("The platform you're compiling for is not supported by winit");
cs50victor/newmedia@25c07ba
The text was updated successfully, but these errors were encountered: