Closed engineerdawood closed 2 years ago
Hi @engineerdawood, on what device do you want to build and run this container in? Is it a Raspberry Pi 4 or something similar?
Hi, @bonicim Thank You very much for replying.
I am using Jetson Xavier Nx, Nano, and Pi4 all three. I think all are the same having arm64 I'll prefer any mentioned.
I am getting following Issues:
On Nano/Xavier
Step 1/42 : ARG image_user=amd64 Step 2/42 : ARG image_repo=debian Step 3/42 : ARG image_tag=buster Step 4/42 : FROM ${image_user}/${image_repo}:${image_tag} as volttron_base buster: Pulling from amd64/debian . . . Step 18/42 : RUN set -eux; apt-get update; apt-get install -y --no-install-recommends procps gosu vim tree build-essential python3-dev python3-pip python3-setuptools python3-wheel openssl libssl-dev libevent-dev git gnupg dirmngr apt-transport-https wget curl ca-certificates libffi-dev ---> Running in 2adc820481c0 standard_init_linux.go:211: exec user process caused "exec format error" The command 'bash -c set -eux; apt-get update; apt-get install -y --no-install-recommends procps gosu vim tree build-essential python3-dev python3-pip python3-setuptools python3-wheel openssl libssl-dev libevent-dev git gnupg dirmngr apt-transport-https wget curl ca-certificates libffi-dev' returned a non-zero code: 1 ERROR: Service 'volttron1' failed to build
On Pi4
Step 1/42 : ARG image_user=amd64 Step 2/42 : ARG image_repo=debian Step 3/42 : ARG image_tag=buster Step 4/42 : FROM ${image_user}/${image_repo}:${image_tag} as volttron_base buster: Pulling from amd64/debian e22122b926a1: Pulling fs layer . . . Step 18/42 : RUN set -eux; apt-get update; apt-get install -y --no-install-recommends procps gosu vim tree build-essential python3-dev python3-pip python3-setuptools python3-wheel openssl libssl-dev libevent-dev git gnupg dirmngr apt-transport-https wget curl ca-certificates libffi-dev ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested ---> Running in 73fb6b2cf41a standard_init_linux.go:219: exec user process caused: exec format error The command 'bash -c set -eux; apt-get update; apt-get install -y --no-install-recommends procps gosu vim tree build-essential python3-dev python3-pip python3-setuptools python3-wheel openssl libssl-dev libevent-dev git gnupg dirmngr apt-transport-https wget curl ca-certificates libffi-dev' returned a non-zero code: 1 ERROR: Service 'volttron1' failed to build
Background Volttron is our backbone. Local installation and RabbiqMQ installation etc takes a lot of time and error handling. We will be installing Edge devices on buildings. If we get this Volltron running on Docker over ARM. It will be a miracle for us.
Thank You Very Much.
@engineerdawood Thanks for the detailed info. I have an Rpi4 and will attempt to replicate your error message and get back to you.
I think you should change the base image. not amd64
To expand you mean during the build you should pass the image_user flag to the built runtime? @GHYOON correct?
@engineerdawood Thanks for the detailed info. I have an Rpi4 and will attempt to replicate your error message and get back to you.
Thank You Very Much. I'll be waiting.
I was able to install it successfully on ARM and made multiple raspberry pi 4 as well. Everything worked great, the project was under NDA I don't have access to right now I can't share the solution right away. Marking as completed.
Thanks
@engineerdawood Good job making it work!! Knowing it does makes it easier to look for solutions :)
Please tell me how to run this on ARM, Thank You.