2 ################################################## 3 # Ubuntu Instructions to setup grl with Docker 4 ################################################## 6 # Install docker with the line below 11 # source: https://www.docker.com/ 14 # give docker permission to run 17 sudo gpasswd -a ${USER} docker
19 # source : http://dev-maziarz.blogspot.com/2015/01/running-docker-sock-permission-denied.html 26 ########################################### 27 # clone the docker setup script I modified 28 ########################################## 32 # source : https://registry.hub.docker.com/u/rsmmr/clang/ 35 # setup c++ environment in a protected box so it doesn't mess with your OS 39 # optional step that may speed things up: 40 # docker pull rsmmr/clang 46 # complete setup c++ environment in a protected box so it doesn't mess with your OS 52 # run c++ environment as if it was a separate OS. 55 # typically you should only need this next 56 # line if you are making changes and 57 # just want to rerun the OS. 62 # build files should be in /root 64 ######################################### 65 # how to cleanup if something goes wrong: 66 ######################################### 67 # http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html 68 # http://docs.docker.com/reference/commandline/cli/ 69 # bash script: https://github.com/blueyed/dotfiles/blob/master/usr/bin/docker-cleanup 70 # github issue requesing cleanup: https://github.com/docker/docker/issues/928 73 ######################################### 74 # running apps that have a gui, such as vrep, inside a docker container 75 ######################################### 77 # these options have not yet been tested 79 #http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/ 81 #http://www.jann.cc/2014/09/06/sandboxing_proprietary_applications_with_docker.html#running-gui-applications 82 #https://github.com/rogaha/docker-desktop 84 #http://blog.docker.com/2013/07/docker-desktop-your-desktop-over-ssh-running-inside-of-a-docker-container/ 96 ############################################################### 97 #alternative, ignore below here 98 ############################################################### 105 # give docker permission to run 108 sudo gpasswd -a ${USER} docker
110 # source : http://dev-maziarz.blogspot.com/2015/01/running-docker-sock-permission-denied.html 114 # log out then log in 119 # setup c++ environment in a protected box so it doesn't mess with your OS 122 docker pull sango/cpp-clang
124 # source : https://registry.hub.docker.com/u/sango/cpp-clang/ 128 docker run --user=
"root" sango/cpp-clang apt-
get update
131 docker run --user=
"root" sango/cpp-clang apt-
get install -
y cmake libtool autoconf automake uuid-dev build-essential libboost-all-dev libeigen3-dev wget curl
138 # source : https://maddigitiser.wordpress.com/2013/05/02/installing-zeromq-on-ubuntu-13-04/ 144 docker run --user=
"root" sango/cpp-clang /bin/sh -c
'git clone https://github.com/zeromq/azmq.git /root/azmq/ && cd azmq && mkdir build && cd build && cmake .. && make && make test && make install" 145 docker run --user="root" sango/cpp-clang git clone https://github.com/ahundt/grl.git /root/grl