Update grpc demo with bom file
This commit is contained in:
parent
c5c91baf84
commit
8a6b44a68c
7
demos/grpc/grpc_client.yaml
Normal file
7
demos/grpc/grpc_client.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
includes:
|
||||||
|
- base.yaml
|
||||||
|
targets:
|
||||||
|
- target: /bin/
|
||||||
|
copy:
|
||||||
|
- files:
|
||||||
|
- ../greeter_client
|
7
demos/grpc/grpc_server.yaml
Normal file
7
demos/grpc/grpc_server.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
includes:
|
||||||
|
- base.yaml
|
||||||
|
targets:
|
||||||
|
- target: /bin/
|
||||||
|
copy:
|
||||||
|
- files:
|
||||||
|
- ../greeter_server
|
@ -23,18 +23,10 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p image/etc
|
rm -rf image && \
|
||||||
cp ../greeter_client image/bin
|
copy_bom -f ../grpc_client.yaml --root image --include-dir /opt/occlum/etc/template && \
|
||||||
cp $INSTALL_DIR/lib/libprotobuf.so.3.10.0.0 image/lib
|
|
||||||
cp $INSTALL_DIR/lib/libcares.so.2 image/lib
|
|
||||||
cp $INSTALL_DIR/lib/libz.so.1 image/lib
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "libraries copied failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
occlum build
|
occlum build
|
||||||
|
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "occlum build failed"
|
echo "occlum build failed"
|
||||||
|
@ -22,18 +22,10 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p image/etc
|
rm -rf image && \
|
||||||
cp ../greeter_server image/bin
|
copy_bom -f ../grpc_server.yaml --root image --include-dir /opt/occlum/etc/template && \
|
||||||
cp $INSTALL_DIR/lib/libprotobuf.so.3.10.0.0 image/lib
|
|
||||||
cp $INSTALL_DIR/lib/libcares.so.2 image/lib
|
|
||||||
cp $INSTALL_DIR/lib/libz.so.1 image/lib
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "libraries copied failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
occlum build
|
occlum build
|
||||||
|
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "occlum build failed"
|
echo "occlum build failed"
|
||||||
|
Loading…
Reference in New Issue
Block a user