Giter Site home page Giter Site logo

mur_docker's Introduction

MUR Docker

Dockerfile repo for MUR's dev env docker image

Features

Base image: nvidia/cudagl:10.0-devel-ubuntu18.04

  • CUDA 10.0
  • OpenGL (glvnd 1.2)
  • cuDNN 7.6.5
  • TensorRT 7.0
  • ROS Melodic
  • Gazebo 9.15.0
  • CMake 3.18
  • OpenCV 4.1.1 (With CUDA/cuDNN)
  • Pylon 6.1.1
  • tkDNN v0.5

Build instructions

Retrive the missing binaries and place it in Installers as such,

Installers/
├─ CMake/
│  ├─ cmake-3.18.2-Linux-x86_64.sh
│  └─ install_cmake.sh
├─ Nvidia/
│  ├─ nv-tensorrt-repo-ubuntu1804-cuda10.0-trt7.0.0.11-ga-20191216_1-1_amd64.deb`
│  ├─ libcudnn7_7.6.5.32-1+cuda10.0_amd64.deb
│  └─ libcudnn7-dev_7.6.5.32-1+cuda10.0_amd64.deb
├─ OpenCV/
│  └─ opencv_build.sh
├─ Pylon/
│  └─ pylon_6.1.1.19861-deb0_amd64.deb
├─ tkDNN/
│  └─ install_tkDNN.sh
└─ readme.md

Run sudo make to build

Usage

As the docker image is based off of Nvidia's CUDA/cuDNN images, an Nvidia GPU is required as well as the latest GPU driver and the Nvidia docker toolkit.

First allow X clients from any hosts to connect with,

xhost +

This allows any one to connect your host machine's X11 server, technically a sercurity fault

Then launch the docker image with sudo ./run.sh

docker run --gpus all \
    -v /tmp/.X11-unix/:/tmp/.X11-unix/:ro \
    -e DISPLAY=$(echo $DISPLAY) \
    --device=/dev/bus \
    -it \
    murauto/mur_dev_stack

Meaning of the flags

  • --gpus all enable pass through of all physical gpus
  • -v /tmp/.X11-unix/:/tmp/.X11-unix/:ro mount host's /tmp/.X11-unix/ to the image's /tmp/.X11-unix/ with read-only (:ro)
  • -e DISPLAY=$(echo $DISPLAY) export the DISPLAY env variable in the image to point to the host's display
  • --device=/dev/bus allows the container access to /dev/bus (USB/Serial device access)
  • -it Enable interactive terminal

TODO

  • Find a way to share compiled image (Docker HUB?)
    • Using Docker hub
  • Use XAuth alternative to xhost
  • Put OpenCV in (Test if opencv is installed properly)
    • Clean up bandaids
  • Split up Installers folder
  • VSCode integration tutorial
  • Exposing Ports and forwarding ros packets to remote machines
  • Missing Utilities
    • ifconfig
    • ping
    • vim
  • Install gtk and gtk3 module for lidar_dev sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

mur_docker's People

Contributors

huanga2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.