Skip to content

Commit ba32cfc

Browse files
author
Nikhil Raverkar
committed
upgrading pyarrow to fix the numpy 1.21.0 broken changes
1 parent 5780bd9 commit ba32cfc

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docker/0.23-1/base/Dockerfile.cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG MINICONDA_VERSION=4.8.3
77
ARG CONDA_PY_VERSION=37
88
ARG CONDA_PKG_VERSION=4.9.0
99
ARG PYTHON_VERSION=3.7.10
10-
ARG PYARROW_VERSION=0.16.0
10+
ARG PYARROW_VERSION=3.0.0
1111
ARG MLIO_VERSION=0.6.0
1212

1313
# Install python and other scikit-learn runtime dependencies

test/integration/test_multiple_model_endpoint.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,24 @@ def modulevolume():
5555

5656
@pytest.fixture(scope='module', autouse=True)
5757
def container(request, docker_base_name, tag):
58+
module_dir = os.path.join(resource_path, 'module')
59+
model_dir = os.path.join(resource_path, 'models')
60+
5861
test_name = 'sagemaker-sklearn-serving-test'
5962
try:
6063
command = (
6164
'docker run --name {} -p 8080:8080'
62-
' --mount type=volume,source=dynamic_endpoint_model_volume,target=/opt/ml/model,readonly'
63-
' --mount type=volume,source=dynamic_endpoint_module_volume,target=/user_module,readonly'
65+
# ' --mount type=volume,source=dynamic_endpoint_model_volume,target=/opt/ml/model,readonly'
66+
# ' --mount type=volume,source=dynamic_endpoint_module_volume,target=/user_module,readonly'
67+
' -v {}:/opt/ml/model'
68+
' -v {}:/user_module'
6469
' -e SAGEMAKER_BIND_TO_PORT=8080'
6570
' -e SAGEMAKER_SAFE_PORT_RANGE=9000-9999'
6671
' -e SAGEMAKER_MULTI_MODEL=true'
6772
' -e SAGEMAKER_PROGRAM={}'
6873
' -e SAGEMAKER_SUBMIT_DIRECTORY={}'
6974
' {}:{} serve'
70-
).format(test_name, 'script.py', "/user_module/user_code.tar.gz", docker_base_name, tag)
75+
).format(test_name, model_dir, module_dir, 'script.py', "/user_module/user_code.tar.gz", docker_base_name, tag)
7176

7277
proc = subprocess.Popen(command.split(), stdout=sys.stdout, stderr=subprocess.STDOUT)
7378

0 commit comments

Comments
 (0)