Skip to content

[AURON #2732] support platform option in Docker build mode#2371

Open
zhaohehuhu wants to merge 1 commit into
apache:masterfrom
zhaohehuhu:dev-0702
Open

[AURON #2732] support platform option in Docker build mode#2371
zhaohehuhu wants to merge 1 commit into
apache:masterfrom
zhaohehuhu:dev-0702

Conversation

@zhaohehuhu

@zhaohehuhu zhaohehuhu commented Jul 2, 2026

Copy link
Copy Markdown

Which issue does this PR close?

Closes #2372

Rationale for this change

Docker build mode needs a way to specify the Docker platform from auron-build.sh, especially on ARM hosts where release builds may need to run as linux/amd64.

What changes are included in this PR?

as title

Are there any user-facing changes?

no

How was this patch tested?

rebuild auron with docker mode

@zhaohehuhu zhaohehuhu changed the title Support platform option in Docker build mode [AURON #2732] Support platform option in Docker build mode Jul 2, 2026
@zhaohehuhu zhaohehuhu changed the title [AURON #2732] Support platform option in Docker build mode [AURON #2732] support platform option in Docker build mode Jul 2, 2026
@wForget

wForget commented Jul 2, 2026

Copy link
Copy Markdown
Member

Docker build mode needs a way to specify the Docker platform from auron-build.sh, especially on ARM hosts where release builds may need to run as linux/amd64.

Do you mean building an amd64/x86_64 package on an arm64/aarch64 machine? I'm not sure if there will be any problems with that.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for selecting a Docker target platform when building Auron in Docker mode, which is especially useful on ARM hosts that need to build linux/amd64 artifacts.

Changes:

  • Adds a --platform option to auron-build.sh and exports it via AURON_DOCKER_PLATFORM.
  • Wires the exported platform into the Docker Compose service via the platform: field.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
dev/docker-build/docker-compose.yml Uses AURON_DOCKER_PLATFORM to set the Compose service platform (with a default).
auron-build.sh Adds --platform CLI parsing/validation and exports AURON_DOCKER_PLATFORM for Docker builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread auron-build.sh
# -----------------------------------------------------------------------------
USE_DOCKER=false
IMAGE_NAME="${SUPPORTED_OS_IMAGES[*]:0:1}"
DOCKER_PLATFORM="$DEFAULT_DOCKER_PLATFORM"
Comment thread auron-build.sh
echo " --skiptests <true|false> Skip unit tests (default: true)"
echo " --sparktests <true|false> Run spark tests (default: false)"
echo " --docker <true|false> Build in Docker environment (default: false)"
echo " --platform <PLATFORM> Docker platform to use (default: linux/amd64)"
@zhaohehuhu

Copy link
Copy Markdown
Author

Docker build mode needs a way to specify the Docker platform from auron-build.sh, especially on ARM hosts where release builds may need to run as linux/amd64.

Do you mean building an amd64/x86_64 package on an arm64/aarch64 machine? I'm not sure if there will be any problems with that.

Correct. I am trying to build an amd64 package on my local Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support platform option in Docker build mode

3 participants