diff --git a/demos/golang/go_sqlite/go_sqlite.yaml b/demos/golang/go_sqlite/go_sqlite.yaml new file mode 100644 index 00000000..f0f7e7b6 --- /dev/null +++ b/demos/golang/go_sqlite/go_sqlite.yaml @@ -0,0 +1,7 @@ +includes: + - base.yaml +targets: + - target: /bin + copy: + - files: + - ../simple_demo diff --git a/demos/golang/go_sqlite/run_go_sqlite_demo.sh b/demos/golang/go_sqlite/run_go_sqlite_demo.sh index 72e720cd..e92ecbd2 100755 --- a/demos/golang/go_sqlite/run_go_sqlite_demo.sh +++ b/demos/golang/go_sqlite/run_go_sqlite_demo.sh @@ -24,7 +24,8 @@ new_json="$(jq '.resource_limits.user_space_size = "2560MB" | echo "${new_json}" > Occlum.json # Copy program into Occlum Workspace and build -cp ../simple_demo image/bin +rm -rf image && \ +copy_bom -f ../go_sqlite.yaml --root image --include-dir /opt/occlum/etc/template && \ occlum build # Run the Golang SQLite demo