weiqingy commented on code in PR #2371:
URL: https://github.com/apache/auron/pull/2371#discussion_r3607641629
##########
auron-build.sh:
##########
@@ -165,6 +168,19 @@ while [[ $# -gt 0 ]]; do
exit 1
fi
;;
+ --platform)
+ if [[ -n "$2" && "$2" != -* ]]; then
+ DOCKER_PLATFORM="$2"
+ if [[ ! "$DOCKER_PLATFORM" =~
^[a-z0-9_.-]+/[a-z0-9_.-]+(/[a-z0-9_.-]+)?$ ]]; then
Review Comment:
Yeah, makes sense. There's no arm64 build path in these images today ā the
toolchain's pinned to x86_64 ā so `--platform` really only has the one value
for now. A couple of reasonable options come to mind, and Iām good either way:
- Drop `--platform` and lean on the compose default
(`${AURON_DOCKER_PLATFORM:-linux/amd64}`), then add the flag back once there's
more than one platform worth selecting; or
- Keep `--platform` as-is ā it already defaults to `linux/amd64` and is
exported on every `--docker` build, so leaving it off builds amd64 exactly like
today. It just stays as a discoverable knob for when a second platform shows up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]