Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Project Oak Containers Logo

Oak Functions Containers Launcher

Tools for packaging the Oak Functions Containers app as an OCI runtime bundle.

In order to bring the launcher up with the Oak Functions Trusted Application on Oak Containers, do the following:

Build all the necessary components of Oak Containers. A script in the oak_functions_containers_container folder can help generate the container image. However, to generate all necessary components, there is also a rule in the just file:

just all_oak_functions_containers_binaries

Build the WASM module to be used, for example:

just all_wasm_test_crates

Bring up the Oak Functions Launcher, for example to run it with the test lookup Wasm module:

$ artifacts/binaries/oak_functions_containers_launcher \
    --vmm-binary=$(which qemu-system-x86_64) \
    --stage0-binary=artifacts/binaries/stage0_bin \
    --kernel=artifacts/binaries/oak_containers_kernel \
    --initrd=artifacts/binaries/stage1.cpio \
    --system-image=artifacts/binaries/oak_containers_system_image.tar.xz \
    --container-bundle=artifacts/binaries/oak_functions_containers_app_bundle.tar \
    --ramdrive-size=1000000 \
    --memory-size=10G \
    --wasm=target/wasm32-unknown-unknown/release/key_value_lookup.wasm \
    --lookup-data=oak_functions_launcher/mock_lookup_data

To test the example lookup service while the Oak Functions Launcher is running, execute the client in a separate shell:

bazel run //cc/client:cli -- --address=127.0.0.1:8080 --request=test_key