Docker build failure on arm64
cdh4u opened this issue · 1 comments
When trying to build the Docker image on an arm64 computer, the build fails because the base image is for amd64.
I tried to solve the problem is by using the 'focal-arm64' image tag instead of 'focal'. It took me a little further, but I still got errors.
First it complained by not having rights to execute ros2-setup.bash. I fixed that by moving the 'chmod +x' command further up, below the COPY ros2-setup.bash command. It again took me a little futher, but then it seems like I was running out of storage space on my host (I am running a limited memory Linux device), so I can't say for sure whether it would have solved the problem.
Hi @cdh4u - there's not much action we can take here since we don't support building for arm64, and don't have a available arm64 platforms to validate this code against. The only thing I can think to suggest is to try copying the ros2-setup.bash file to a location other than /bin
. Maybe the permissions are set differently on that directory in the focal-arm64 image.