Unverified Commit 1d95c34a authored by Matti Picus's avatar Matti Picus Committed by GitHub
Browse files

Merge pull request #468 from radarhere/docker_test_image

Use $plat when selecting default focal DOCKER_TEST_IMAGE
parents d0fdfdd4 d93b6ece
...@@ -121,19 +121,17 @@ function install_run { ...@@ -121,19 +121,17 @@ function install_run {
if [ -z "$DOCKER_TEST_IMAGE" ]; then if [ -z "$DOCKER_TEST_IMAGE" ]; then
if [ "$MB_ML_LIBC" == "musllinux" ]; then if [ "$MB_ML_LIBC" == "musllinux" ]; then
local docker_image="multibuild/alpine3.15_$plat" local docker_image="multibuild/alpine3.15_$plat"
elif [ "$plat" == i686 ]; then
local docker_image="matthewbrett/trusty:32"
else else
local bitness=$([ "$plat" == i686 ] && echo 32 || echo 64) local docker_image="multibuild/focal_$plat"
if [ "$bitness" == "32" ]; then
local docker_image="matthewbrett/trusty:$bitness"
else
local docker_image="multibuild/focal_x86_64"
fi
fi fi
else else
# aarch64 is called arm64v8 in Ubuntu local docker_image="$DOCKER_TEST_IMAGE"
local plat_subst=$([ "$plat" == aarch64 ] && echo arm64v8 || echo $plat)
local docker_image="${DOCKER_TEST_IMAGE/\{PLAT\}/$plat_subst}"
fi fi
# aarch64 is called arm64v8 in Ubuntu
local plat_subst=$([ "$plat" == aarch64 ] && echo arm64v8 || echo $plat)
docker_image="${docker_image/\{PLAT\}/$plat_subst}"
docker pull $docker_image docker pull $docker_image
docker run --rm \ docker run --rm \
-e PYTHON_VERSION="$MB_PYTHON_VERSION" \ -e PYTHON_VERSION="$MB_PYTHON_VERSION" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment