Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 1 | Development Loop |
| 2 | ================ |
| 3 | |
| 4 | Start with `kind-voltha <https://github.com/ciena/kind-voltha>`_. installed. |
| 5 | |
| 6 | Make changes |
| 7 | ------------ |
| 8 | |
| 9 | We assume you already have downloaded the repository you want to modify and your IDE is correctly set up. |
| 10 | |
| 11 | In this tutorial we are going to use ``voltha-go`` as an example. |
| 12 | |
| 13 | Make the required changes in the ``voltha-go`` repository (the process |
| 14 | is the same for all the VOLTHA repositories) to the code and build the |
| 15 | docker 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 | |
| 21 | Then push them to your docker hub account: |
| 22 | |
| 23 | .. code:: bash |
| 24 | |
| 25 | $ DOCKER_REGISTRY="matteoscandolo/" DOCKER_TAG="dev" make docker-push |
| 26 | |
| 27 | Deploy your changes on kind-voltha |
| 28 | ---------------------------------- |
| 29 | |
| 30 | Create a copy of the `minimal-values.yaml` file: |
| 31 | |
| 32 | .. code:: bash |
| 33 | |
| 34 | $ cp minimal-values.yaml dev-values.yaml |
| 35 | |
| 36 | And edit that file so that it contains the appropriate values for the images you want to try, |
| 37 | for 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 | |
| 49 | Then redeploy `kind-voltha` using that value file: |
| 50 | |
| 51 | .. code:: bash |
| 52 | |
Zack Williams | c6460c2 | 2019-12-18 14:54:43 -0700 | [diff] [blame] | 53 | $ DEPLOY_K8S=no ./voltha down && DEPLOY_K8S=no EXTRA_HELM_FLAGS="-f dev-values.yaml" ./voltha up |
| 54 | |