Update bazel demo with bom file
This commit is contained in:
		
							parent
							
								
									c6dc8c807c
								
							
						
					
					
						commit
						c5c91baf84
					
				
							
								
								
									
										4
									
								
								.github/workflows/demo_test.yml
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										4
									
								
								.github/workflows/demo_test.yml
									
									
									
									
										vendored
									
									
								
							| @ -171,8 +171,8 @@ jobs: | ||||
| 
 | ||||
|     - name: Test bazel | ||||
|       run: docker exec hello_bazel_test bash -c "cd /root/occlum/demos/hello_bazel && occlum new occlum_instance; | ||||
|             cp examples/cpp-tutorial/stage3/bazel-bin/main/hello-world occlum_instance/image/bin; | ||||
|             cd occlum_instance && SGX_MODE=SIM occlum build; | ||||
|             cd occlum_instance && rm -rf image && copy_bom -f ../bazel.yaml --root image --include-dir /opt/occlum/etc/template; | ||||
|             SGX_MODE=SIM occlum build; | ||||
|             occlum run /bin/hello-world" | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										7
									
								
								demos/hello_bazel/bazel.yaml
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										7
									
								
								demos/hello_bazel/bazel.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| includes: | ||||
|   - base.yaml | ||||
| targets: | ||||
|   - target: /bin | ||||
|     copy: | ||||
|       - files: | ||||
|         - ../examples/cpp-tutorial/stage3/bazel-bin/main/hello-world | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user