From d902f931c6a884082b51d676c72ba8043de499b3 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 13 Mar 2024 13:33:05 -0400 Subject: [PATCH] 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 --- Dockerfile | 2 +- Makefile | 3 +-- README.md | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 41446f6..2dd6c70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 " diff --git a/Makefile b/Makefile index 41853fa..a6ff618 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index 905a1a6..773ada7 100644 --- a/README.md +++ b/README.md @@ -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