modify demos after implementing autodep for copydirs

This commit is contained in:
jianfengjiang 2021-09-23 18:27:17 +08:00 committed by Zongmin.Gu
parent f0793b0d30
commit 54bc08d094
6 changed files with 12 additions and 35 deletions

12
demos/flink/README.md Normal file

@ -0,0 +1,12 @@
1. Run the flink jobmanager
./run_flink_jobmanager_on_host.sh
2. Run the taskManager
./run_flink_on_occlum_glibc.sh tm
3. Run flink jobs example
./run_flink_on_occlum_glibc.sh task
**Note:**
1. If running the jobmanager in docker, please export the port 8081 and 6123
2. Step 2 may report warning for not finding shared objects. It doesn't matter. To avoid these warnings, you can **REPLACE the FIRST LINE** of config file `/opt/occlum/etc/template/occlum_elf_loader.config` with `/opt/occlum/glibc/lib/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/usr/lib/jvm/java-11-openjdk-amd64/lib/server`.

@ -1,10 +0,0 @@
1. Run the flink jobmanager
./run_flink_jobmanager_on_host.sh
2. Run the taskManager
./run_flink_on_occlum_glibc.sh tm
3. Run flink jobs example
./run_flink_on_occlum_glibc.sh task
Note: If running the jobmanager in docker, please export the port 8081 and 6123

@ -10,11 +10,6 @@ targets:
copy:
- dirs:
- ../python-occlum
# explicit copy python3 to enable autodep for python3
- target: /opt/python-occlum/bin
copy:
- files:
- ../python-occlum/bin/python3
# below are python code and data
- target: /
copy:

@ -4,8 +4,3 @@ targets:
copy:
- dirs:
- /opt/occlum/toolchains/jvm/java-11-alibaba-dragonwell
# emplicit copy java to enable autodep for java
- target: /usr/lib/jvm/java-11-alibaba-dragonwell/bin
copy:
- files:
- /opt/occlum/toolchains/jvm/java-11-alibaba-dragonwell/bin/java

@ -9,13 +9,3 @@ targets:
copy:
- dirs:
- /etc/java-11-openjdk
# explicit copy java to enable autodep for java
- target: /usr/lib/jvm/java-11-openjdk-amd64/bin
copy:
- files:
- /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# explicit copy libjvm to enable autodep for this library
- target: /usr/lib/jvm/java-11-openjdk-amd64/lib/server
copy:
- files:
- /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so

@ -5,8 +5,3 @@ targets:
copy:
- dirs:
- /opt/occlum/toolchains/jvm/java-11-openjdk
# emplicit copy java to enable autodep for java
- target: /usr/lib/jvm/java-11-openjdk/bin
copy:
- files:
- /opt/occlum/toolchains/jvm/java-11-openjdk/bin/java