[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
This commit is contained in:
parent
935b272c9f
commit
a9c3c18108
1 changed files with 12 additions and 6 deletions
18
.github/workflows/manually_build.yml
vendored
18
.github/workflows/manually_build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue