Skip to content

Commit

Permalink
Merge pull request #78 from ashokpariya0/update-platform-build-comments
Browse files Browse the repository at this point in the history
Add more details and examples for platform configuration
  • Loading branch information
phoracek authored Dec 12, 2024
2 parents 892ccdd + 2d933b9 commit a2c347b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ PLATFORM_LIST ?= linux/amd64,linux/s390x,linux/arm64
ARCH := $(shell uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
PLATFORMS ?= linux/${ARCH}
PLATFORMS := $(if $(filter all,$(PLATFORMS)),$(PLATFORM_LIST),$(PLATFORMS))
# Set the platforms for building a multi-platform supported image.
# Example:
# PLATFORMS ?= linux/amd64,linux/arm64,linux/s390x
# Alternatively, you can export the PLATFORMS variable like this:
# export PLATFORMS=linux/arm64,linux/s390x,linux/amd64
# or export PLATFORMS=all to automatically include all supported platforms.
# Define the platforms for building a multi-platform image.
# By default, the image will be built based on the host architecture.
# The variable PLATFORM_LIST contains a list of all supported platforms:
# PLATFORM_LIST="linux/amd64,linux/s390x,linux/arm64"
# To specify the platforms, you can do the following:
# 1. Manually set the PLATFORMS variable for specific platforms:
# export PLATFORMS=linux/amd64
# or
# export PLATFORMS=linux/amd64,linux/arm64
# 2. Or, use 'all' to automatically include all supported platforms:
# export PLATFORMS=all
DOCKER_BUILDER ?= marker-docker-builder
MARKER_IMAGE_TAGGED := ${REGISTRY}/bridge-marker:${IMAGE_TAG}
MARKER_IMAGE_GIT_TAGGED := ${REGISTRY}/bridge-marker:${IMAGE_GIT_TAG}
Expand Down

0 comments on commit a2c347b

Please sign in to comment.