Update the occlum.json to align with the gen_enclave_conf design.
Below is the two updated structures:
   "metadata": {
        "product_id": 0,
        "version_number": 0,
        "debuggable": true
    },
    "resource_limits": {
        "max_num_of_threads": 32,
        "kernel_space_heap_size": "32MB",
        "kernel_space_stack_size": "1MB",
        "user_space_size": "256MB"
    }
		
	
			
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| if [ -z $OCCLUM_INSTANCE_DIR ];then
 | |
|     OCCLUM_INSTANCE_DIR=".occlum"
 | |
| fi
 | |
| 
 | |
| cat <<EOF
 | |
| {
 | |
|     "resource_limits": {
 | |
|         "user_space_size": "$OCCLUM_CONF_USER_SPACE_SIZE"
 | |
|     },
 | |
|     "process": {
 | |
|         "default_stack_size": "$OCCLUM_CONF_DEFAULT_STACK_SIZE",
 | |
|         "default_heap_size": "$OCCLUM_CONF_DEFAULT_HEAP_SIZE",
 | |
|         "default_mmap_size": "$OCCLUM_CONF_DEFAULT_MMAP_SIZE"
 | |
|     },
 | |
|     "mount": [
 | |
|         {
 | |
|             "target": "/",
 | |
|             "type": "sefs",
 | |
|             "source": "$OCCLUM_INSTANCE_DIR/build/mount/__ROOT",
 | |
|             "options": {
 | |
|                 "integrity_only": true,
 | |
|                 "MAC": "$OCCLUM_CONF_ROOT_FS_MAC"
 | |
|             }
 | |
|         },
 | |
|         {
 | |
|             "target": "/root",
 | |
|             "type": "sefs",
 | |
|             "source": "$OCCLUM_INSTANCE_DIR/run/mount/root"
 | |
|         },
 | |
|         {
 | |
|             "target": "/host",
 | |
|             "type": "hostfs",
 | |
|             "source": "."
 | |
|         },
 | |
|         {
 | |
|             "target": "/tmp",
 | |
|             "type": "ramfs"
 | |
|         }
 | |
|     ],
 | |
|     "env": $OCCLUM_CONF_ENV,
 | |
|     "entry_points": $OCCLUM_CONF_ENTRY_POINTS
 | |
| }
 | |
| EOF
 |