Difference between revisions of "Create appliance repository"

From berofix - professional SIP gateway
Jump to: navigation, search
(Created page with "= introduction = An appliance repository needs to be accessible via http or ftp. The repository should have a folder containing the items: * app.lst - file which describe...")
 
(Example)
Line 29: Line 29:
 
sample app.lst file
 
sample app.lst file
  
  {"repository":"beroNet","url":"ftp://appliance.beronet.com/appliance_apps","provider":"beroNet GmbH","support":"support@beronet.com","web":"http://www.beronet.com", "apps":{
+
  {"repository":"beroNet","url":"ftp://appliance.beronet.com/appliance_apps","provider":"beroNet GmbH","support":"support@beronet.com","web":"http://www.beronet.com",  
 +
    "apps":{
 
     "test":{"description":"test app","version":"1.0","size":"2G","disk":"20G","ram":"4G","cpu":"2"}
 
     "test":{"description":"test app","version":"1.0","size":"2G","disk":"20G","ram":"4G","cpu":"2"}
},
+
    },
 
     "isos":{
 
     "isos":{
 
     "mikrotik-6.31.iso":{"description":"Firewall/Router","version":"6.31","size":"26 MB"}
 
     "mikrotik-6.31.iso":{"description":"Firewall/Router","version":"6.31","size":"26 MB"}

Revision as of 11:33, 13 January 2016

introduction

An appliance repository needs to be accessible via http or ftp. The repository should have a folder containing the items:

* app.lst  -  file which describes the repository and contains the list of VM apps and iso files
* apps/    -  folder containing the actual VM apps
* isos/    -  folder containing the actual iso files


the app.lst file is a json encoded file and should look like:

market dfinition file

app.lst definition:

{"repository":"$NAME OF REPOSITORY","url":"$URL OF REPOSITORY","provider":"$NAME OF REPOSITORY PROVIDER","support":"$CONTACT EMAIL$","web":"$PROVIDERS WEBSITE$",
 "apps":{
         "$APP-NAME-1$":{"description":"$APP-1 DESCRIPTION$","version":"$VERSION-1$","size":"$FILE SIZE IN G$","disk":"$DISK SIZE IN G$","ram":"$MEM SIZE IN G$","cpu":"$AMOUNT OF CPU$"},
         "$APP-NAME-2$":{"description":"$APP-2 DESCRIPTION$","version":"$VERSION-2$","size":"$FILE SIZE IN G$","disk":"$DISK SIZE IN G$","ram":"$MEM SIZE IN G$","cpu":"$AMOUNT OF CPU$"}
  },
 "isos":{
          "$ISO-FILE-1$":{"description":"$DESCRIPTION$","version":"$VERSOIN$","size":"$FILESIZE IN MB$"},
          "$ISO-FILE-2$":{"description":"$DESCRIPTION$","version":"$VERSOIN$","size":"$FILESIZE IN MB$"}
 }
}


Example

sample app.lst file

{"repository":"beroNet","url":"ftp://appliance.beronet.com/appliance_apps","provider":"beroNet GmbH","support":"support@beronet.com","web":"http://www.beronet.com", 
   "apps":{
    "test":{"description":"test app","version":"1.0","size":"2G","disk":"20G","ram":"4G","cpu":"2"}
    },
   "isos":{
   "mikrotik-6.31.iso":{"description":"Firewall/Router","version":"6.31","size":"26 MB"}
}
}

corresponding folders and files:

apps/
apps/test.tar
isos/
isos/mikrotik-6.31.iso