Using Docker with asyncua on arm!
ayham291 opened this issue · 0 comments
ayham291 commented
I encountered an issue with asyncua when installing in a Docker environment on arm devices (Raspberrypi 4/5).
The issue is not exactly related to asyncua, but rather cryptography
because it gets compiled in rust.
The issue occurs on debian images. So here I provided a basic Dockerfile, which should work with all versions from cryptography
.
Reasons:
- you need to have rust toolchain installed and not only cargo
- you need to have
libssl-dev
andlibeffi-dev
installed - when rust compiles
cryptography
it looks for the openssl libraries with pkg-config so you need it too
FROM debian:bookworm-slim
RUN apt update
RUN apt install curl python3.11 python3-pip libffi-dev libssl-dev pkg-config -y
RUN curl -L sh.rustup.rs | sh -s -- -y
RUN PATH="/root/.cargo/bin:${PATH}" pip install asyncua --break-system-packages
related issues:
here is what it would like if you only install cargo:
rust-lang/rust#64248