Add ARM64 & ARM32v7 build support#10
Open
transilluminate wants to merge 1 commit into
Open
Conversation
Add ARM64 & ARM32v7 build support
|
Doesn't work for me (RPi 4, Debian 11): $ docker build --no-cache -t ping-exporter .
Sending build context to Docker daemon 134.1kB
Step 1/27 : FROM --platform=linux/amd64 ekidd/rust-musl-builder:1.36.0 as builder
---> 199e6dcf7c1c
Step 2/27 : COPY Cargo.toml Makefile ./
---> bd8365f2270a
Step 3/27 : COPY src/ ./src/
---> 89d8945bffb2
Step 4/27 : RUN make
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
---> Running in 51f706c56215
exec /bin/sh: exec format error
The command '/bin/sh -c make' returned a non-zero code: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested working on Raspberry Pi 4 (Debian 12.4)
Linux 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux$ docker build -t ping-exporter .$ docker run -d -p 9346:9346 --name=ping-exporter ping-exporter$ curl http://localhost:9346/ping?target=1.1.1.1Nice :)