@@ -59,38 +59,29 @@ elizaos start
5959
6060## Containerize the App and the ERC-8004 wrapper
6161
62- The Eliza agent startup wizard already generated the ` Dockerfile ` that packs
63- your agent into a container.
64-
65- Next, we'll make sure that the Eliza agent is registered as a trustless agent in
66- the ERC-8004 registry. A helper image called [ ` rofl-8004 ` ] will do the
67- registration for us. Create the following ` compose.yaml ` file:
68-
69- ``` yaml title="compose.yaml"
70- services :
71- rofl-eliza :
72- build : .
73- image : docker.io/YOUR_USERNAME/rofl-eliza:latest
74- platform : linux/amd64
75- environment :
76- - OPENAI_API_KEY=${OPENAI_API_KEY}
77- ports :
78- - " 3000:3000"
79- volumes :
80- - eliza-storage:/root/.eliza
81-
82- rofl-8004 :
83- image : ghcr.io/oasisprotocol/rofl-8004@sha256:f57373103814a0ca4c0a03608284451221b026e695b0b8ce9ca3d4153819a349
84- platform : linux/amd64
85- environment :
86- - RPC_URL=${RPC_URL}
87- - PINATA_JWT=${PINATA_JWT}
88- volumes :
89- - /run/rofl-appd.sock:/run/rofl-appd.sock
90-
91- volumes :
92- eliza-storage :
93- ` ` `
62+ The Eliza agent startup wizard already generated ` Dockerfile ` that packs your
63+ agent into a container and ` docker-compose.yaml ` that orchestrates the
64+ ` postgres ` and ` elizaos ` containers. Edit ` docker-compose.yaml ` with the
65+ following changes:
66+
67+ 1 . In the PostgreSQL section replace relative ` image: ankane/pgvector:latest `
68+ with ` image: docker.io/ankane/pgvector:latest ` .
69+ 2 . Name our ` elizaos ` image with a corresponding absolute path, e.g.
70+ ` image: docker.io/YOUR_USERNAME/elizaos:latest `
71+ 3 . Make our Eliza agent registered as a trustless agent in the ERC-8004
72+ registry. Paste the following [ ` rofl-8004 ` ] snippet that will register it
73+ for us (keep the environment variables mapping!):
74+
75+ ``` yaml title="docker-compose.yaml"
76+ rofl-8004 :
77+ image : ghcr.io/oasisprotocol/rofl-8004@sha256:f57373103814a0ca4c0a03608284451221b026e695b0b8ce9ca3d4153819a349
78+ platform : linux/amd64
79+ environment :
80+ - RPC_URL=${RPC_URL}
81+ - PINATA_JWT=${PINATA_JWT}
82+ volumes :
83+ - /run/rofl-appd.sock:/run/rofl-appd.sock
84+ ` ` `
9485
9586Build and push:
9687
@@ -99,16 +90,16 @@ docker compose build
9990docker compose push
10091```
10192
102- For extra security and verifiability pin the digest and use
103- ` image: ...@sha256:... ` in ` compose.yaml ` .
93+ For full verifiability pin the digest by appending ` image: ...@sha256:... ` in
94+ ` docker- compose.yaml` to all images .
10495
10596[ `rofl-8004` ] : https://github.com/oasisprotocol/erc-8004
10697
10798## Init ROFL and Create App
10899
109100The agent will run in a container inside a TEE. ROFL will handle the startup
110101attestation of the container and the secrets in form of environment variables.
111- This way TEE will be completely transparent to the agent app.
102+ This way TEE will be completely transparent to the Eliza agent app.
112103
113104``` shell
114105oasis rofl init
@@ -119,7 +110,7 @@ Inspect on-chain activity and app details in the [Oasis Explorer].
119110
120111## Build ROFL bundle
121112
122- Eliza requires at least 2 GiB of memory and 10 GB of storage. Update the
113+ Eliza requires at least 2 GiB of memory and 10 GB of storage. First, update the
123114` resources ` section in ` rofl.yaml ` accordingly:
124115
125116``` yaml title="rofl.yaml"
@@ -158,15 +149,15 @@ echo -n "https://sepolia.infura.io/v3/<YOUR_KEY>" | oasis rofl secret set RPC_UR
158149echo -n " <your-pinata-key-here>" | oasis rofl secret set PINATA_JWT -
159150```
160151
161- Then store enclave identities and secrets on-chain:
152+ Then store the secrets and previously built enclave identities on-chain:
162153
163154``` shell
164155oasis rofl update
165156```
166157
167158## Deploy
168159
169- Deploy your Eliza agent to a ROLF provider by invoking:
160+ Deploy your Eliza agent to a ROFL provider by invoking:
170161
171162``` shell
172163oasis rofl deploy
@@ -195,7 +186,7 @@ URL where your agent is accessible on, for example:
195186Proxy:
196187 Domain: m1058.opf-testnet-rofl-25.rofl.app
197188 Ports from compose file:
198- 3000 (rofl-eliza ): https://p3000.m1058.opf-testnet-rofl-25.rofl.app
189+ 3000 (elizaos ): https://p3000.m1058.opf-testnet-rofl-25.rofl.app
199190```
200191
201192In the example above, our app is accessible at
0 commit comments