From 5605643808b2d67c8c37dbb7e3ea45a1a49b7569 Mon Sep 17 00:00:00 2001 From: cyjseagull Date: Thu, 12 Dec 2024 23:51:26 +0800 Subject: [PATCH] fix model docker --- cpp/wedpr-transport/sdk-wrapper/python/bindings/MANIFEST.in | 3 ++- cpp/wedpr-transport/sdk-wrapper/python/bindings/setup.py | 2 +- docker-files/model/model/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cpp/wedpr-transport/sdk-wrapper/python/bindings/MANIFEST.in b/cpp/wedpr-transport/sdk-wrapper/python/bindings/MANIFEST.in index 98b18675..6a66305f 100644 --- a/cpp/wedpr-transport/sdk-wrapper/python/bindings/MANIFEST.in +++ b/cpp/wedpr-transport/sdk-wrapper/python/bindings/MANIFEST.in @@ -1,3 +1,4 @@ include CHANGELOG.md include *requirements.txt -include ./wedpr_python_gateway_sdk/libs/libwedpr_python_transport* +include wedpr_python_gateway_sdk/libs/libwedpr_python_transport.dylib +include wedpr_python_gateway_sdk/libs/libwedpr_python_transport.so diff --git a/cpp/wedpr-transport/sdk-wrapper/python/bindings/setup.py b/cpp/wedpr-transport/sdk-wrapper/python/bindings/setup.py index 26bb7c2c..f6682772 100644 --- a/cpp/wedpr-transport/sdk-wrapper/python/bindings/setup.py +++ b/cpp/wedpr-transport/sdk-wrapper/python/bindings/setup.py @@ -20,7 +20,7 @@ def run(self): setup_args = dict( name='wedpr-python-gateway-sdk', packages=find_packages(), - version="3.0.0-20241018", + version="3.0.0-20241019", description="wedpr-python-gateway-sdk: The gateway sdk for WeDPR", long_description_content_type="text/markdown", author="WeDPR Development Team", diff --git a/docker-files/model/model/Dockerfile b/docker-files/model/model/Dockerfile index 9d6a044b..82afab89 100644 --- a/docker-files/model/model/Dockerfile +++ b/docker-files/model/model/Dockerfile @@ -12,7 +12,7 @@ ENV DEBIAN_FRONTEND=noninteractive \ # install the gateway sdk # TODO: replace with pypip -RUN pip install -i https://test.pypi.org/simple/ wedpr-python-gateway-sdk +RUN pip install --no-cache-dir -i https://test.pypi.org/simple/ wedpr-python-gateway-sdk # obtain the source, no need to fetch the submodule(vcpkg) here RUN git clone https://github.com/WeBankBlockchain/WeDPR-Component.git -b ${SOURCE} @@ -26,4 +26,4 @@ RUN mkdir -p /data/home/wedpr/wedpr-model/ \ # clear the WeDPR-Component RUN rm -rf /data/home/wedpr/WeDPR-Component -ENTRYPOINT ["/bin/bash", "/data/home/wedpr/wedpr-model/start.sh", "true"] +ENTRYPOINT ["python", "-u", "/data/home/wedpr/wedpr-model/ppc_model/ppc_model_app.py"]