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

feat: dockerize #144

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: dockerize #144

wants to merge 2 commits into from

Conversation

kuruk-mm
Copy link
Member

@kuruk-mm kuruk-mm commented Dec 6, 2024

Requires nvidia docker and an nvidia driver on the host

Guide to install it NVIDIA on the host:
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

For testing the NVIDIA Driver for Docker you can run:

docker run --rm --gpus all nvidia/cuda:11.8.0-base-ubuntu22.04 nvidia-smi

Then for building and running the Bevy Explorer:

docker build -t bevy-explorer .
docker run -it --rm --gpus all -p 8080:8080 bevy-explorer

and then you can connect to the X11 Viewer by going to http://localhost:8080/vnc_auto.html

@kuruk-mm
Copy link
Member Author

kuruk-mm commented Dec 6, 2024

Currently I'm getting the following crash:

2024-12-06 00:05:02,699 DEBG 'bevy-app' stderr output:
2024-12-06T00:05:02.699406Z ERROR wgpu_hal::vulkan::adapter: get_physical_device_surface_present_modes: An unknown error has occurred, due to an implementation or application bug    
2024-12-06T00:05:02.699416Z ERROR wgpu_hal::vulkan::adapter: get_physical_device_surface_formats: An unknown error has occurred, due to an implementation or application bug    

2024-12-06 00:05:02,713 DEBG 'bevy-app' stderr output:
2024-12-06T00:05:02.713329Z ERROR panic: thread 'Compute Task Pool (14)' panicked at 'No supported formats for surface': /root/.cargo/git/checkouts/bevy-8d9f88ab7593fc98/985cbb2/crates/bevy_render/src/view/window/mod.rs:476
   0: <backtrace::capture::Backtrace as core::default::Default>::default
   1: log_panics::Config::install_panic_hook::{{closure}}
   2: std::panicking::rust_panic_with_hook
   3: std::panicking::begin_panic_handler::{{closure}}
   4: std::sys::backtrace::__rust_end_short_backtrace
   5: rust_begin_unwind
   6: core::panicking::panic_fmt
   7: core::option::expect_failed
   8: bevy_render::view::window::create_surfaces
   9: <bevy_ecs::system::function_system::FunctionSystem<Marker,F> as bevy_ecs::system::system::System>::run_unsafe
  10: bevy_ecs::schedule::executor::__rust_begin_short_backtrace::run_unsafe
  11: async_executor::Executor::spawn_inner::{{closure}}
  12: async_task::raw::RawTask<F,T,S,M>::run
  13: std::sys::backtrace::__rust_begin_short_backtrace
  14: core::ops::function::FnOnce::call_once{{vtable.shim}}
  15: std::sys::pal::unix::thread::Thread::new::thread_start
  16: <unknown>
  17: clone
    
Encountered a panic in system `bevy_render::view::window::create_surfaces`!

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.

1 participant