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
[Tooling] Integrate Tilt development environment (#23)
## Summary
Integrate [Tilt](https://docs.tilt.dev/) (and k8s/helm) development
environment.
Run:
```
tilt up
```
## Issue
- pokt-network/poktroll#873
## Type of change
Select one or more:
- [x] New feature, functionality or library
- [ ] Bug fix
- [ ] Code health or cleanup
- [ ] Documentation
- [ ] Other (specify)
## Testing
**Documentation changes** (only if making doc changes)
- [ ] `make docusaurus_start`; only needed if you make doc changes
**Local Testing** (only if making code changes)
- [ ] **Unit Tests**: `make go_develop_and_test`
- [ ] **LocalNet E2E Tests**: `make test_e2e`
- See [quickstart
guide](https://dev.poktroll.com/developer_guide/quickstart) for
instructions
**PR Testing** (only if making code changes)
- [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR.
- **THIS IS VERY EXPENSIVE**, so only do it after all the reviews are
complete.
- Optionally run `make trigger_ci` if you want to re-trigger tests
without any code changes
- If tests fail, try re-running failed tests only using the GitHub UI as
shown
[here](https://github.com/pokt-network/poktroll/assets/1892194/607984e9-0615-4569-9452-4c730190c1d2)
## Sanity Checklist
- [ ] I have tested my changes using the available tooling
- [ ] I have commented my code
- [ ] I have performed a self-review of my own code; both comments &
source code
- [ ] I create and reference any new tickets, if applicable
- [ ] I have left TODOs throughout the codebase, if applicable
@@ -160,7 +164,38 @@ Types will need to be regenerated any time the `graphql.schema` is changed.
160
164
yarn run codegen
161
165
```
162
166
163
-
### 3. Run
167
+
### 3a. Run via [Tilt](https://tilt.dev/)
168
+
169
+

170
+
171
+
```bash
172
+
# Start tilt
173
+
tilt up
174
+
175
+
# Delete tilt resources
176
+
tilt down
177
+
```
178
+
179
+
#### Running against localnet
180
+
181
+
_NOTE: 🚨 The [poktroll](https://github.com/pokt-network/poktroll) localnet includes pocketdex in its tilt environment. 🚨_
182
+
183
+
If you need to run pocketdex against poktroll localnet, but can't use the poktroll repo's tilt environment for whatever reason, update (_but don't commit_) the `indexer_values_path` in the `Tiltfile`:
Dotenv files will be automatically created after the `yarn install` thanks to the `postinstall` script.
166
201
After that, feel free to modify them as you wish.
@@ -215,7 +250,7 @@ Or Stop & clean up (delete postgres data):
215
250
yarn run docker:clean:development
216
251
```
217
252
218
-
#### 3.1 Debugging, errors running & building
253
+
#### 3b.1 Debugging, errors running & building
219
254
220
255
If you're hitting errors with the above command, do a nuclear clean of all potential issues:
221
256
@@ -227,7 +262,7 @@ docker context use default
227
262
228
263
Now pick up from the `yarn run docker:build` step above.
229
264
230
-
#### 3.2 Using a pre-built image
265
+
#### 3b.2 Using a pre-built image
231
266
232
267
If you are unable to build locally, a pre-built image is available on Docker Hub: [bryanchriswhite/pocketdex-subquery-node:latest](https://hub.docker.com/r/bryanchriswhite/pocketdex-subquery-node).
233
268
@@ -252,7 +287,7 @@ services:
252
287
...
253
288
```
254
289
255
-
#### 3.3 Available Scripts breakdown
290
+
#### 3b.3 Available Scripts breakdown
256
291
257
292
*`preinstall` - Enforces the use of Yarn as the package manager.
258
293
*`postinstall` - Executes the `env:prepare` script after the installation process.
@@ -280,6 +315,6 @@ services:
280
315
*`docker:stop:<environment>` - Stops all active services for the specified environment without removing them.
281
316
*`docker:clean:<environment>` - Stops and removes all services, volumes, and networks for the specified environment.
282
317
283
-
#### 3.4 Using k8s
318
+
###3c. Using k8s
284
319
285
320
See the instructions in [docs/kubernetes.md](./docs/kubernetes.md) for deploying using Kubernetes.
0 commit comments