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

Running opencda in docker support #139

Open
jewes opened this issue Nov 22, 2021 · 3 comments
Open

Running opencda in docker support #139

jewes opened this issue Nov 22, 2021 · 3 comments

Comments

@jewes
Copy link
Contributor

jewes commented Nov 22, 2021

This is not a real issue, but just some notes for those who want to running opencda in docker environment.

  1. Base Docker Image: I already have a base docker image(ubuntu 18.04) with carla client lib(0.9.11) installed. ie. import carla will not generate any error messages.
  2. OpenCDA installation: Get a copy of the source code, and mount it to the docker container based on image in the previous step using the docker -v options. So you'll get access to the opencda source in the docker container.
  3. X11 support: using docker run option -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY

Possible errors:

  1. In the container shell, try to run a scenario, for example. the single_2lanefree_carla, you may get some libs (limSM.so, libGL.so) missing messages. To fix those errors: using sudo apt-get update && sudo apt-get install -y libsm6 libgl1-mesa-glx to install the dependencies.
  2. You may get some errors like "X error: BadShmSeg, blabla", set environment variable using export QT_X11_NO_MITSHM=1 in the container will fix it.

If you see some other errors, leave a message here, I'll see if I can help.

@DerrickXuNu
Copy link
Contributor

Thanks a lot for addressing this!

@wdf19961118
Copy link

Could you release your base docker image? Thanks@jewes

@DerrickXuNu
Copy link
Contributor

@jewes Hi Jewes, welcome to contribute a PR for the docker image~

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

No branches or pull requests

3 participants