snowzach / doods

DOODS - Dedicated Open Object Detection Service
MIT License
303 stars 31 forks source link

Can't do docker build on RPi3b #70

Closed duffyd closed 2 years ago

duffyd commented 2 years ago

After checking out this git repository on my RPi3b and running:

docker build -f Dockerfile.arm32 -t doods .

I get the following error:

Step 9/69 : RUN wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb && dpkg -i bazel_${BAZEL_VERSION}-linux-x8664.deb && rm bazel${BAZEL_VERSION}-linux-x86_64.deb ---> Running in 69f281095bc4 --2021-12-23 09:50:39-- https://github.com/bazelbuild/bazel/releases/download/2.0.0/bazel_2.0.0-linux-x86_64.deb Resolving github.com (github.com)... 13.237.44.5 Connecting to github.com (github.com)|13.237.44.5|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/20773773/b9a81e00-2267-11ea-9f82-533451d46869?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211223%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211223T095039Z&X-Amz-Expires=300&X-Amz-Signature=c5dc583c6ce6676899ecd42fd291deaee87d078af92bcff371cccdade8157dea&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=20773773&response-content-disposition=attachment%3B%20filename%3Dbazel_2.0.0-linux-x86_64.deb&response-content-type=application%2Foctet-stream [following] --2021-12-23 09:50:39-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/20773773/b9a81e00-2267-11ea-9f82-533451d46869?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211223%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211223T095039Z&X-Amz-Expires=300&X-Amz-Signature=c5dc583c6ce6676899ecd42fd291deaee87d078af92bcff371cccdade8157dea&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=20773773&response-content-disposition=attachment%3B%20filename%3Dbazel_2.0.0-linux-x86_64.deb&response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 42302076 (40M) [application/octet-stream] Saving to: 'bazel_2.0.0-linux-x86_64.deb'

0K .......... .......... .......... .......... ..........  0% 1.94
 ** removed a whole lot of output up to 100% **

2021-12-23 09:50:58 (2.24 MB/s) - 'bazel_2.0.0-linux-x86_64.deb' saved [42302076/42302076] dpkg: error processing archive bazel_2.0.0-linux-x86_64.deb (--install): package architecture (amd64) does not match system (armhf) Errors were encountered while processing: bazel_2.0.0-linux-x86_64.deb The command '/bin/sh -c wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb && dpkg -i bazel_${BAZEL_VERSION}-linux-x8664.deb && rm bazel${BAZEL_VERSION}-linux-x86_64.deb' returned a non-zero code: 1

Please also note the following info re. my RPi:

cat /proc/cpuinfo

processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 57.60 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 57.60 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

processor : 2 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 57.60 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

processor : 3 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 57.60 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5

Hardware : BCM2835 Revision : a21041 Serial : 00000000268787b5 Model : Raspberry Pi 2 Model B Rev 1.1

And also:

uname -a Linux hass 5.10.52-v7+ #1441 SMP Tue Aug 3 18:10:09 BST 2021 armv7l GNU/Linux

snowzach commented 2 years ago

Yeah, this is kind of confusing. The Raspberry Pi Dockerfile is actually designed to be run on an x86 machine. It cross compiles. I am almost done creating DOODS2 that is in python and can be compiled on a raspberry Pi.

duffyd commented 2 years ago

Yeah, this is kind of confusing. The Raspberry Pi Dockerfile is actually designed to be run on an x86 machine. It cross compiles. I am almost done creating DOODS2 that is in python and can be compiled on a raspberry Pi.

That would be awesome!!! Can't wait. I'm also a python developer so if I can be of assistance, please let me know 👍🏽

snowzach commented 2 years ago

Have a look! https://github.com/snowzach/doods2 It's completed. Going to close this ticket.