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
> This is a work in progress and currently only works with the `app_install` scenario.
361
+
362
+
##### Running Locally
363
+
364
+
You can easily test the Wind Tunnel scenarios with [Nomad](https://www.nomadproject.io) by running them locally, this requires running a Nomad agent locally
365
+
as both a client and a server.
366
+
367
+
First, enter the Nix `devShell` with `nix develop` to make sure you have all the packages install.
368
+
Alternatively, [install Nomad](https://developer.hashicorp.com/nomad/install) and Holochain locally so that both `nomad` and `hc` are in your `PATH`.
369
+
370
+
Once Nomad is installed, run the agent in `dev` mode to spin up both a server and client, do this with:
371
+
```shell
372
+
nomad agent -dev
373
+
```
374
+
375
+
Now navigate to [http://localhost:4646/ui] to view the Nomad dashboard.
376
+
377
+
Next, in a new terminal window, build the `app_install` scenario with:
378
+
```shell
379
+
nix build .#app_install
380
+
```
381
+
382
+
Once the scenario is built you can run the Nomad job with:
383
+
```shell
384
+
nomad job run nomad/run-app_install-local.nomad.hcl
385
+
```
386
+
387
+
Then, navigate to [http://localhost:4646/ui/jobs/app_install_scenario@default] where you should see one allocation (the Nomad name for an instance of the job)
388
+
this allocation should have two tasks: the `start-holochain` task and the `run_scenario` task. You can view the logs of these tasks to see the results.
389
+
The allocation should be marked as "Completed" after a few seconds.
390
+
391
+
Once you've finished testing you can kill the Nomad agent with `^C` in the first terminal running the agent.
0 commit comments