Skip to content

Commit

Permalink
remove explicit setting of platform
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Feb 12, 2025
1 parent 522f993 commit 618932b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,16 @@ IMAGE_TAG_BASE ?= ghcr.io/nearnodeflash/nnf-mfu
# tools. (i.e. podman)
CONTAINER_TOOL ?= docker

# Only support linux/amd64 builds. This reduces complexity with installing
# lustre, which is an option enabled for mpifileutils.
PLATFORM ?= linux/amd64

docker-build: VERSION ?= $(shell cat .version)
docker-build: TARGET ?= production
docker-build: .version
${CONTAINER_TOOL} build --platform=$(PLATFORM) --target $(TARGET) -t $(IMAGE_TAG_BASE):$(VERSION) .
${CONTAINER_TOOL} build --target $(TARGET) -t $(IMAGE_TAG_BASE):$(VERSION) .

docker-build-debug: VERSION ?= $(shell cat .version)
docker-build-debug: TARGET ?= debug
docker-build-debug: IMAGE_TAG_BASE := $(IMAGE_TAG_BASE)-debug
docker-build-debug: .version
${CONTAINER_TOOL} build --platform=$(PLATFORM) --target $(TARGET) -t $(IMAGE_TAG_BASE):$(VERSION) .
${CONTAINER_TOOL} build --target $(TARGET) -t $(IMAGE_TAG_BASE):$(VERSION) .

docker-push: VERSION ?= $(shell cat .version)
docker-push: .version
Expand Down

0 comments on commit 618932b

Please sign in to comment.