Files
devenv/cross_compile/compose.yaml
T
EricX-Zhao ec215fc2ab Add ROS 2 Jazzy and Rolling support with Dockerfiles and repository configurations
- Created ros_jazzy.repos for ROS 2 Jazzy with necessary repositories.
- Added ros_rolling.Dockerfile for building ROS 2 Rolling with a multi-stage build process.
- Introduced ros_rolling.repos for ROS 2 Rolling with updated repository versions.
- Updated CMakeLists.txt in ceres_vendor to use version 2.1.0 and modified build options.
- Adjusted package.xml in ceres_vendor to comment out unnecessary dependencies.
- Created vendor_packages.Dockerfile to build various vendor packages including Ceres, OpenCV, and PCL with optimizations for cross-compilation.
2026-04-20 18:04:41 +03:00

43 lines
1.1 KiB
YAML

#
services:
# 第一步:编译基础镜像
cc-base:
build:
context: .
dockerfile: cc_base.Dockerfile
image: cc-base:latest
# 第二步:编译针对 RK3588 的镜像
cc-toolchain:
build:
context: . # 上下文设为根目录,这样才能同时访问 rk3588 文件夹
dockerfile: ${PLATFORM}/cc_${PLATFORM}.Dockerfile
image: ${PLATFORM}/cc-toolchain:latest
depends_on:
- cc-base
# 第三步:编译最终的供应商包镜像
vendor-packages:
build:
context: .
dockerfile: vendor_packages/vendor_packages.Dockerfile
args:
CC_PLATFORM_IMAGE: ${PLATFORM}/cc-toolchain:latest
image: ${PLATFORM}/cc-vendor-packages:latest
depends_on:
- cc-toolchain
ros2:
build:
context: .
dockerfile: ros2/${ROS_DISTRO}/ros_${ROS_DISTRO}.Dockerfile
args:
ROS_DISTRO: ${ROS_DISTRO}
PLATFORM: ${PLATFORM}
CC_PLATFORM_IMAGE: ${PLATFORM}/cc-toolchain:latest
VENDOR_PACKAGES_IMAGE: ${PLATFORM}/cc-vendor-packages:latest
image: ${PLATFORM}/cc-ros-${ROS_DISTRO}:latest
depends_on:
- vendor-packages