Skip to content

Commit d1a58c5

Browse files
committed
docs/rofl: Simplify rofl build instructions
1 parent b5a384a commit d1a58c5

File tree

3 files changed

+8
-39
lines changed

3 files changed

+8
-39
lines changed

docs/rofl/quickstart.mdx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,9 @@ If the transaction succeeds, you should be able to find your app on the
135135

136136
Next, build the ROFL bundle.
137137

138-
<Tabs>
139-
<TabItem value="Native Linux">
140-
```shell
141-
oasis rofl build
142-
```
143-
</TabItem>
144-
<TabItem value="Docker (Windows, Mac, Linux)">
145-
```shell
146-
docker run --platform linux/amd64 --volume .:/src -it ghcr.io/oasisprotocol/rofl-dev:main oasis rofl build
147-
```
148-
</TabItem>
149-
</Tabs>
138+
```shell
139+
oasis rofl build
140+
```
150141

151142
As a result, a new `.orc` file will appear inside your project folder.
152143

docs/rofl/workflow/build.mdx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import Tabs from "@theme/Tabs";
2-
import TabItem from "@theme/TabItem";
3-
41
# Build
52

63
This operation packs `compose.yaml`, specific operating system components and
@@ -20,18 +17,9 @@ before granting them access to the key management system and [other features].
2017

2118
To build an app and update the enclave identity in the app manifest, simply run:
2219

23-
<Tabs>
24-
<TabItem value="Native Linux">
25-
```shell
26-
oasis rofl build
27-
```
28-
</TabItem>
29-
<TabItem value="Docker (Windows, Mac, Linux)">
30-
```shell
31-
docker run --platform linux/amd64 --volume .:/src -it ghcr.io/oasisprotocol/rofl-dev:main oasis rofl build
32-
```
33-
</TabItem>
34-
</Tabs>
20+
```shell
21+
oasis rofl build
22+
```
3523

3624
This will generate a ROFL bundle which can be used for later deployment and
3725
output something like:

docs/rofl/workflow/prerequisites.mdx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,12 @@ Pick among the three setups below.
2525

2626
1. [Download and install][oasis-cli-setup] the Oasis CLI to your platform.
2727

28-
2. For building apps for ROFL, the Oasis team prepared the
29-
[`ghcr.io/oasisprotocol/rofl-dev`][rofl-dev] image. It contains all
30-
the tools needed to compile any ROFL flavor of your app. You can test it out
31-
by running:
28+
2. Test that everything works by building the ROFL app:
3229

3330
```shell
34-
docker run --platform linux/amd64 --rm -v .:/src -it ghcr.io/oasisprotocol/rofl-dev:main oasis rofl build
31+
oasis rofl build
3532
```
3633

37-
:::info --platform linux/amd64
38-
39-
Always provide the `--platform linux/amd64` parameter to the `rofl-dev` image,
40-
no matter which processor your computer has or the operating system you're running.
41-
42-
:::
43-
4434
[rofl-dev]: https://github.com/oasisprotocol/oasis-sdk/pkgs/container/rofl-dev
4535
[oasis-cli-setup]: ../../tools/cli/setup.mdx
4636

0 commit comments

Comments
 (0)