-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathduckdb.manifest.template
executable file
·58 lines (49 loc) · 2.1 KB
/
duckdb.manifest.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This is a general manifest template for running DuckDB.
# Don't use this manifest in production
loader.entrypoint = "file:{{ gramine.libos }}"
libos.entrypoint = "{{ execdir }}/duckdb/build/release/duckdb"
#loader.log_level = "{{ log_level }}"
loader.log_level = "error"
loader.insecure__use_cmdline_argv = true
loader.env.LD_LIBRARY_PATH = "/lib:{{ arch_libdir }}"
loader.env.PATH = "{{ execdir }}"
# Set HOME to suppress "warning: cannot find home directory"
loader.env.HOME = "/"
# loader.env.MALLOC_ARENA_MAX = "1"
sys.insecure__allow_eventfd = true
fs.mounts = [
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
#{ path = "{{ execdir }}/duckdb/build/release/duckdb", uri = "file:{{ execdir }}/duckdb/build/release/duckdb" },
{ path = "{{ execdir }}", uri = "file:{{ execdir }}" },
#{ path = "{{ execdir }}/benchmarks", uri = "file:{{ execdir }}/benchmarks" },
# { path = "{{ execdir }}/duckdb/build/release/src/libduckdb.so", uri = "file:{{ execdir }}/duckdb/build/release/src/libduckdb.so" },
]
# Unfortunately, non-SGX Gramine cannot use special keys such as "_sgx_mrenclave", so for this
# example to work on both non-SGX and SGX versions we hardcode a dummy key. In SGX production case,
# it is recommended to remove this insecure key and instead use "_sgx_mrenclave"/"_sgx_mrsigner".
fs.insecure__keys.default = "ffeeddccbbaa99887766554433221100"
#sgx.debug = true
sgx.edmm_enable = false
sgx.enclave_size = "2G"
sgx.max_threads = 1000
sgx.use_exinfo = true
sgx.insecure__allow_memfaults_without_exinfo = true
# sgx.enable_stats = true
sgx.preheat_enclave = true
# sgx.profile.mode = "ocall_outer"
# sgx.profile.with_stack = 1
# sgx.insecure__rpc_thread_num = 64
sgx.trusted_files = [
"file:{{ gramine.libos }}",
"file:{{ execdir }}/duckdb/build/release/duckdb",
"file:{{ gramine.runtimedir() }}/",
"file:{{ arch_libdir }}/",
"file:{{ execdir }}/scripts/test.sql",
# "file:{{ execdir }}/build/release/src/libduckdb.so",
]
sgx.allowed_files = [
"file:benchmarks/orders.parquet",
"file:test.duckdb",
"file:test.duckdb.wal",
]