Add build script and devcontainer configurations for VIO development

This commit is contained in:
EricX-Zhao
2026-04-25 12:16:54 +00:00
parent 10ffc327b2
commit ae3946e650
4 changed files with 189 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
services:
pc-dev-base:
# image: sim_dev:gz_harmonic
# container_name: ${PROJECT}-pc-dev
runtime: nvidia # 启用 NVIDIA GPU 支持
stdin_open: true # 保持标准输入打开
tty: true # 分配一个伪终端
privileged: true # 特权模式,允许访问所有 /dev 设备
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DISPLAY=${DISPLAY}
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- /dev/dri:/dev/dri
# - ${WORKSPACE}:/workspace
# - ${DATASET}:/dataset
- /tmp/.X11-unix:/tmp/.X11-unix
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
rk3588-dev-base:
image: rk3588_dev:jazzy
# container_name: ${PROJECT}-rk3588-dev
stdin_open: true # 保持标准输入打开
tty: true # 分配一个伪终端
# volumes:
# - ${WORKSPACE}:/workspace
+34
View File
@@ -0,0 +1,34 @@
{
"name": "VIO Dev Container",
"dockerComposeFile": [
"vio.yaml"
],
"service": "vio-dev",
"runServices": [
"vio-dev"
],
"workspaceFolder": "/workspace",
"mounts": [
"source=${localWorkspaceFolder},target=/workspace,type=bind",
"source=/mnt/d/dataset,target=/dataset,type=bind"
],
"shutdownAction": "none",
"containerEnv": {
"http_proxy": "http://host.docker.internal:7897",
"https_proxy": "http://host.docker.internal:7897",
"no_proxy": "localhost,127.0.0.1"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"llvm-vs-code-extensions.vscode-clangd",
"twxs.cmake"
]
}
},
"remoteUser": "root"
}
+8
View File
@@ -0,0 +1,8 @@
name: vio-dev
services:
vio-dev:
extends:
file: ../common.yaml
service: pc-dev-base
image: sim_dev:gz_harmonic
container_name: vio-dev-pc