- Install and set up
rocker
- Update
bin/config.sh
to suit your needs - Edit
bin/extra_bashrc.sh
if necessary (e.g. customsource
/export
/alias
, etc.)- This file will be sourced in the
.bashrc
of the container
- This file will be sourced in the
- Modify
docker/base.dockerfile
if necessary - Run
bin/build_base.sh
to build the image- This may take up to 15 mins. I have yet to find a way to optimize this...
- Run
bin/start_container.sh
to start the container (by default named${IMAGE_NAME}
)- The
bash
shell entered defines the lifetime of the container. Exiting the shell automatically stops the container. - This entire repository will be mounted under
/${WORKSPACE_NAME}
. - Be sure to double check that modification from within the container are visible in the host , e.g.
touch
a new file in/${WORKSPACE_NAME}
in the container and check if the file appears locally.
- The
- In vscode, run command "Remote-Container: Attach to Running Container..." and select container
- Run
bin/enter_container.sh
to attach additional shells to the container - (optional) Use
bin/compile.sh
to compile the code in the container
-
Notifications
You must be signed in to change notification settings - Fork 0
rcywongaa/ros2_docker_workspace
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published