You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using buildx to build an ARM-based Ubuntu image, running it on an x86 environment with QEMU, and then entering the container to compile C++ code results in a speed that is 8 times slower than the normal x86-based image."
Dockfile:
基于 ARM 架构 ROS 基础镜像
FROM --platform=linux/arm64 arm64v8/ros:humble-ros-base-jammy
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using buildx to build an ARM-based Ubuntu image, running it on an x86 environment with QEMU, and then entering the container to compile C++ code results in a speed that is 8 times slower than the normal x86-based image."
Dockfile:
基于 ARM 架构 ROS 基础镜像
FROM --platform=linux/arm64 arm64v8/ros:humble-ros-base-jammy
添加镜像信息
LABEL author="Wuxi"
LABEL release-date="2024-11-19"
LABEL base-docker="arm64v8/ros:humble-ros-base-jammy"
安装必要软件和依赖
RUN apt-get update && apt-get install -y curl gnupg2 &&
curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add - &&
echo "deb [arch=$(dpkg --print-architecture)] https://repo.huaweicloud.com/ros2/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null &&
apt-get install -y vim iputils-ping net-tools ros-humble-rmw-cyclonedds-cpp &&
echo 'export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp' >> /root/.bashrc &&
echo 'source /opt/ros/humble/setup.bash' >> /root/.bashrc
docker buildx build --platform linux/arm64 -t arm64v8/ros:humble-ros-development .
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker run -it --platform linux/arm64 --network=host --restart=always --name cross_compiling_ws --privileged
-v /home/wu/cross_compiling_ws:/home/wu/cross_compiling_ws
amd64/humble_develop:v0.0 /bin/bash
Beta Was this translation helpful? Give feedback.
All reactions