occlum/demos/sofaboot/README.md
Zheng, Qi 8cb08aac29 Update sofaboot demo with openjdk 8 option
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-12-06 13:47:27 +08:00

34 lines
527 B
Markdown

# A Simple SOFABoot usage demo
This project demonstrates how to execute an unmodified sofaboot projects with Occlum.
1. Download and build sofaboot project
* Use openjdk 8
```
./download_compile_sofaboot.sh jdk8
```
* Use openjdk 11
```
./download_compile_sofaboot.sh
```
2. Run `sofaboot sample standard web` on Occlum
* Run with openjdk 8
```
./run_sofaboot_on_occlum_jdk8.sh
```
* Run with openjdk 11
```
./run_sofaboot_on_occlum.sh
```
3. Test the web services
```
curl http://localhost:8080/actuator/versions
```