From edef8f05ac40f51cf5dc02afdbb0de69e8bbbe47 Mon Sep 17 00:00:00 2001 From: Jin Hanyu <48324756+Hanyu-Jin@users.noreply.github.com> Date: Wed, 24 Aug 2022 23:13:20 +0800 Subject: [PATCH] Update some packages' edition (#5527) * add assembly * Enable FL Sever in SGX * Add start-fl-server.py to Docker Image * rm ppml-assebly.xml * Add start-python-fl-server-sgx.sh to Docker Image * Put start-fl-server.py into assembly * Change some packages' edition * Fix the problem of fl/start-fl-server.py Co-authored-by: Jiaming --- .../python/docker-graphene/Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ppml/trusted-big-data-ml/python/docker-graphene/Dockerfile b/ppml/trusted-big-data-ml/python/docker-graphene/Dockerfile index b0cee43a69b..8c4653e9451 100644 --- a/ppml/trusted-big-data-ml/python/docker-graphene/Dockerfile +++ b/ppml/trusted-big-data-ml/python/docker-graphene/Dockerfile @@ -165,9 +165,7 @@ RUN apt-get update --fix-missing && \ RUN wget https://raw.githubusercontent.com/intel-analytics/analytics-zoo/bigdl-2.0/docker/hyperzoo/download-bigdl.sh && \ chmod a+x ./download-bigdl.sh RUN ./download-bigdl.sh && \ - rm bigdl*.zip && \ - mkdir -p /ppml/trusted-big-data-ml/fl && \ - cp ${BIGDL_HOME}/python/start-fl-server.py /ppml/trusted-big-data-ml/fl + rm bigdl*.zip # stage.4 ppml FROM ubuntu:20.04 @@ -236,13 +234,20 @@ RUN apt-get update --fix-missing && \ apt-get install -y apt-utils vim curl nano wget unzip git tree zip && \ apt-get install -y libsm6 make build-essential && \ apt-get install -y autoconf gawk bison libcurl4-openssl-dev python3-protobuf libprotobuf-c-dev protobuf-c-compiler && \ - apt-get install -y netcat net-tools + apt-get install -y netcat net-tools && \ + mkdir -p /ppml/trusted-big-data-ml/fl + +COPY --from=bigdl /bigdl-${BIGDL_VERSION}/python/start-fl-server.py /ppml/trusted-big-data-ml/fl #python RUN apt install software-properties-common -y && \ add-apt-repository ppa:deadsnakes/ppa -y && \ apt-get install -y python3-minimal build-essential python3.7-distutils python3-apt python3.7 python3-setuptools python3-dev python3-pip libpython3.7 && \ rm /usr/bin/python3 && \ + pip install six --target=/usr/lib/python3.7/dist-packages && \ + rm -rf /usr/lib/python3/dist-packages/protobuf-3.6.1.egg-info && \ + ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5 && \ + pip install pyyaml && \ ln -s /usr/bin/python3.7 /usr/bin/python3 && \ pip3 install --upgrade pip && \ pip install setuptools==58.4.0 && \