ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
188 stars 60 forks source link

[WIP] Option to create a deployable runtime image #200

Closed emersonknapp closed 4 years ago

emersonknapp commented 4 years ago

Consider this a preview branch for now. Works great but has no tests yet.

Adds an option to the build to create a "runtime docker image". This image contains the created portable install directory created by the build, and its default entrypoint is a shell that sources its setup.bash. This means a user can do soemething like the following

ros_cross_compile $(pwd) -a aarch64 -d dashing -o ubuntu --create-runtime-image my-runtime
docker run -it my-runtime
# in the container
ros2 launch my_package my.launch.py

The image is ready to push to a registry and pulled onto a target device to use with whatever combination of docker/rocker arguments desired.

Signed-off-by: Emerson Knapp emerson.b.knapp@gmail.com

vishalsinghdeepak commented 4 years ago

--create-runtime-image option only accepts lowercase characters. It breaks for Uppercase (not sure about other character (special chars or numbers))

emersonknapp commented 4 years ago

Going to reopen with a new approach to this code based on architecture changes in the package