Blinky Sample

Learn how to build and deploy your first Ocre container using our Blinky sample. This guide demonstrates the fundamental workflow of containerized application development with Ocre.


Building the Blinky Sample

The following steps will guide you to build the blinky sample.

1. Move into the blinky directory.

cd samples/blinky

2. Next, build the blinky sample using the following commands:

mkdir build && cd build
cmake -DWASI_SDK_DIR=/opt/wasi-sdk -DCMAKE_TOOLCHAIN_FILE=/opt/wamr-sdk/app-sdk/wamr_toolchain.cmake ..
make

This step results in the creation of a WASM file named blinky.wasm, which will be used by the Ocre CLI to create an Ocre container in the next step.

3. Last, lets create an Ocre container using the Ocre CLI.

Steps to be updated soon


Deploying the Hello World Sample to Your Device

Now that you’ve built your container, let’s get it running on your device.

Steps to be updated soon