From b0c91bc4c60700d5fe8b93dc1995d5a564d49913 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Wed, 20 Dec 2017 07:36:03 +0300 Subject: [PATCH] Customize Docker image --- travis_linux_steps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/travis_linux_steps.sh b/travis_linux_steps.sh index 7535bf83..8e0aedd5 100644 --- a/travis_linux_steps.sh +++ b/travis_linux_steps.sh @@ -72,12 +72,14 @@ function build_multilinux { # MB_PYTHON_VERSION # UNICODE_WIDTH (optional) # BUILD_DEPENDS (optional) + # DOCKER_IMAGE (optional) # MANYLINUX_URL (optional) # WHEEL_SDIR (optional) local plat=$1 [ -z "$plat" ] && echo "plat not defined" && exit 1 local build_cmds="$2" - local docker_image=quay.io/pypa/manylinux1_$plat + local docker_image=${DOCKER_IMAGE:-quay.io/pypa/manylinux1_\$plat} + docker_image=$(eval echo "$docker_image") retry docker pull $docker_image docker run --rm \ -e BUILD_COMMANDS="$build_cmds" \