Fix bigdl-llm-serving-tdx image (#9251)

This commit is contained in:
Guancheng Fu 2023-10-24 10:49:35 +08:00 committed by GitHub
parent db37edae8a
commit 9faa2f1eef

View file

@ -34,7 +34,7 @@ on:
- bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer - bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer
- bigdl-ppml-trusted-realtime-ml-scala-graphene - bigdl-ppml-trusted-realtime-ml-scala-graphene
- bigdl-ppml-trusted-realtime-ml-scala-occlum - bigdl-ppml-trusted-realtime-ml-scala-occlum
- bigdl-ppml-trusted-bigdl-llm-tdx - trusted-bigdl-llm-serving-tdx
- bigdl-ppml-trusted-fastchat-tdx - bigdl-ppml-trusted-fastchat-tdx
- bigdl-ppml-kmsutil - bigdl-ppml-kmsutil
- bigdl-ppml-pccs - bigdl-ppml-pccs
@ -202,8 +202,8 @@ jobs:
sudo docker push 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} 10.239.45.10/arda/${base_image}:${TAG} sudo docker rmi -f ${base_image}:${TAG} 10.239.45.10/arda/${base_image}:${TAG}
bigdl-ppml-trusted-bigdl-llm-tdx: trusted-bigdl-llm-serving-tdx:
if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-bigdl-llm-tdx' || github.event.inputs.artifact == 'all' }} if: ${{ github.event.inputs.artifact == 'trusted-bigdl-llm-serving-tdx' || github.event.inputs.artifact == 'all' }}
runs-on: [self-hosted, Shire] runs-on: [self-hosted, Shire]
steps: steps:
@ -213,23 +213,28 @@ jobs:
- name: docker login - name: docker login
run: | run: |
docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
- name: bigdl-ppml-trusted-bigdl-llm-tdx - name: trusted-bigdl-llm-serving-tdx
run: | run: |
echo "##############################################################" echo "##############################################################"
echo "####### bigdl-ppml-trusted-bigdl-llm-tdx ###########" echo "####### trusted-bigdl-llm-serving-tdx ###########"
echo "##############################################################" echo "##############################################################"
export image=intelanalytics/bigdl-ppml-trusted-bigdl-llm-tdx export image=intelanalytics/trusted-bigdl-llm-serving-tdx
cd ppml/tdx/docker/trusted-bigdl-llm/ export base_image=intelanalytics/bigdl-llm-serving-cpu
docker pull ${base_image}:${TAG}
cd ppml/tdx/docker/trusted-bigdl-llm/serving/docker
sudo docker build \ sudo docker build \
--no-cache=true \ --no-cache=true \
--build-arg http_proxy=${HTTP_PROXY} \ --build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} \ --build-arg https_proxy=${HTTPS_PROXY} \
--build-arg BASE_IMAGE_NAME=${base_image} \
--build-arg BASE_IMAGE_TAG=${TAG} \
--build-arg no_proxy=${NO_PROXY} \ --build-arg no_proxy=${NO_PROXY} \
-t ${image}:${TAG} -f ./Dockerfile . -t ${image}:${TAG} -f ./Dockerfile .
sudo docker push ${image}:${TAG} sudo docker push ${image}:${TAG}
sudo docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} sudo docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG}
sudo docker push 10.239.45.10/arda/${image}:${TAG} sudo docker push 10.239.45.10/arda/${image}:${TAG}
sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG}
sudo docker rmi -f ${base_image}:${TAG}
bigdl-ppml-trusted-fastchat-tdx: bigdl-ppml-trusted-fastchat-tdx:
if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-fastchat-tdx' || github.event.inputs.artifact == 'all' }} if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-fastchat-tdx' || github.event.inputs.artifact == 'all' }}