Update sofaboot demos with copy_bom
This commit is contained in:
parent
a0453f1262
commit
cdb4ac560f
@ -29,11 +29,8 @@ init_instance() {
|
||||
|
||||
build_sofa() {
|
||||
# Copy JVM and JAR file into Occlum instance and build
|
||||
mkdir -p image/usr/lib/jvm
|
||||
cp -r /opt/occlum/toolchains/jvm/java-11-alibaba-dragonwell image/usr/lib/jvm
|
||||
cp /usr/local/occlum/x86_64-linux-musl/lib/libz.so.1 image/lib
|
||||
mkdir -p image/usr/lib/spring
|
||||
cp ../${jar_path} image/usr/lib/spring/
|
||||
rm -rf image
|
||||
copy_bom -f ../sofaboot.yaml --root image --include-dir /opt/occlum/etc/template
|
||||
occlum build
|
||||
}
|
||||
|
||||
|
9
demos/sofaboot/sofaboot.yaml
Normal file
9
demos/sofaboot/sofaboot.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
includes:
|
||||
- base.yaml
|
||||
- java-11-alibaba-dragonwell.yaml
|
||||
targets:
|
||||
# copy sofaboot jar
|
||||
- target: /usr/lib/spring
|
||||
copy:
|
||||
- files:
|
||||
- ../sofa-boot-guides/sofaboot-sample-standard/target/boot/sofaboot-sample-standard-web-0.0.1-SNAPSHOT-executable.jar
|
Loading…
Reference in New Issue
Block a user