[Chapel Merge] Add overrideable variables for Docker test script params

Branch: refs/heads/main
Revision: 48ca30718ccc198ba8a66abe25991a8bd7f18c3f
Author: arifthpe
Link: Add overrideable variables for Docker test script params by arifthpe · Pull Request #28774 · chapel-lang/chapel · GitHub
Log Message:
Add overrideable variables for Docker test script params (#28774)

Add several variables in util/cron/test-docker.bash for controlling
build parameters, which may be set before running the script to override
defaults.

Variables:

  • DOCKER_BUILD_MAKE_THREADS (default 2) (already existed, made
    overrideable)
  • DOCKER_BUILD_PLATFORMS (default linux/amd64,linux/arm64)
  • DOCKER_IMAGE_NAMESPACE (default chapel)

These are not currently used in our scripting, but I found them useful
for quick local testing, e.g.:

# Use all cores
export DOCKER_BUILD_MAKE_THREADS=8
# Only build my machine's native arch
export DOCKER_BUILD_PLATFORMS=linux/arm64
# Place these test images in a different namespace (and Dockerhub repo) than the official one.
export DOCKER_IMAGE_NAMESPACE=arifthpe

[trivial, not reviewed]

Testing:

  • local run succeeds

Compare: Comparing ed33d7db8f4a3fe4f19d6f0b320acf4e21d04f3c...2e5b9d326726858b029d431863a30a0bcf7e5666 · chapel-lang/chapel · GitHub

Diff:
M util/cron/test-docker.bash
https://github.com/chapel-lang/chapel/pull/28774.diff