Skip to main content

Add new product to an existing distribution

Ways to add a new product to an existing distribution

Steps to add a new product to a distribution

dir structure:
/var/www/be/

>>
data/  (The latest json data for the FE)
>>> distributions/
>>> products/
>>> software-catalog.json (Complete list of products)
>>> software-distributions.json (Complete list of distributions)
>> templates/ (All the templates needes in the process)


data/      	
├── config.js
├── distributions/
│   ├── CMD-ONE
│   │   ├── 0.0.0.json
│   │   └── 1....
│   ├── CMD-OS
│   │   ├── 0.0.0.json
│   │   └── ...
│   ├── UMD
│   │   ├── 1.0.0.json
│   │   └── ...
├── products/
│   ├── CMD-ONE
│   │   ├── 0.0.0/
│   │   │   └── productname.json
│   │   │   └── ...
│   ├── CMD-OS
│   │   ├── 0.0.0/
│   │   │   └── productname.json
│   │   │   └── ...
│   ├── UMD
│   │   ├── 1.0.0/
│   │   │   └── productname.json
│   │   │   └── ...
├── software-catalog.json  (Complete list of products)
├── software-distributions.json  (Complete list of distributions)
│
templates/ (All the templates needed to convert yaml to json or using json directly)
├── product.yaml
├── distribution.yaml
├── product.json
├── distribution.json

1st approach

Add the

cd /var/www/be

Copy the template:
cp SW/templates/product.yaml ./release.yaml

Convert the yaml to json yaml2json release.yaml (this will create a release.json file in the same dir)

Manually add product