User Tools

Site Tools


main:guides:guid_continuous_delivery_file_contents

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

main:guides:guid_continuous_delivery_file_contents [2018/05/14 12:56]
95f48b0f5770dfea3f2652eb733ce711e99132a48ab3fefbe2ad073a6752078c@egi.eu [Schema]
main:guides:guid_continuous_delivery_file_contents [2019/01/16 14:20] (current)
7dec9e27b58a2d54a2a96a538813e805058cb792ed68e744a68d87708e39628c@egi.eu
Line 1: Line 1:
 <fs 1.5em>​**Guide for AppDB Virtual Appliance Continuous Delivery File Format**</​fs>​ <fs 1.5em>​**Guide for AppDB Virtual Appliance Continuous Delivery File Format**</​fs>​
 ---- ----
-<fs 1.2em>​Continuous delivery file contains ​an object ​describing the current virtual appliance metadata. </fs>+<fs 1.2em>​Continuous delivery file contains ​information ​describing the current virtual appliance metadata. </fs>
 ---- ----
- +<​html><​p style="​border:​1px solid #aeaeae; background-color:​ #fff7d5; padding: 5px 10px;​line-height:​ 20px;"><​span style="​padding-right:​ 10px;​font-size:​ 18px;"><​b>​!</​b></​span><​span>​Currently only <​b>​JSON</​b>,​ <​b>​XML</​b>​ or <​b>​YAML</​b>​ formatted files are supported. See file structure examples in the <​i>"​Examples"</​i>​ section bellow.</​span></​p></​html>​ 
-====Schema====+=====Schema=====
 The contents must be wrapped inside a **appdb** field. The contents must be wrapped inside a **appdb** field.
 ^ Fields ​                     ^^ Type        ^ Constraints ​                          ^ Mandatory ​ ^ Defaults ​ ^ Accepted Values ^ ^ Fields ​                     ^^ Type        ^ Constraints ​                          ^ Mandatory ​ ^ Defaults ​ ^ Accepted Values ^
Line 32: Line 32:
 |accelerator ​     |minimum ​   |number ​       |< =recommended ​                        ​|no ​         |0         |1, 2, 4, 8, 16, 32| |accelerator ​     |minimum ​   |number ​       |< =recommended ​                        ​|no ​         |0         |1, 2, 4, 8, 16, 32|
 |accelerator ​     |recommended|number ​       |> =minimum ​                            ​|no ​         |0         |1, 2, 4, 8, 16, 32| |accelerator ​     |recommended|number ​       |> =minimum ​                            ​|no ​         |0         |1, 2, 4, 8, 16, 32|
-====Examples====+=====Examples=====
 Βelow are some examples with pseudo values in various formats. Βelow are some examples with pseudo values in various formats.
  
 +====Example 1: Basic configuration====
 +The examples bellow contain all of the mandatory fields of a description file
 +===XML File===
 +<code xml>
 +<​appdb>​
 +  <​version>​1.0.0</​version>​
 +  <​expireson>​3</​expireson>​
 +  <​notes>​This version will expire in 3 months</​notes>​
 +  <​url>​https://​mydomain.com/​images/​myvmimagefile.iso</​url>​
 +  <​arch>​x86_64</​arch>​
 +  <os>
 +    <​family>​Linux</​family>​
 +    <​name>​Fedora</​name>​
 +    <​version>​25</​version>​
 +  </os>
 +  <​format>​ISO</​format>​
 +  <​hypervisor>​Xen</​hypervisor>​
 +</​appdb>​
 +</​code>​
 +
 +
 +===JSON File===
 +<code json>
 +{
 +  "​appdb":​ {
 +    "​version":​ "​1.0.0",​
 +    "​expireson":​ 3,
 +    "​notes":​ "This version will expire in 3 months",​
 +    "​url":​ "​https://​mydomain.com/​images/​myvmimagefile.iso",​
 +    "​arch":​ "​x86_64",​
 +    "​os":​ {
 +      "​family":​ "​Linux",​
 +      "​name":​ "​Fedora",​
 +      "​version":​ "​25"​
 +    },
 +    "​format":​ "​ISO",​
 +    "​hypervisor":​ "​Xen"​
 +  }
 +}
 +</​code>​
 +===YAML File===
 +<code yaml>
 +---
 +appdb:
 +  version: 1.0.0
 +  expireson: 3
 +  notes: This version will expire in 3 months
 +  url: https://​mydomain.com/​images/​myvmimagefile.iso
 +  arch: x86_64
 +  os:
 +    family: Linux
 +    name: Fedora
 +    version: '​25'​
 +  format: ISO
 +  hypervisor: Xen
 +</​code>​
 +
 +====Example 2: Extended configuration====
 +The examples bellow contain all of the mandatory and all of the optional fields of a descriptions file, such as number of cores, size of ram etc
 ===XML File=== ===XML File===
 <code xml> <code xml>
main/guides/guid_continuous_delivery_file_contents.1526302607.txt.gz · Last modified: 2018/05/14 12:56 by 95f48b0f5770dfea3f2652eb733ce711e99132a48ab3fefbe2ad073a6752078c@egi.eu