Commit Graph

182 Commits

Author SHA1 Message Date
jianfengjiang
16384b8b0e Update python-musl demo with copy_bom 2021-09-26 21:06:59 +08:00
jianfengjiang
436e427fbf Update tensorflow demos with copy_bom 2021-09-26 21:06:59 +08:00
jianfengjiang
3f78b09df7 Update pytorch demo with copy_bom 2021-09-26 21:06:59 +08:00
jianfengjiang
7290cfa561 Update cluster serving demo with copy_bom 2021-09-26 21:06:59 +08:00
jianfengjiang
cdb4ac560f Update sofaboot demos with copy_bom 2021-09-26 21:06:59 +08:00
Hui, Chunyang
7dcf727782 Fix file path for grpc demo 2021-09-26 21:06:02 +08:00
Zheng, Qi
63deda28b9 Update dcap demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 17:28:13 +08:00
zongmin.gu
4a91c11f9f Update enclave_tls demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
59988f9491 Update ping/pong demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
f0156cb08a Update go web_server demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
b86cbfac48 Update go_sqlite demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
0e00782c21 Update embedded_mode demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
8a6b44a68c Update grpc demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
c5c91baf84 Update bazel demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
c6dc8c807c Update xgboost demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
8b2c99cafd Update tflite demo with bom file 2021-09-26 16:34:52 +08:00
zongmin.gu
3684560683 Update Vault demo with bom file 2021-09-26 16:34:52 +08:00
Zheng, Qi
59a896b499 Update local_attestation demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
Zheng, Qi
a5e74f2769 Update sqlite demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
Zheng, Qi
09b79083b2 Update redis demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
Zheng, Qi
ae5dd3b313 Update openvino demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
Zheng, Qi
1f1fd9102b Update https_server demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
Zheng, Qi
cbb326e3fd Update fish demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
jianfengjiang
54bc08d094 modify demos after implementing autodep for copydirs 2021-09-24 19:02:26 +08:00
jianfengjiang
d598f36700 Modify flink demo with copy_bom 2021-09-23 15:42:15 +08:00
jianfengjiang
9a85361e35 Modify demos to enable autodep without creating softlinks 2021-09-23 15:42:15 +08:00
Zheng, Qi
339f25a84b Fix dangling buffer pointer bug in dcap demo
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-17 19:39:39 +08:00
jiangjianfeng
da4669b8c4 Modify java demo with copy_bom 2021-09-17 15:50:15 +08:00
jiangjianfeng
d3b4b10d4a Modify python-glibc demo with copy_bom 2021-09-17 15:50:15 +08:00
jiangjianfeng
3b5a1a3fc4 Modify rust demo with copy_bom 2021-09-17 15:50:15 +08:00
jiangjianfeng
f8abcd9a1f Modify hello_cc demo with copy_bom 2021-09-17 15:50:15 +08:00
jiangjianfeng
6d60483a1e Modify hello_c demo with copy_bom 2021-09-17 15:50:15 +08:00
Hui, Chunyang
4ae8af62d6 Add SGX v2 self hosted machine for CI 2021-09-03 18:42:50 +08:00
ClawSeven
136c2cca95 Seperate ssl generation with environment preparation 2021-09-03 18:42:50 +08:00
Qiyuan Gong
81dba866f1 Fix Cluster Serving demo classpath 2021-08-16 21:04:22 +08:00
ClawSeven
ed3641a66a Optimize tensorflow_serving workflow 2021-08-16 16:58:03 +08:00
yuanwu
d19ff1a8be Enable Tensorflow_serving in Occlum
Signed-off-by: yuanwu <yuan.wu@intel.com>
2021-08-16 16:58:03 +08:00
Hui, Chunyang
68f0a22177 Add Bash demo 2021-08-13 19:23:16 +08:00
Hui, Chunyang
0d20f9e5ec Fix Fish demo and related CI 2021-08-13 17:05:23 +08:00
CharleneHu94
b25246e96e fix manual lib copy 2021-08-10 12:39:57 +08:00
Zheng, Qi
05d4c7d7db Add similation and debug mode occlum package check and support
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-08-07 20:44:19 +08:00
LI Qing
42bed8d338 Remove the mount config for tmp dir 2021-08-03 19:45:56 +08:00
ClawSeven
9b425798d6 Add tensorflow demo 2021-07-29 16:35:17 +08:00
ClawSeven
d35d98d551 Add resolv-conf parser 2021-07-28 10:52:46 +08:00
Hui, Chunyang
1acfec6b12 Add support for fchdir and support cd for fish 2021-07-28 09:11:19 +08:00
Hui, Chunyang
63d2de1043 Add deployment demo 2021-07-20 13:44:34 +08:00
Zheng, Qi
1990196208 Add dcap rust based library and C test program
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-07-20 11:17:09 +08:00
He Sun
ba630d3cae Move the EPID RA demo code to the epid folder
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-07-20 11:17:09 +08:00
ClawSeven
3035a0353a Fix python demo warning 2021-07-14 15:04:42 +08:00
LI Qing
f2e52941e8 Fix the script of running Python demo 2021-07-13 19:31:28 +08:00
sgui
a889dc9c38 Add support for OpenVINO 2021.3
1.Replace the original TBB with OneTBB v2020.3
2.Replace the 2019_R3 with DLDT 2021.3
3.Add some dependent lib to the occlum image
2021-07-13 15:08:19 +08:00
Shirong Hao
06cc61a579 Update enclave-tls demo test
Signed-off-by: Shirong Hao <shirong@linux.alibaba.com>
2021-06-29 21:21:35 +08:00
ClawSeven
d098e65d67 Fix pytorch demo warning 2021-06-26 08:29:11 +08:00
SteNicholas
6c57834b8a Upgrade the version of Occlum docker image in README.md 2021-06-22 08:04:03 +08:00
CharleneHu94
b82072a9b6 Add analytics zoo cluster serving demo 2021-06-17 17:14:40 +08:00
SteNicholas
fa1196c0ce Update the shell for run flink jobs example 2021-06-11 20:35:37 +08:00
Hui, Chunyang
c4d2d8b802 Add Java processBuilder demo 2021-06-11 16:27:04 +08:00
zongmin.gu
6acd68d030 Update demo readme file 2021-06-09 15:03:03 +08:00
ClawSeven
f534017d79 Add pytorch demo 2021-06-08 19:07:58 +08:00
ClawSeven
53658e865b Add glibc-supported python demo 2021-06-08 07:54:10 +08:00
LI Qing
e5114a77c4 Add '-DSQLITE_MMAP_READWRITE' for SQLite demo 2021-05-31 18:48:24 +08:00
Shirong Hao
adc79d3a26 Update enclave-tls demo test 2021-05-19 09:51:31 +08:00
zongmin.gu
bd43e5b867 Add SOFABoot demo 2021-04-20 10:52:30 +08:00
Kailun Qin
0f23ddb14e Add the HashiCorp Vault demo
Signed-off-by: Kailun Qin <kailun.qin@intel.com>
2021-04-16 18:32:51 +08:00
zongmin.gu
b2c0f5e647 Update golang version to 1.16.3 2021-04-16 09:34:26 +08:00
zongmin.gu
baf550d600 Add enclave ra tls demo into demo CI 2021-04-15 16:29:42 +08:00
Shirong Hao
0c0c4c4abc ADD Enclave TLS Server demo 2021-04-15 16:29:42 +08:00
LI Qing
1cf270634f Polish some documents 2021-04-01 12:32:58 +08:00
yuanwu
dcd673615d Add the flink demo
Signed-off-by: yuanwu <yuan.wu@intel.com>
2021-03-22 13:30:55 +08:00
yuanwu
17464d3bbf Add the redis demo
Signed-off-by: yuanwu <yuan.wu@intel.com>
2021-03-12 14:31:52 +08:00
LI Qing
7deeccb03b Fix the error of demos with encrypted fs image 2021-03-02 13:25:36 +08:00
Hui, Chunyang
79b264a6c8 Add support for Address Space Layout Randomization
ASLR is only enabled on release mode. Also manage the whole process
VM with VMManager.
2021-02-24 14:46:41 +08:00
LI Qing
0b51d83811 Add ProcFS 2021-01-20 12:42:00 +08:00
Hui, Chunyang
787df74be0 Fix Python test malloc failure on SGX machine
Using tcmalloc could consume more heap. Enlarging kernel heap allocation
can fix this.
Also print result for Python test.
2020-11-18 22:13:34 +08:00
superajun-wsj
bef3201aef Update demos/font/font_support_for_java/README.md
OK

