Wiki

Clone wiki

subt_hello_world / Docker Installation

Docker Installation


This assumes that you have first installed the subt image at

https://bitbucket.org/osrf/subt/wiki/tutorials/SystemSetupDocker

and that you have placed this in the ~/subt_ws/ directory


Download this repository and get on the development branch


cd ~/
git clone https://bitbucket.org/jgrogers/subt_hello_world.git subt_hello_world
cd subt_hello_world
git checkout development
cd docker
chmod u+x build.bash run.bash join.bash


The recommended workflow is as follows:
1. Test your submission process using the "simple_submit" container.
2. Do your development on files in our host OS cloned by this repository.
3. Test your local development inside of the "helloworld_devel" container in conjunction with the Local Cloudsim setup.
4. Build and submit the "helloworld_submit" image whenever you are pleased with the performance of your local changes in "helloworld_devel" container.


Build the "simple_submit" container


Copies a local entry point script and launch file and sets the container entry point to be the corresponding script for the submission image.

cd ~/subt_hello_world/docker
./build.bash simple_submit/


Build the "helloworld_submit" container


Copies local code from this repository, builds it, and sets the entry point for the submission image.

cd ~/subt_hello_world/docker
./build.bash helloworld_submit/


Build the "helloworld_devel" container


cd ~/subt_hello_world/docker
./build.bash helloworld_devel/

Utilize the "helloworld_devel" container for development


Run the "helloworld_devel" Docker image and build the catkin repositories, pulling in the external references to mount as workspaces

./run.bash helloworld_devel ~/subt_hello_world/catkin_base_ws ~/subt_hello_world/catkin_build_ws
cd ~/workspaces/catkin_base_ws/src
wstool update
cd ../
catkin_make_isolated --install --use-ninja
source install_isolated/setup.bash
cd ~/workspaces/catkin_build_ws/src
wstool update
cd ../
catkin build 
Source the bashrc or exit and re-run the "helloworld_devel" Docker image to start experimenting by following the example use-cases laid out here.

Updated