dev_release¶
This is an example of how to create a docker development workflow
Quick start¶
Run all the steps to get the code, build the development docker and build your code.
Set up¶
Set up your workspace
Build¶
Make the development environment docker
Install¶
Make the workspace using the development docker
Step-by-step¶
Set up your workspace¶
Create a directory to put your source code.
example:
Clone the repositories you would like to build from source
example:
Build the dockerfile¶
Edit the docker file to include all additional resources and build the development dockerfile. This file is special because it is built with your user id/group/name. This allows you to build within the docker workspace as yourself.
cd ~/workstation_setup/examples/ros2_crystal_example_dev
docker build -f develop.dockerfile -t althack/ros2:crystal-example-dev --build-arg UID=$(id -u) --build-arg GID=$(id -g) --build-arg UNAME=$(whoami) .
Build inside the docker image¶
Run the docker image with the build function
Copy install targets into release docker image¶
Build the release docker image that will copy the install targets into the image