[ci] Update pccs configuration

This commit is contained in:
zhubojun 2022-06-21 21:09:24 +08:00 committed by Zongmin.Gu
parent 23737236ed
commit b283b07219
3 changed files with 4 additions and 3 deletions

@ -40,7 +40,8 @@ runs:
shell: bash shell: bash
- name: Update PCCS server - name: Update PCCS server
run: docker exec ${{ env.CONTAINER_NAME }} bash -c "sed -r -i 's/PCCS_URL=https:\/\/localhost:8081\/sgx\/certification\/v3\//PCCS_URL=https:\/\/sgx-dcap-server.cn-shanghai.aliyuncs.com\/sgx\/certification\/v3\//g' /etc/sgx_default_qcnl.conf" run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "sed -r -i 's/\"pccs_url\": \"https:\/\/localhost:8081\/sgx\/certification\/v3\/\"/\"pccs_url\": \"https:\/\/sgx-dcap-server.cn-shanghai.aliyuncs.com\/sgx\/certification\/v3\/\"/g' /etc/sgx_default_qcnl.conf"
shell: bash shell: bash
# - name: Change download source of crates.io # - name: Change download source of crates.io

@ -9,6 +9,6 @@ else
fi fi
pip3 install --upgrade pip pip3 install --upgrade pip
pip3 install --upgrade tensorflow==2.4 pip3 install --upgrade tensorflow==2.4 protobuf==3.19.2
./download_model.sh ./download_model.sh
python3 ./model_graph_to_saved_model.py --import_path ./models/resnet50-v15-fp32/resnet50-v15-fp32.pb --export_dir ./resnet50-v15-fp32 --model_version 1 --inputs input --outputs predict python3 ./model_graph_to_saved_model.py --import_path ./models/resnet50-v15-fp32/resnet50-v15-fp32.pb --export_dir ./resnet50-v15-fp32 --model_version 1 --inputs input --outputs predict

@ -10,7 +10,7 @@ COPY --from=binary_build /root/tensorflow_model_server /root/tensorflow_model_se
ARG OCCLUM_BRANCH ARG OCCLUM_BRANCH
RUN apt-get update && apt-get install git && \ RUN apt-get update && apt-get install git && \
git clone -b $OCCLUM_BRANCH git://github.com/occlum/occlum.git && \ git clone -b $OCCLUM_BRANCH https://github.com/occlum/occlum.git && \
cd occlum && \ cd occlum && \
cd demos/tensorflow/tensorflow_serving && \ cd demos/tensorflow/tensorflow_serving && \
./prepare_model_and_env.sh && \ ./prepare_model_and_env.sh && \