From 6624bd1c2cf10fe3875e004d196dfc06b897ca2c Mon Sep 17 00:00:00 2001 From: Guancheng Fu <110874468+gc-fu@users.noreply.github.com> Date: Wed, 19 Oct 2022 13:48:11 +0800 Subject: [PATCH] [PPML WORKFLOW] Add build script for bigdl-ppml-gramine-base image (#6191) * Add build script for bigdl-ppml-gramine-base image * Remove image at last --- .github/workflows/manually_build.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index 2edff7c0..3e1d06e4 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -10,6 +10,7 @@ on: type: choice options: - all + - bigdl-ppml-gramine-base - bigdl-ppml-trusted-big-data-ml-python-gramine - bigdl-ppml-trusted-big-data-ml-python-graphene - bigdl-ppml-trusted-big-data-ml-scala-occlum @@ -32,6 +33,34 @@ permissions: packages: write jobs: + bigdl-ppml-gramine-base: + if: ${{ github.event.inputs.artifact == 'bigdl-ppml-gramine-base' || 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-gramine-base + run: | + echo "########################################" + echo "####### bigdl-ppml-gramine-base ########" + echo "########################################" + export base_image=intelanalytics/bigdl-ppml-gramine-base + cd ppml/base + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg JDK_VERSION=8u192 \ + --build-arg JDK_URL=${JDK_URL} \ + --build-arg no_proxy=${NO_PROXY} \ + -t ${base_image}:${TAG} -f ./Dockerfile . + sudo docker push ${base_image}:${TAG} + sudo docker tag ${base_image}:${TAG} 10.239.45.10/arda/${base_image}:${TAG} + sudo docker push 10.239.45.10/arda/${base_image}:${TAG} + sudo docker rmi -f ${base_image}:${TAG} bigdl-ppml-trusted-big-data-ml-python-gramine: if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-big-data-ml-python-gramine' || github.event.inputs.artifact == 'all' }}