I am not sure why, but been having tons of problems getting the docker cross compile environment setup, so I am adding this topic for anyone else that hits the same problem.
The latest version of docker from the website hangs when I run it. No suggestions I have found have helped to get past that (I tried everything). I tried version 2.5 and that didn’t work either. Version 4.5 seems to get past the problem of starting up and NOT crashing during the docker build.
The default settings of docker at 2GB size. You need to up that, especially if you set JOBS to a higher value. It was killing the Mac toolchain build because of this. I upped to 10GB and ran with just default jobs (removed JOBS from my command line) and it has made it past that point finally.
I will update this post as I continue, but wanted to get this started in case anyone else hits this and is searching for help.
Not sure why, but when I issue “make -j8 docker-plugin-build” it’s trying to call the wrong make. So I need to go fix that. If I just hook to the docker and run “make plugin-build” it built all four and they work (yay).
I would also recommend checking for any system resource limits, such as disc space, RAM, and CPU consumption since these might have an influence on the docker build performance. Also, it’s a good idea to review the docker logs and error messages for any particular difficulties or errors that might aid in locating the issue.
Please feel free to add any other suggestions or insights you may have, and best of luck with your Docker cross-compile setup!