forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve PMMLServer predict performance (kubeflow#1405)
- Loading branch information
Showing
10 changed files
with
119 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
FROM openjdk:11-slim | ||
|
||
RUN apt update && apt install -y python3-minimal python3-pip && rm -rf /var/lib/apt/lists/* | ||
ARG PYTHON_VERSION=3.7 | ||
ARG CONDA_PYTHON_VERSION=3 | ||
ARG CONDA_DIR=/opt/conda | ||
|
||
# Install basic utilities | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends git wget unzip bzip2 build-essential ca-certificates && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install miniconda | ||
ENV PATH $CONDA_DIR/bin:$PATH | ||
RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda$CONDA_PYTHON_VERSION-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \ | ||
echo 'export PATH=$CONDA_DIR/bin:$PATH' > /etc/profile.d/conda.sh && \ | ||
/bin/bash /tmp/miniconda.sh -b -p $CONDA_DIR && \ | ||
rm -rf /tmp/* && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN conda install -y python=$PYTHON_VERSION | ||
|
||
COPY pmmlserver pmmlserver | ||
COPY kfserving kfserving | ||
|
||
RUN pip3 install --upgrade pip && pip3 install -e ./kfserving | ||
RUN pip3 install -e ./pmmlserver | ||
RUN pip install --upgrade pip && pip3 install -e ./kfserving | ||
RUN pip install -e ./pmmlserver | ||
COPY third_party third_party | ||
|
||
ENTRYPOINT ["python3", "-m", "pmmlserver"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
] | ||
setup( | ||
name='pmmlserver', | ||
version='0.5.0', | ||
version='0.5.1', | ||
author_email='[email protected]', | ||
license='https://github.com/kubeflow/kfserving/LICENSE', | ||
url='https://github.com/kubeflow/kfserving/python/pmmlserver', | ||
|
@@ -33,7 +33,7 @@ | |
packages=find_packages("pmmlserver"), | ||
install_requires=[ | ||
"kfserving>=0.5.1", | ||
"pypmml == 0.9.7", | ||
"jpmml-evaluator==0.5.1", | ||
], | ||
tests_require=tests_require, | ||
extras_require={'test': tests_require} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters