Skip to content

Apache DataFusion SQL Query Engine

ARROW-4790: [Python/Packaging] Update manylinux docker image in crossbow task

Krisztián Szűcs852c1ad67127
diff --git a/.travis.yml b/.travis.yml
index afddeea5b4..de9832a8f6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -226,9 +226,8 @@ matrix:
language: cpp
env:
- PYTHON_VERSIONS="2.7,32 3.6,16"
- - MANYLINUX1_IMAGE="quay.io/xhochy/arrow_manylinux1_x86_64_base:ARROW-4778"
before_script:
- - if [ $ARROW_CI_PYTHON_AFFECTED == "1" ]; then docker pull $MANYLINUX1_IMAGE; fi
+ - if [ $ARROW_CI_PYTHON_AFFECTED == "1" ]; then docker-compose pull python-manylinux1; fi
script:
- if [ $ARROW_CI_PYTHON_AFFECTED == "1" ]; then $TRAVIS_BUILD_DIR/ci/travis_script_manylinux.sh; fi
- name: "Java w/ OpenJDK 8"
diff --git a/ci/travis_script_manylinux.sh b/ci/travis_script_manylinux.sh
index 9f05f26e7d..fe6c10806f 100755
--- a/ci/travis_script_manylinux.sh
+++ b/ci/travis_script_manylinux.sh
@@ -47,14 +47,11 @@ for PYTHON_TUPLE in ${PYTHON_VERSIONS}; do
sudo rm -rf dist
# build the wheels
- docker run --shm-size=2g --rm \
+ docker-compose run \
-e PYARROW_PARALLEL=3 \
-e PYTHON_VERSION=$PYTHON_VERSION \
-e UNICODE_WIDTH=$UNICODE_WIDTH \
- -v $PWD:/io \
- -v $PWD/../../:/arrow \
- $MANYLINUX1_IMAGE \
- /io/build_arrow.sh
+ python-manylinux1
# create a testing conda environment
CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSION
diff --git a/dev/tasks/python-wheels/travis.linux.yml b/dev/tasks/python-wheels/travis.linux.yml
index 240c523e1c..64b9e7e0d8 100644
--- a/dev/tasks/python-wheels/travis.linux.yml
+++ b/dev/tasks/python-wheels/travis.linux.yml
@@ -38,15 +38,15 @@ script:
- mkdir -p dist
# build wheel
- - pushd arrow/python/manylinux1
- - docker run --shm-size=2g
+ - pushd arrow
+ # don't attempt to build it, because the base image by pypa is updated
+ # regularly and would cause undeterministic builds
+ - docker-compose pull python-manylinux1
+ - docker-compose run
-e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.no_rc_version }}
-e PYTHON_VERSION="{{ python_version }}"
-e UNICODE_WIDTH="{{ unicode_width }}"
- -v $PWD:/io
- -v $PWD/../../:/arrow
- quay.io/xhochy/arrow_manylinux1_x86_64_base:llvm-7-manylinux1
- /io/build_arrow.sh
+ python-manylinux1
- popd
# test on multiple distributions
diff --git a/docker-compose.yml b/docker-compose.yml
index 926e3b53ea..558106111f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -232,6 +232,30 @@ services:
dockerfile: docs/Dockerfile
volumes: *ubuntu-volumes
+ ######################### Package Builder ###################################
+
+ python-manylinux1:
+ # Usage:
+ # either build:
+ # $ docker-compose build python-manylinux1
+ # or pull:
+ # $ docker-compose pull python-manylinux1
+ # an then run:
+ # $ docker-compose run -e PYTHON_VERSION=3.7 python-manylinux1
+ image: quay.io/xhochy/arrow_manylinux1_x86_64_base:ARROW-4778
+ build:
+ context: .
+ dockerfile: python/manylinux1/Dockerfile-x86_64_base
+ shm_size: 2G
+ environment:
+ PYARROW_PARALLEL: 3
+ PYTHON_VERSION: ${PYTHON_VERSION:-3.6}
+ UNICODE_WIDTH: ${UNICODE_WIDTH:-16}
+ volumes:
+ - .:/arrow:delegated
+ - ./python/manylinux1:/io:delegated
+ command: /io/build_arrow.sh
+
######################### Integration Tests #################################
# impala: