Skip to content

Commit

Permalink
Merge pull request #2109 from oasisprotocol/mz/docs
Browse files Browse the repository at this point in the history
Update ROFL app docs
  • Loading branch information
buberdds authored Dec 12, 2024
2 parents 2da6d80 + 98eb36d commit 6264f08
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/rofl/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions docs/rofl/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6264f08

Please sign in to comment.