-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker build on raspberry pi required some extra work #13
Comments
Sorry for the delay in responding. I am a bit confused about what is going on, because I am running the arm64 container and I am able to build without issues.
Can you try again and provide additional logs containing the build errors? |
Sure thing. Here's a build with the original Dockerfile:
And here's the output for a modified Dockerfile:
|
Because the python3 cryptography module wasn't available in a ready-to-go package, it needed to be compiled while building the docker image. That compile missed some requirements. I was able to build the container image, by using the following updated line in the Dockerfile:
RUN apk add py3-cryptography py3-paho-mqtt py3-pip gcc rust cargo python3-dev libffi-dev libc-dev linux-headers openssl-dev
Alternatively, I also tried adding a "pip install --upgrade pip" operation in the build (normally the way to get access to the required binary package), but that didn't help on my Raspberry.
The text was updated successfully, but these errors were encountered: