Update INFO.yaml with new PTL
[demo.git] / vnfs / VESreporting_vFW5.0_DANOS / DANOS_BUILD.md
1
2 A version of DANOS with the VES reporting client will be made available for download and uploading into your glance repository.
3       wget http:// .....  danos-1908-amd64-vrouter_20200425T1203-amd64.hybrid.iso
4
5 Remember that a flavor for DANOS must be available in your openstack instance for 4 vcpu, 4096 MB, 8 GB since the standard 
6 ubuntu flavors used for most ONAP VNF demonstrations are not the right size.
7
8
9 The following instructions were used to build the custom version and can be used as well.
10
11  
12 1. Install the DANOS package build tool
13      apt install docker.io
14      git clone https://github.com/jsouthworth/danos-buildpackage
15      cd danos-buildpackage
16      go install jsouthworth.net/go/danos-buildimage/cmd/danos-buildpackage
17
18 2. Change to the directory above debian 
19      cd ~/demo/vnfs/VESreporting_vFW5.0_DANOS
20
21 3. Build ves library and create debian package
22
23      danos-buildpackage -version 1908
24
25      vpp-measurement-reporter-danos_0.1_amd64.deb will be created in the ~/demo/vnfs directory (..) 
26
27 4. Confirm the debian package has the libevel.so and vpp_measurement_reporter_danos executables
28
29      dpkg-deb -c  vpp-measurement-reporter-danos_0.1_amd64.deb
30
31 5. Create a DANOS ISO with the addition of the VES debian
32            a. Follow steps in https://danosproject.atlassian.net/wiki/spaces/DAN/pages/491554/Creating+a+DANOS+ISO+using+binary+packages
33            b. At the step:   "If any additional packages are required to be added to the DANOS image:"
34                       mkdir -p config/packages.chroot/
35                       cp  <path-to-deb>/vpp-measurement-reporter-danos_0.1_amd64.deb  config/packages.chroot/
36
37            c. Since this is a new debian for the iso  you need to add the reference to it under config/package-lists
38                       cd config/package-lists
39                       create a file:
40                                vpp-measurement-reporter-danos.list.chroot
41                       add the line to the file:
42                                vpp-measurement-reporter-danos
43            c. continue the steps include:
44                  sed -i 's/--.*distribution .*\\/--distribution '"stretch"' \\/' auto/config
45                  auto/clean
46                  auto/config
47                  auto/build
48
49            d. an iso image should be built like:
50                    danos-1908-amd64-vrouter_20200425T1203-amd64.hybrid.iso
51
52
53
54 6. Follow the instructions up through Step K. for installing a DANOS ISO in Openstack from 
55  
56          https://danosproject.atlassian.net/wiki/spaces/DAN/pages/79560705/Creating+a+DANOS+Virtual+Router+VNF+in+Openstack
57
58          
59 Ignore the creation of the DANOS intance from the new glance image and the traffic source and traffic sink parts since the heat template for ONAP will cover those pieces.
60          
61