From a9c3c18108ecaca4cbb3a7dcc40c923b52e977c2 Mon Sep 17 00:00:00 2001 From: Wang Jian <61138589+hzjane@users.noreply.github.com> Date: Fri, 11 Nov 2022 14:12:42 +0800 Subject: [PATCH] [PPML] Split occlum build and run for production (#6522) * add mount.sh to mount k8s runtime config * add mount conf and mkdir mount path * run.sh init * entrypoint bash mount * init bash add_conf.sh * init dockerfile * dockerfile add ../file * add mount.sh and add_conf.sh to dockerfile * move register and attest * docker and k8s mount and attest * occlum-build.sh init * update default name * default attest and enable sgx debug * add move files * change ../ tp . * Revert "no" This reverts commit bd09e193e47c2ed72b10299126df5bcc7784f3da. * update build image dir * update build spell * -it to -i * update production manually build * update manually push image name * update register error message --- .github/workflows/manually_build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index 13a69a39..ef582aa7 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -492,7 +492,7 @@ jobs: echo "########################################" echo "####### big-data-ml-scala-occlum-production ######" echo "########################################" - cd ppml/trusted-big-data-ml/scala/docker-occlum/production + cd ppml/trusted-big-data-ml/scala/docker-occlum export image=intelanalytics/bigdl-ppml-trusted-big-data-ml-scala-occlum-production pwd docker build \ @@ -507,11 +507,17 @@ jobs: --build-arg JDK_URL=${JDK_URL} \ --build-arg no_proxy=${NO_PROXY} \ --build-arg SPARK_JAR_REPO_URL=${SPARK_JAR_REPO_URL} \ - -t ${image}:${TAG} -f ./Dockerfile . - sudo docker push ${image}:${TAG} - docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} - docker push 10.239.45.10/arda/${image}:${TAG} - docker rmi -f ${image}:${TAG} + -t ${image}:${TAG} -f ./production/Dockerfile . + pwd + cd /home/arda/github-action-runner/actions-runner/_work/BigDL/BigDL/ppml/trusted-big-data-ml/scala/docker-occlum + export image_name=${image}:${TAG} + export final_name=${image_name}-build + export container_name=${TAG}-container + bash ./production/occlum-build.sh -c $container_name -i $image_name -f $final_name + sudo docker push ${final_name} + docker tag ${final_name} 10.239.45.10/arda/${final_name} + docker push 10.239.45.10/arda/${final_name} + docker rmi -f ${final_name} bigdl-ppml-trusted-realtime-ml-scala-graphene: