[PPML] Add occlum manually customer image action build (#6588)
* fix no word '\' * add manually customer image build action * update build path
This commit is contained in:
parent
da7d065495
commit
348c6aa092
2 changed files with 40 additions and 1 deletions
39
.github/workflows/manually_build.yml
vendored
39
.github/workflows/manually_build.yml
vendored
|
|
@ -18,6 +18,7 @@ on:
|
|||
- bigdl-ppml-trusted-big-data-ml-python-graphene
|
||||
- bigdl-ppml-trusted-big-data-ml-scala-occlum
|
||||
- bigdl-ppml-trusted-big-data-ml-scala-occlum-production
|
||||
- bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer
|
||||
- bigdl-ppml-trusted-realtime-ml-scala-graphene
|
||||
- bigdl-ppml-trusted-realtime-ml-scala-occlum
|
||||
- bigdl-ppml-kmsutil
|
||||
|
|
@ -521,6 +522,44 @@ jobs:
|
|||
docker push 10.239.45.10/arda/${final_name}
|
||||
docker rmi -f ${final_name}
|
||||
|
||||
bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer:
|
||||
if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer' || github.event.inputs.artifact == 'all' }}
|
||||
runs-on: [ self-hosted, Shire ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: docker login
|
||||
run: |
|
||||
docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
|
||||
- name: bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer
|
||||
run: |
|
||||
echo "########################################"
|
||||
echo "####### big-data-ml-scala-occlum-production-customer ######"
|
||||
echo "########################################"
|
||||
cd ppml/trusted-big-data-ml/scala/docker-occlum
|
||||
export image=intelanalytics/bigdl-ppml-trusted-big-data-ml-scala-occlum-production
|
||||
export image_customer=${image}-customer
|
||||
pwd
|
||||
docker build \
|
||||
--no-cache=true \
|
||||
--build-arg http_proxy=${HTTP_PROXY} \
|
||||
--build-arg https_proxy=${HTTPS_PROXY} \
|
||||
--build-arg HTTP_PROXY_HOST=${HTTP_PROXY_HOST_2} \
|
||||
--build-arg HTTP_PROXY_PORT=${HTTP_PROXY_PORT_2} \
|
||||
--build-arg HTTPS_PROXY_HOST=${HTTP_PROXY_HOST_2} \
|
||||
--build-arg HTTPS_PROXY_PORT=${HTTP_PROXY_PORT_3} \
|
||||
--build-arg JDK_VERSION=8u192 \
|
||||
--build-arg JDK_URL=${JDK_URL} \
|
||||
--build-arg no_proxy=${NO_PROXY} \
|
||||
--build-arg FINAL_NAME=${image}:${TAG} \
|
||||
--build-arg SPARK_JAR_REPO_URL=${SPARK_JAR_REPO_URL} \
|
||||
-t ${image_customer}:${TAG} -f ./production/customer/Dockerfile .
|
||||
pwd
|
||||
sudo docker push ${image_customer}:${TAG}
|
||||
docker tag ${image_customer}:${TAG} 10.239.45.10/arda/${image_customer}:${TAG}
|
||||
docker push 10.239.45.10/arda/${image_customer}:${TAG}
|
||||
docker rmi -f ${image_customer}:${TAG}
|
||||
|
||||
|
||||
bigdl-ppml-trusted-realtime-ml-scala-graphene:
|
||||
if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-realtime-ml-scala-graphene' || github.event.inputs.artifact == 'all' }}
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ jobs:
|
|||
--build-arg JDK_VERSION=8u192 \
|
||||
--build-arg JDK_URL=${JDK_URL} \
|
||||
--build-arg no_proxy=${NO_PROXY} \
|
||||
--build-arg FINAL_NAME=${image}:${TAG}
|
||||
--build-arg FINAL_NAME=${image}:${TAG} \
|
||||
--build-arg SPARK_JAR_REPO_URL=${SPARK_JAR_REPO_URL} \
|
||||
-t ${image_customer}:${TAG} -f ./production/customer/Dockerfile .
|
||||
pwd
|
||||
|
|
|
|||
Loading…
Reference in a new issue