gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.51k stars 780 forks source link

Dockerfile upgrade #2387

Closed elbarto1980 closed 11 months ago

elbarto1980 commented 11 months ago

This is a docker upgrade, based on my current experience on OSG and osgearth. It uses Ubuntu 20.04.6 LTS (Focal Fossa) as base image and installs both OpenScenegraph 3.6.5 and osgearth. @jasonbeverage, feel free to modify it as you see fit.

elbarto1980 commented 11 months ago

Added GLEW and Draco, I tested this installation using _osgearthviewer readymap.earth. This warning is printed: void StateSet::setGlobalDefaults() ShaderPipeline disabled, but it seems to work fine.

jasonbeverage commented 11 months ago

Thanks for the PR! I was mostly using this Dockerfile for doing some data processing with osgearth_conv. Does this actually allow you to run osg and osgEarth within docker with nvidia acceleration?

elbarto1980 commented 11 months ago

Yes, it does. You have to start the docker container using docker compose up. Then, in another terminal, run docker ps to get the container's ID and finally use docker exec -it "CONTAINER ID" /bin/bash to open a bash shell inside the container. Let me know if you have any problems...

jasonbeverage commented 11 months ago

Awesome! Have you tried this on Windows at all or will this only work on Linux?

elbarto1980 commented 11 months ago

I am sorry but I don't have a Windows pc to try it on. I switched to Linux 7 yrs ago and never turned back. 😅