occlum/demos/remote_attestation/init_ra_flow/run.sh

18 lines
297 B
Bash
Executable File

#!/bin/bash
set -e
GRPC_ADDR="localhost:50051"
echo "Start GRPC server on backgound ..."
pushd occlum_server
occlum run /bin/server ${GRPC_ADDR} &
popd
sleep 3
echo "Start Flask-TLS restful web portal on backgound ..."
pushd occlum_client
occlum run --config-svn 1234 /bin/rest_api.py &
popd