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."
#2810
Open
1 of 3 tasks
CTGUMARK opened this issue
Nov 22, 2024
· 1 comment
Contributing guidelines
I've found a bug and checked that ...
Description
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
Expected behaviour
Compile speed improvement
Actual behaviour
Compilation based on qeum took 8 hours Compilation based on x86 took 1 hour
Buildx version
github.com/docker/buildx v0.11.2 9872040
Docker info
Builders list
Configuration
Dockfile:
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
Build logs
Additional info
No response
The text was updated successfully, but these errors were encountered: