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(default2) (already existed, made
overrideable)DOCKER_BUILD_PLATFORMS(defaultlinux/amd64,linux/arm64)DOCKER_IMAGE_NAMESPACE(defaultchapel)
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
Diff:
M util/cron/test-docker.bash
https://github.com/chapel-lang/chapel/pull/28774.diff