Build Racing-stack with Docker and VS Code
Build Racing-stack with Docker and VS Code
This guide summarizes how to build and run UNICORN Racing-stack using Docker and VS Code.
1. Install Docker
To use Docker without sudo, add your user to the docker group.
2. Repository clone
1
2
mkdir ~/unicorn_ws && cd ~/unicorn_ws
mkdir -p cache/noetic/build cache/noetic/devel cache/noetic/logs
1
git clone --recurse-submodules https://github.com/HMCL-UNIST/UNICORN.git && cd UNICORN
3. Build Docker containers
1
docker compose build base_x86
1
2
export UID=$(id -u)
export GID=$(id -g)
1
docker compose build nuc
4. Rebuild in VS Code
1
code ~/unicorn_ws/UNICORN
In VS Code, run Dev Containers: Rebuild and Reopen in Container.
You will enter the Docker container automatically and can inspect the Racing-stack from VS Code. (The Remote Development extension must be installed in advance via the VS Code Extensions tab.)
Conclusion
- We unify the development environment using Docker to reduce dependency issues.
- We improve development efficiency using VS Code Dev Containers.
- We manage the Racing-stack in a reproducible and consistent manner.
Acknowledgement
This is based on the ForzaETH open-source race_stack codebase.
This post is licensed under CC BY 4.0 by the author.
