nextcloud / nextcloud/notify_push
Dockerfile arm64v8 build failure, ekidd/rust-musl-builder only available for amd64
Open
Nobody has claimed this yet.
question
- Dominant language
- Rust
- Stars
- 344
- Forks
- 64
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
I cannot build the Dockerfile for arm64v8, because the build image ekidd/rust-musl-builder is only available for amd64, which results in the error
Step 2/12 : COPY Cargo.toml Cargo.lock ./
---> b9d4cde0e234
Step 3/12 : RUN mkdir src && sudo chown -R rust:rust . && sed -i '/test_client/d' Cargo.toml && echo "fn main(){}" > src/main.rs && cargo build --release && rm -r src
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in 8a0c42a64453
standard_init_linux.go:228: exec user process caused: exec format error
The command '/bin/sh -c mkdir src && sudo chown -R rust:rust . && sed -i '/test_client/d' Cargo.toml && echo "fn main(){}" > src/main.rs && cargo build --release && rm -r src' returned a non-zero code: 1
Does someone know of an equivalent image to ekidd/rust-musl-builder that is available on arm platforms and that can replace it?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the repository's Dockerfile and inspect the build-image reference used for the Rust build. Check whether an equivalent image supports linux/arm64/v8, then verify that the Dockerfile builds successfully on that platform without the reported exec format error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, rust
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100