From 13717ee5c88764076b476505bcd9ca0ffc724577 Mon Sep 17 00:00:00 2001 From: Shaojie Cui Date: Fri, 31 Mar 2023 14:02:08 +0800 Subject: [PATCH] [CICD]add noattest bigdata toolkit image (#7968) --- .github/workflows/manually_build.yml | 48 +++++++++++++++++++ .../workflows/manually_build_for_testing.yml | 48 +++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index d74d2b06..a9691e89 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -850,6 +850,54 @@ jobs: cd custom-image openssl genrsa -3 -out enclave-key.pem 3072 + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-noattest-16g + sudo docker build \ + --no-cache=true \ + --build-arg BASE_IMAGE_NAME=${bigdata_base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + --build-arg SGX_MEM_SIZE=16g \ + --build-arg SGX_LOG_LEVEL=error \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg ENABLE_DCAP_ATTESTATION=false \ + -t ${image}:${TAG} \ + -f ./Dockerfile . + sudo docker push ${bigdata_custom_image}:${TAG} + sudo docker tag ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker push 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker rmi -f ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-noattest-8g + sudo docker build \ + --no-cache=true \ + --build-arg BASE_IMAGE_NAME=${bigdata_base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + --build-arg SGX_MEM_SIZE=8g \ + --build-arg SGX_LOG_LEVEL=error \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg ENABLE_DCAP_ATTESTATION=false \ + -t ${image}:${TAG} \ + -f ./Dockerfile . + sudo docker push ${bigdata_custom_image}:${TAG} + sudo docker tag ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker push 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker rmi -f ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-noattest-4g + sudo docker build \ + --no-cache=true \ + --build-arg BASE_IMAGE_NAME=${bigdata_base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + --build-arg SGX_MEM_SIZE=4g \ + --build-arg SGX_LOG_LEVEL=error \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg ENABLE_DCAP_ATTESTATION=false \ + -t ${image}:${TAG} \ + -f ./Dockerfile . + sudo docker push ${bigdata_custom_image}:${TAG} + sudo docker tag ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker push 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker rmi -f ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-reference-16g sudo docker build \ --no-cache=true \ diff --git a/.github/workflows/manually_build_for_testing.yml b/.github/workflows/manually_build_for_testing.yml index d636a11b..97561de7 100644 --- a/.github/workflows/manually_build_for_testing.yml +++ b/.github/workflows/manually_build_for_testing.yml @@ -738,6 +738,54 @@ jobs: cd custom-image openssl genrsa -3 -out enclave-key.pem 3072 + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-noattest-16g + sudo docker build \ + --no-cache=true \ + --build-arg BASE_IMAGE_NAME=${bigdata_base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + --build-arg SGX_MEM_SIZE=16g \ + --build-arg SGX_LOG_LEVEL=error \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg ENABLE_DCAP_ATTESTATION=false \ + -t ${image}:${TAG} \ + -f ./Dockerfile . + sudo docker push ${bigdata_custom_image}:${TAG} + sudo docker tag ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker push 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker rmi -f ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-noattest-8g + sudo docker build \ + --no-cache=true \ + --build-arg BASE_IMAGE_NAME=${bigdata_base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + --build-arg SGX_MEM_SIZE=8g \ + --build-arg SGX_LOG_LEVEL=error \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg ENABLE_DCAP_ATTESTATION=false \ + -t ${image}:${TAG} \ + -f ./Dockerfile . + sudo docker push ${bigdata_custom_image}:${TAG} + sudo docker tag ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker push 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker rmi -f ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-noattest-4g + sudo docker build \ + --no-cache=true \ + --build-arg BASE_IMAGE_NAME=${bigdata_base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + --build-arg SGX_MEM_SIZE=4g \ + --build-arg SGX_LOG_LEVEL=error \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg ENABLE_DCAP_ATTESTATION=false \ + -t ${image}:${TAG} \ + -f ./Dockerfile . + sudo docker push ${bigdata_custom_image}:${TAG} + sudo docker tag ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker push 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + sudo docker rmi -f ${bigdata_custom_image}:${TAG} 10.239.45.10/arda/${bigdata_custom_image}:${TAG} + export bigdata_custom_image=intelanalytics/bigdl-ppml-trusted-bigdata-gramine-reference-16g sudo docker build \ --no-cache=true \