distro/rhel86: add support for azure marketplace
Add support for building images for the Azure marketplace: add a new image type "azure-rhui" that can be used to build images tailored to the Azure marketplace. Add two sample manifests for 8.5 and 8.6, but note that even the 8.5 is using the 8.6 distro definitions. Also no image-info is included since `image-info` cannot (yet) handle LVM setups and the azure marketplace images use the LVM setup.
This commit is contained in:
parent
a26103312a
commit
f91d8c6292
15 changed files with 26505 additions and 77 deletions
|
|
@ -423,6 +423,8 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
|||
|
||||
irTarget = t
|
||||
case ImageTypesAzure:
|
||||
fallthrough
|
||||
case ImageTypesAzureRhui:
|
||||
var azureUploadOptions AzureUploadOptions
|
||||
jsonUploadOptions, err := json.Marshal(*ir.UploadOptions)
|
||||
if err != nil {
|
||||
|
|
@ -710,6 +712,8 @@ func imageTypeFromApiImageType(it ImageTypes) string {
|
|||
return "vhd"
|
||||
case ImageTypesAzure:
|
||||
return "vhd"
|
||||
case ImageTypesAzureRhui:
|
||||
return "azure-rhui"
|
||||
case ImageTypesGuestImage:
|
||||
return "qcow2"
|
||||
case ImageTypesVsphere:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue