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

Build Podman/Docker image with Rust compiler on aarch64 #36

Closed
georgik opened this issue Feb 9, 2022 · 1 comment · Fixed by #37
Closed

Build Podman/Docker image with Rust compiler on aarch64 #36

georgik opened this issue Feb 9, 2022 · 1 comment · Fixed by #37
Assignees
Labels
Milestone

Comments

@georgik
Copy link
Collaborator

georgik commented Feb 9, 2022

Podman/Docker image is available only for x86_64 - docker.io/espressif/idf-rust-examples
Documentation how to use: https://github.com/esp-rs/rust-build/#rust-with-podman-or-docker
Add a version for aarch64, so that servers with these architectures can be used to build the software

@georgik georgik added the CI label Feb 9, 2022
@georgik georgik added this to the v1.59 milestone Feb 9, 2022
@georgik georgik self-assigned this Feb 9, 2022
@georgik
Copy link
Collaborator Author

georgik commented Feb 11, 2022

Containerfile with linux-aarch64 support https://github.com/esp-rs/rust-build/blob/feature/esp-rs-rust-image-aarch64/support/esp-rs-rust/Containerfile

How to build:

git clone https://github.com/esp-rs/rust-build/
cd rust-build
git checkout feature/esp-rs-rust-image-aarch64
podman build -f support/esp-rs-rust/Containerfile -t esp-rs-rust .

How to run the build manually:

podman run -it esp-rs-rust /bin/bash
cd rust-example
cd rust-project
cargo build --features "native"

@georgik georgik closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant