From 98eb36d1fdfea175d657b69880cc87b70864690c Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Thu, 12 Dec 2024 14:35:14 +0100 Subject: [PATCH] Update ROFL app docs --- docs/rofl/app.md | 8 ++++++-- docs/rofl/prerequisites.md | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/rofl/app.md b/docs/rofl/app.md index 8cfd385834..18a4b2fc8a 100644 --- a/docs/rofl/app.md +++ b/docs/rofl/app.md @@ -131,7 +131,8 @@ The simplest way to test and debug your ROFL is with a local stack. } ``` -2. Compile ROFL in the _unsafe_ mode: +2. Navigate to `examples/runtime-sdk/rofl-oracle` and compile +ROFL in the _unsafe_ mode: ```shell oasis rofl build sgx --mode unsafe @@ -141,7 +142,10 @@ The simplest way to test and debug your ROFL is with a local stack. folder to `/rofls` inside the docker image: ```shell - docker run -it -p8545:8545 -p8546:8546 -v rofl-oracle:/rofls ghcr.io/oasisprotocol/sapphire-localnet + # Make sure to use the latest Sapphire Localnet docker image + docker pull ghcr.io/oasisprotocol/sapphire-localnet:latest + # Assuming you are running this command from the `rofl-oracle` directory + docker run -it -p8544-8548:8544-8548 -v .:/rofls ghcr.io/oasisprotocol/sapphire-localnet:latest ``` In a few moments, the Sapphire Localnet will spin up and automatically launch diff --git a/docs/rofl/prerequisites.md b/docs/rofl/prerequisites.md index 27742e6d04..c910dcdb89 100644 --- a/docs/rofl/prerequisites.md +++ b/docs/rofl/prerequisites.md @@ -108,11 +108,21 @@ sudo apt install musl-tools gcc-multilib clang In order to generate binaries suitable for use with Intel SGX, you also need to install the relevant utilities. You can do so as follows: +Start with adding OpenSSL development package and the Protobuf compiler: + +```shell +sudo apt-get install pkg-config libssl-dev protobuf-compiler +``` + +You can find more details looking at [Fortanix docs]. + ``` cargo install fortanix-sgx-tools cargo install sgxs-tools ``` +[Fortanix docs]: https://edp.fortanix.com/docs/installation/guide/#tab-3-1 + ## Oasis CLI Installation The rest of the guide uses the Oasis CLI as an easy way to interact with the