mirror of
https://github.com/prometheus-community/ipmi_exporter
synced 2025-05-11 11:57:54 +00:00
fix: bring back aarch64 builds
This is a pretty trivial fix to bring back arm64 builds and this has been tested locally as well. Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
This commit is contained in:
parent
0401ab9f80
commit
d902f931c6
@ -1,6 +1,6 @@
|
||||
ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM alpine:3
|
||||
FROM --platform=${OS}/${ARCH} alpine:3
|
||||
RUN apk --no-cache add freeipmi
|
||||
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
||||
|
||||
|
3
Makefile
3
Makefile
@ -15,8 +15,7 @@
|
||||
.PHONY: all
|
||||
all: precheck style unused build test
|
||||
|
||||
#DOCKER_ARCHS ?= amd64 arm64
|
||||
DOCKER_ARCHS ?= amd64
|
||||
DOCKER_ARCHS ?= amd64 arm64
|
||||
DOCKER_IMAGE_NAME ?= ipmi-exporter
|
||||
DOCKER_REPO ?= prometheuscommunity
|
||||
|
||||
|
@ -47,7 +47,7 @@ executable in `$GOPATH/bin`:
|
||||
You can build a Docker container with the included `docker` make target:
|
||||
|
||||
make promu
|
||||
promu crossbuild -p linux/amd64
|
||||
promu crossbuild -p linux/amd64 -p linux/arm64
|
||||
make docker
|
||||
|
||||
This will not even require Go tooling on the host. See the included [docker
|
||||
|
Loading…
Reference in New Issue
Block a user