- Install and set up
rocker - Update
bin/config.shto suit your needs - Edit
bin/extra_bashrc.shif necessary (e.g. customsource/export/alias, etc.)- This file will be sourced in the
.bashrcof the container
- This file will be sourced in the
- Modify
docker/base.dockerfileif necessary - Run
bin/build_base.shto build the image- This may take up to 15 mins. I have yet to find a way to optimize this...
- Run
bin/start_container.shto start the container (by default named${IMAGE_NAME})- The
bashshell 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.
toucha 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.shto attach additional shells to the container - (optional) Use
bin/compile.shto 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