blob: 34ab2d73dadaed87041b4fd1174448a6bf09b2f0 [file] [log] [blame]
Matteo Scandolo1f5530b2019-12-17 10:12:31 -08001Development Loop
2================
3
4Start with `kind-voltha <https://github.com/ciena/kind-voltha>`_. installed.
5
6Make changes
7------------
8
9We assume you already have downloaded the repository you want to modify and your IDE is correctly set up.
10
11In this tutorial we are going to use ``voltha-go`` as an example.
12
13Make the required changes in the ``voltha-go`` repository (the process
14is the same for all the VOLTHA repositories) to the code and build the
15docker images and push them on your private dockerhub account:
16
17.. code:: bash
18
19 $ DOCKER_REGISTRY="matteoscandolo/" DOCKER_TAG="dev" make docker-build
20
21Then push them to your docker hub account:
22
23.. code:: bash
24
25 $ DOCKER_REGISTRY="matteoscandolo/" DOCKER_TAG="dev" make docker-push
26
27Deploy your changes on kind-voltha
28----------------------------------
29
30Create a copy of the `minimal-values.yaml` file:
31
32.. code:: bash
33
34 $ cp minimal-values.yaml dev-values.yaml
35
36And edit that file so that it contains the appropriate values for the images you want to try,
37for example uncomment and change these two lines (mind the indentation):
38
39.. code:: yaml
40
41 images:
42 ro_core:
43 repository: matteoscandolo/voltha-ro-core
44 tag: dev
45 rw_core:
46 repository: matteoscandolo/voltha-rw-core
47 tag: dev
48
49Then redeploy `kind-voltha` using that value file:
50
51.. code:: bash
52
Zack Williamsc6460c22019-12-18 14:54:43 -070053 $ DEPLOY_K8S=no ./voltha down && DEPLOY_K8S=no EXTRA_HELM_FLAGS="-f dev-values.yaml" ./voltha up
54