Skip to content
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

Using Docker with asyncua on arm! #1701

Open
ayham291 opened this issue Aug 28, 2024 · 0 comments
Open

Using Docker with asyncua on arm! #1701

ayham291 opened this issue Aug 28, 2024 · 0 comments

Comments

@ayham291
Copy link

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 and libeffi-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant