Closed kmeids closed 6 years ago
This is super useful, thanks for making this. How are you running this with docker ?
I'm running
docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -i -t osi_vis2:Dockerfile.osi_vis bash
but am getting the following error when trying to run ./osi-visualizer in the build directory
root@57fb7605257e:/opt/osi-visualizer/build# ./osi-visualizer .
"ZMQ version: 4.1.4"
"ZMQ version: 4.1.4"
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Could not initialize GLX
Aborted (core dumped)
Hi, the make file mainly contains all the commands you need to run in order to build the docker image and to run the container.
so if you open your terminal and cd to the directory where the Makefile is you can run the following commands:
build-image-osi-visualizer ( this will call "docker build -f Dockerfile.osi_vis -t osi-vis ." and build the image for you) If you get any errors during the build process like "open-simulation interface" is not empty you can just delete the whole file and start the build again ( the docker image is actually downloading the Master branch of osi and building it again, I also plan on using this for running osi in a docker image)
start-osi-visualizer (this will call "docker-compose run --rm osi_vis osi-visualizer" and run the visualizer for you)
if you have errors when starting the osi-visualizer normally it is because you don't have access to your display screen, the easiest way is to run sudo xhost + and try again :)
Let me know if it works! by the way I tested the image on 3 different linux machines running ubuntu 16.04 with Docker version 18.03.1-ce, build 9ee9f40
@pmai Thanks for the review and the provided enhancements! I think the changes do make sense, please feel free to merge at your will :)
Patches applied programatically inside the docker image