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 project primarily uses the `uv` python packaging tool: https://docs.astral.sh/uv/ along with the sister formatter/linter `ruff`https://docs.astral.sh/ruff/
4
4
5
-
Kubernetes is running the RPC server as a `statefulSet` which is pulled from a
6
-
container image on a registry. This means that (local) changes to the RPC
7
-
server are **not** reflected on the RPC server when running in Kubernetes,
8
-
unless you **also** push an updated image to a registry and update the
9
-
Kubernetes config files.
5
+
With `uv` installed you can add/remove dependencies using `uv add <dep>` or `uv remove <dep>.
6
+
This will update the [`uv.lock`](https://docs.astral.sh/uv/guides/projects/#uvlock) file automatically.
10
7
11
-
To help with this a helper script is provided: [build-k8s-rpc.sh](../scripts/build-k8s-rpc.sh).
You can optionally specify `LATEST=1` to also include the `latest` tag on docker hub.
20
-
21
-
Once a new image has been pushed, it should be referenced in manifests/warnet-rpc-statefulset.yaml in the `image` field.
8
+
`uv` can also run tools (like `ruff`) without external installation, simply run `uvx ruff check .` or `uvx ruff format .` to use a uv-managed format/lint on the project.
Copy file name to clipboardExpand all lines: docs/quickrun.md
+3-32Lines changed: 3 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,39 +28,10 @@ pip install -e .
28
28
29
29
## Running
30
30
31
-
> [!TIP]
32
-
> When developing locally add the `--dev` flag to `warnet cluster deploy` to enable dev mode with hot-reloading server.
33
-
34
-
### Using minikube
35
-
36
-
To run a local cluster using minikube:
37
-
38
-
```bash
39
-
warnet cluster setup-minikube
40
-
41
-
warnet cluster deploy
42
-
```
43
-
44
-
### Other cluster types
45
-
46
-
If not using minikube (e.g. using Docker Desktop or a managed cluster), `warnet` commands will operate natively on the current Kubernetes context, so you can simply run:
31
+
To get started simply run:
47
32
48
33
```bash
49
-
warnet cluster deploy
34
+
warnet quickstart
50
35
```
51
36
52
-
...to deploy warnet to your cluster.
53
-
54
-
`warnet cluster deploy` also automatically configures port forwarding to the Server in the cluster.
55
-
56
-
## Stopping
57
-
58
-
To tear down the cluster:
59
-
60
-
```bash
61
-
warnet cluster teardown
62
-
```
63
-
64
-
## Log location
65
-
66
-
If the `$XDG_STATE_HOME` environment variable is set, the server will log to a file `$XDG_STATE_HOME/warnet/warnet.log`, otherwise it will use `$HOME/.warnet/warnet.log`.
37
+
This will check you have the required dependencies and guide you through setting up and deploying your first network.
0 commit comments