Updated Standard Development Workflow

Gustavo Massaneiro 2021-12-21 16:36:39 -03:00
parent db9f989c1a
commit 4a0e871e89

@ -11,13 +11,28 @@ Whenever you make changes in the `agent` and `tap` packages or protocol extensio
$ docker build . -t example/mizuagent:latest
```
Then you need to push that image into Docker Hub:
If you are using minikube, you can use the locally built image instead of pushing the image to Docker hub:
```shell
$ minikube image load example/mizuagent:latest
```
If you are using a real kubernetes cluster, you need to push the image into Docker Hub:
```shell
$ docker push example/mizuagent:latest
```
Set the `agent-image` to `example/mizuagent:latest` in the Mizu config YAML (on path `~/.mizu/config.yaml`):
If you are using minikube, set the `agent-image` to `example/mizuagent:latest` and also set the `image-pull-policy` to `Never` in the Mizu config YAML (on path `~/.mizu/config.yaml`):
```shell
user@Machine:~/.mizu$ cat config.yaml
image-pull-policy: Never
agent-image: example/mizuagent:latest
telemetry: false
```
If you are using a real kubernetes cluster, set the `agent-image` to `example/mizuagent:latest` in the Mizu config YAML (on path `~/.mizu/config.yaml`):
```shell
user@Machine:~/.mizu$ cat config.yaml