You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development-setup.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,25 +100,6 @@ This will start:
100
100
- Redis instance
101
101
- Supporting infrastructure
102
102
103
-
## Docker Compose Setup
104
-
105
-
You can run all supporting services (chain, validator, discovery, orchestrator) in docker compose.
106
-
107
-
1. Start docker compose:
108
-
```bash
109
-
docker compose up
110
-
```
111
-
112
-
2. Run Setup:
113
-
```bash
114
-
make setup
115
-
```
116
-
117
-
3. Launch a worker:
118
-
- Adjust the .env var `WORKER_EXTERNAL_IP` to: `WORKER_EXTERNAL_IP=host.docker.internal`
119
-
- Launch the worker using `make watch-worker`
120
-
- Whitelist the worker once you see the whitelist alert using: `make whitelist-provider`
121
-
122
103
## Running a Worker Node
123
104
124
105
Once the core services are running, you can start a worker node in a new terminal:
@@ -127,9 +108,9 @@ make watch-worker
127
108
```
128
109
129
110
The worker will automatically connect to the discovery service and begin processing tasks.
111
+
Your worker will show an error that it is not whitelisted yet. You'll have to run `make whitelist-provider` here.
130
112
It takes a couple of seconds until the worker is whitelisted. This is done using a simple loop on the second page of tmux.
131
-
132
-
You can find more details on the APIs in the orchestrator and discovery service directory.
113
+
You should see your worker eventually on the orchestrator. Checkout the orchestrator doc also: `http://localhost:8090/docs`
133
114
134
115
## Remote GPU Development
135
116
> ⚠️ **IMPORTANT**: The video shows the whitelist process happening automatically. Currently, this must be done manually using the command `make whitelist-provider`.
@@ -155,4 +136,22 @@ Set up your remote GPU worker:
155
136
To gracefully shutdown all services:
156
137
```bash
157
138
make down
158
-
```
139
+
```
140
+
141
+
## Docker Compose Setup
142
+
You can run all supporting services (chain, validator, discovery, orchestrator) (if you only want to work on the worker sw) in docker compose.
143
+
144
+
1. Start docker compose:
145
+
```bash
146
+
docker compose up
147
+
```
148
+
149
+
2. Run Setup:
150
+
```bash
151
+
make setup
152
+
```
153
+
154
+
3. Launch a worker:
155
+
- Adjust the .env var `WORKER_EXTERNAL_IP` to: `WORKER_EXTERNAL_IP=host.docker.internal`
156
+
- Launch the worker using `make watch-worker`
157
+
- Whitelist the worker once you see the whitelist alert using: `make whitelist-provider`
0 commit comments