Sign inSign up

hashaam1217/ubc_subbots

By hashaam1217

•Updated about 3 years ago

Docker image for Ubuntu 20.04 with ROS2 and libraries preinstalled

Image
0

346

hashaam1217/ubc_subbots repository overview

⁠Windows - Docker

There is a new option, to use Docker for development

  • Install Docker⁠
  • Install WSL⁠
  • install VcXsrv⁠
  • Run docker pull hashaam1217/ubc_subbots:1.1
  • Start the service (XLanuch) and enter these configurations:
    • First screen: select "Multiple Windows", Display number = -1
    • Second Screen: select "Start no client"
    • Third Screen: check "Clipboard", uncheck "Native opengl", check "Disable Access Control"
    • Select finish
  • Run docker run -it --name ubc_subbots -e DISPLAY=host.docker.internal:0 -v /tmp/.X11-unix:/tmp/.X11-unix hashaam1217/ubc_subbots:1.1 in terminal as adminstrator
  • To open another terminal connected to the same OS, run docker exec -it ubc_subbots /bin/bash
  • It should be already installed with all tools neccessary to work with ROS2.
  • This is a stateless system, you're changes are not saved so make you sure you push your changes to github before exiting
⁠Saving your image (optional)
  • If you want to save your image you can do it in a few steps.
  • Use docker ps -a to view the last container you have opened.
  • We can use docker commit [Your old container ID or name] [Name of the new image] to save our last workspace for future use.
  • For example the name of the first container is "ubc_subbots". We can use docker commit ubc_subbots my_local_image to save your last container for future use.
  • You will have to modify the run command like this: docker run -it -e DISPLAY=host.docker.internal:0 -v /tmp/.X11-unix:/tmp/.X11-unix my_local_image

Tag summary

Content type

Image

Digest

sha256:2a7f59ec8…

Size

2.9 GB

Last updated

about 3 years ago

docker pull hashaam1217/ubc_subbots:1.4