导入 OVA 映像的 YAML 文件示例
除了需要添加一个包含所需上载信息的 YAML 文件外,上载 OVA 映像的过程与上载其他第三方软件的过程相同。 手动创建 YAML 并将其添加到您在入职过程中引用的 GitHub repo 中。
完成这一前提条件后,您就可以将 OVA 映像添加到用于上架的私有目录中,并验证其是否可以发布。 请参阅 启用软件。
元数据
下表列出了 YAML 文件中应包含的元数据:
元数据密钥 | 描述 |
---|---|
app_id |
产品的程序名称。 不会暴露给用户。 |
title |
在公共目录中对外显示的产品名称。 |
version |
OVA 映像的版本 ID。 每次更新 OVA 映像时都必须更新。 该值必须是语义版本,例如,1.0.0 、1.0.1 、1.0.2 。 |
revision |
OVA 元数据的版本。 每次更新元数据时都必须更新。 |
kind |
值始终为 ova 。 |
image |
包含 url 或 sha256 值的对象。 |
url |
image 的子值。 image 路径的 URL。 |
sha256 |
image 的子值。 image 中引用的文件的签名。 |
eula_url |
可公开获取的许可证文件链接。 可选。 |
eula_label |
许可证链接的标签。 可选。 |
categories |
用于过滤目录中项目的 IBM Cloud 目录类别数组。 可选。 |
logo |
公共目录中外部显示的产品徽标的 URL 路径,以及 title 值。 |
description |
OVA 图像的简短描述,与 title 和 logo 值一起显示在公共目录中。 |
readme |
OVA 映像的自述文件文本。 |
links |
产品支持或文档链接。 可选。 |
YAML 示例
下面的示例显示了一个格式化了所需元数据的 YAML 文件。
app_id: devName
title: productName
version: 5.4.2-0
revision: 3
kind: ova
image:
url: https://productURL-5.4.2-0.ova
sha256: 1aaa22bbb33c44444dd5e66f4g7hh8i99j11kk22ll33m4nn5555o6pp77qq888r
eula_url: https://www.product.org/licenses/LICENSE-2.0.txt
eula_label: Product 2.0
categories:
- network
logo: https://productIcon.net/images.png
description: "Description for OVA image offering."
readme: The full text for the required readme file about the ova image.
links:
- id: docs_index
title: Getting started
url: https://docs.OVAimage-gettingStarted.com
- id: support_index
title: Product Support
url: https://docs.OVAimage-support.com