File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ phases:
30
30
- pip install wheel setuptools
31
31
- python setup.py bdist_wheel
32
32
- docker build -t preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3-arm64 -f docker/$FRAMEWORK_VERSION/final/Dockerfile_arm.cpu .
33
- - echo Running tox ...
33
+ - echo Running tests ...
34
34
- printf "FROM preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3-arm64\nADD . /app\nWORKDIR /app\nRUN python3 -m pip install .[test]" > Dockerfile_arm.test
35
35
- docker build -t test-sklearn -f Dockerfile_arm.test .
36
- - docker run --rm -t test-sklearn sh -c 'tox -e ALL'
36
+ - docker run --rm -t test-sklearn sh -c 'pytest --cov=sagemaker_sklearn_container --cov-fail-under=60 test/unit'
37
+ - docker run --rm -t test-sklearn sh -c 'flake8 setup.py src test'
37
38
- echo Running container tests...
38
39
- pytest test/integration --docker-base-name preprod-sklearn --tag $FRAMEWORK_VERSION-cpu-py3-arm64 --py-version 3 --framework-version $FRAMEWORK_VERSION
39
40
- docker tag preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3-arm64 515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:$FRAMEWORK_VERSION-cpu-py3-arm64
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG MINICONDA_VERSION=4.9.2 # Upgraded version
7
7
ARG CONDA_PY_VERSION=38
8
8
ARG CONDA_PKG_VERSION=4.10.1
9
9
ARG PYTHON_VERSION=3.8.13
10
- ARG PYARROW_VERSION=1.0
10
+ ARG PYARROW_VERSION=1.0.0
11
11
ARG MLIO_VERSION=arch-agnostic
12
12
13
13
# Install python and other scikit-learn runtime dependencies
Original file line number Diff line number Diff line change 1
- FROM sklearn-base:1.0-1-arm- cpu-py3
1
+ FROM sklearn-base:1.0-1-cpu-py3-arm64
2
2
ENV SAGEMAKER_SKLEARN_VERSION 1.0-1
3
3
4
4
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
@@ -49,7 +49,7 @@ ENV SM_CHECKPOINT_CONFIG_FILE $SM_INPUT/config/checkpointconfig.json
49
49
# Set SageMaker serving environment variables
50
50
ENV SM_MODEL_DIR /opt/ml/model
51
51
52
- # EXPOSE 8080
52
+ EXPOSE 8080
53
53
ENV TEMP=/home/model-server/tmp
54
54
55
55
# Required label for multi-model loading
You can’t perform that action at this time.
0 commit comments