- docker
- VS-Code
- Dev Container Extension
- Clone the Repo on the level of your workspace root (next to the src folder)
git clone git@github.com:autonohm/.devcontainer.git- Switch to the branch with the desired Version
cd .devcontainer
git switch <branch_name>-
Change the
UIDandGIDEnvironment variables at the top of the Dockerfileto the ones of your user (check withidcommand) -
Open the workspace root as Folder in VS-Code. A Popup should appear in the bottom right corner, click on 'Reopen in Container'. If the Popup does not show up, open Commands (
ctrl + shift + p) and runDev Containers: Reopen in Container(You might need to build on the first time) -
On the Host, run:
xhost +local:dockerthis grants the container access to open windows like rviz
this has to be executed every time you log in so consider adding it to startup scripts
Packages that are installed inside the container disappear after a Rebuild. So If you are looking to permanently install a package consider adding it to the Dockerfile