Can you just increase swap?Device: Raspberry Pi 4B (linux/arm64/v8)
OS: Ubuntu 20.04 LTS - 4GB RAM & 64 GB SD card
TLDRI want to build this docker image https://github.com/HKUST-Aerial-Roboti ... ockerfile for my autonomous drone project https://github.com/MichaelThamm/autonomous-drone and run it which is most efficient within the Pi itself but given the limited RAM on my Pi I get OOM half way through. I then tried to build the docker image on my stronger devices to push and pull from DockerHub to my Pi but these devices are AMD architecture so it didn't work. However, the build completed and took 12GB of RAM at peak meaning my Pi 4B can not manage this build.
- What can I do to build the image on my Pi without OOM?
- Can I emulate a build from one of my AMD devices to build as ARM architecture for the Pi 4B to pull from DockerHub?
What I tried:I still get OOM due to RAM usage.Code:
nice -10 docker build DH_USER/autonomous-drone:vins-fusion .
at around 41% complete, I get a c++: internal compiler error: Killed (program cc1plus)Code:
docker buildx build --platform linux/arm64 -t DH_USER/autonomous-drone:vins-fusion .
Statistics: Posted by ejolson — Tue Mar 05, 2024 5:30 am