Co-authored-by: Zongmin.Gu <59240482+guzongmin@users.noreply.github.com>
2020-10-21 17:41:49 +08:00
jeffery.wsj
7eb132c2b2 Support occlum font for java 2020-10-21 17:41:49 +08:00
He Sun
9a47791ae3 Put the shebang in the front of run_occlum_bench.sh 2020-10-21 10:38:11 +08:00
yuanwu
66b64f8276 Update the xgboost to latest version
Intel has optimized the xgboost in latest version. Performance has
obvious acceleration in benchmark. In svm training with Yahoo LTR data,
latest version gets 7.8X acceleration in host, and 2X acceleration in occlum.

Signed-off-by: yuanwu <yuan.wu@intel.com>
2020-10-18 09:59:06 +08:00
yuanwu
cd588d2ca4 Add the gRPC-golang benchmark
Copied and Modified the google.golang.org/grpc/benchmark/run_bench.sh to
support the benchmark with occlum.

Signed-off-by: yuanwu <yuan.wu@intel.com>
2020-10-12 11:24:33 +08:00
yuanwu
69820c0d8c Add the SQLite benchmark app
Add the SQLite speedtest for performance benchmark

Signed-off-by: yuanwu <yuan.wu@intel.com>
2020-10-10 14:24:29 +08:00
James Dong
7fb4d9039a Fix an issue caused by recent reverted interface-based service registration
in cmd/protoc-gen-go-grpc.
2020-10-10 14:14:14 +08:00
James Dong
fec361f664 Add Golang SQLite demo 2020-09-27 14:21:58 +08:00
Hui, Chunyang
f4b3389bbe Fix golang grpc and local attestation demo to align with occlum 0.16.0 2020-09-20 10:39:54 +08:00
Hui, Chunyang
7b882bd368 Add support for pal library to run libos outside occlum instance 2020-09-18 12:39:12 +08:00
LI Qing
2c8c999d52 Speed up the boot procedure of JVM 2020-09-18 12:39:12 +08:00
James Dong
124acba6db Add a sample of Golang gRPC client/server programs 2020-09-02 17:06:09 +08:00
Hui, Chunyang
027e1569e0 Fix tensorflow lite demo eigen download failure 2020-08-28 21:26:48 +08:00
LI Qing
1463fb525a Fix python demo by enlarging the kernel space heap size 2020-08-26 14:07:31 +08:00
LI Qing
cd5cc0cb5c Update Java toolchains
1. Replace the OpenJDK with an unmodified OpenJDK from Alpine Linux
2. Add Alibaba Dragonwell as the default JDK for the Java demos
2020-08-15 19:12:39 +08:00
Hui, Chunyang
122a66289c Fix LA demo to align with occlum command 2020-08-15 19:12:39 +08:00
Hui, Chunyang
faf9c9d14e Add fish script execute permission since SEFS has more strict checking 2020-08-15 19:12:39 +08:00
Hui, Chunyang
7ac917aa1a Fix PAL library command arguments not follow convention 2020-08-15 19:12:39 +08:00
Hui, Chunyang
153a6fcd61 Fix embedded mode demo can't find libraries 2020-08-15 19:12:39 +08:00
Hui, Chunyang
0252f0949d Rename "occlum_context" to "occlum_instance" for demos 2020-08-15 19:12:39 +08:00
Hui, Chunyang
85501d8993 Improve implementation for occlum build
This commit mainly accomplish two things:
1. Use makefile to manage dependencies for `occlum build`, which can save lots of time
2. Take dirs `build`, `run` outside from `.occlum`. Remove env var "OCCLUM_INSTANCE_DIR"
2020-08-15 19:12:39 +08:00
Tate, Hongliang Tian
5e8f997d4d Make PIE the default mode for Go toolchain
Occlum-compatible executable binaries must be Position-Independent
Executable (PIE). Previously, to build such binaries, the users need to
explicitly give `-buildmode=pie` flag to `occlum-go`. Apparently, this
is error-prone. This commit sets `-buildmode=pie` by default for `occlum-go`.

In addition, this commit upgrades the Go version to 1.13.7.
2020-08-11 05:35:43 +00:00
LI Qing
1f30d75713 Add Java demo 2020-07-17 17:35:24 +00:00
LI Qing
81eb364c5b Install zlib in occlum-gcc toolchians 2020-07-17 17:31:41 +00:00
Hui, Chunyang
9b1d694830 Add support for per-process memory size configuration with rlimit
Rlimit are now on the same page of memory space limits defined in Occlum.json. Specific
memory size configuration can be set to child process with `prlimit` syscall or using `ulimit`
command in shell script.
2020-07-17 22:07:56 +08:00
Hui, Chunyang
306c0333ad Fix occlum PAL library compatibility issues in demos 2020-07-14 11:22:11 +00:00