Skip to content

Commit

Permalink
RHEL for SAP BYOS and RHEL 9 BYOS arm64. (#2236)
Browse files Browse the repository at this point in the history
* RHEL for SAP BYOS, RHEL 9 BYOS arm64.

* fixes
  • Loading branch information
zmarano committed Oct 11, 2023
1 parent eb0c759 commit b84a314
Show file tree
Hide file tree
Showing 30 changed files with 3,114 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{/*
Template to publish Red Hat Enterprise Linux for SAP images.
By default this template is setup to publish to the 'gce-image-builder'
project, the 'environment' variable can be used to publish to 'test', 'prod'
DeleteAfter is set to 180 days for all environments other than prod where no
time period is set.
*/}}
{
"Name": "rhel-8-2-sap-byos",
{{$work_project := printf "%q" "gce-image-builder" -}}
{{$endpoint := `"https://www.googleapis.com/compute/alpha/projects/"` -}}
{{$delete_after := `"24h*30*6"` -}}
{{if eq .environment "test" -}}
"WorkProject": {{$work_project}},
"PublishProject": "bct-prod-images",
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- else if eq .environment "prod" -}}
"WorkProject": {{$work_project}},
"PublishProject": "rhel-byos-cloud",
"ComputeEndpoint": {{$endpoint}},
{{- else -}}
"WorkProject": {{$work_project}},
"PublishProject": {{$work_project}},
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- end}}
{{$guest_features := `["VIRTIO_SCSI_MULTIQUEUE", "UEFI_COMPATIBLE", "GVNIC"]` -}}
{{$time := trimPrefix .publish_version "v"}}
"Images": [
{
"Prefix": "rhel-8-2-sap-byos",
"Family": "rhel-8-2-sap-byos",
"Description": "Red Hat, Red Hat Enterprise Linux for SAP BYOS, 8.2, x86_64 built on {{$time}}",
"Architecture": "X86_64",
"Licenses": [
"projects/rhel-sap-cloud/global/licenses/rhel-8-sap-byos"
],
"GuestOsFeatures": {{$guest_features}}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"Name": "rhel-8-2-sap-byos",
"Project": "gce-image-builder",
"Zone": "us-central1-b",
"GCSPath": "gs://gce-image-build-bucket/daisy/${USERNAME}",
"Vars": {
"build_date": {
"Value": "${TIMESTAMP}",
"Description": "Build datestamp used to version the image."
},
"google_cloud_repo": {
"Value": "stable",
"Description": "The Google Cloud Repo branch to use."
},
"workflow_root": {
"Value": "/workflows",
"Description": "Root of github workflows, defaults to /workflows in the container."
},
"gcs_url": {
"Required": true,
"Description": "The GCS path that image raw file exported to."
},
"sbom_destination": {
"Value": "${OUTSPATH}/export-image.sbom.json",
"Description": "SBOM final export destination, copies in place by default"
},
"installer_iso": {
"Required": true,
"Description": "The RHEL 8 installer ISO to build from."
},
"sbom_util_gcs_root": {
"Value": "",
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM."
}
},
"Steps": {
"build": {
"TimeOut": "60m",
"IncludeWorkflow": {
"Path": "${workflow_root}/image_build/enterprise_linux/rhel_8_2_sap_byos.wf.json",
"Vars": {
"build_date": "${build_date}",
"google_cloud_repo": "${google_cloud_repo}",
"installer_iso": "${installer_iso}",
"rhel_release": "rhel-8-2"
}
}
},
"export-image": {
"Timeout": "60m",
"IncludeWorkflow": {
"Path": "${workflow_root}/export/disk_export.wf.json",
"Vars": {
"destination": "${gcs_url}",
"sbom_destination": "${sbom_destination}",
"source_disk": "el-install-disk",
"sbom_util_gcs_root": "${sbom_util_gcs_root}"
}
}
},
"cleanup-image": {
"DeleteResources": {
"Images": ["rhel-8-2-sap-byos-v${build_date}"]
}
}
},
"Dependencies": {
"export-image": ["build"],
"cleanup-image": ["build"]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{/*
Template to publish Red Hat Enterprise Linux for SAP images.
By default this template is setup to publish to the 'gce-image-builder'
project, the 'environment' variable can be used to publish to 'test', 'prod'
DeleteAfter is set to 180 days for all environments other than prod where no
time period is set.
*/}}
{
"Name": "rhel-8-4-sap-byos",
{{$work_project := printf "%q" "gce-image-builder" -}}
{{$endpoint := `"https://www.googleapis.com/compute/alpha/projects/"` -}}
{{$delete_after := `"24h*30*6"` -}}
{{if eq .environment "test" -}}
"WorkProject": {{$work_project}},
"PublishProject": "bct-prod-images",
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- else if eq .environment "prod" -}}
"WorkProject": {{$work_project}},
"PublishProject": "rhel-byos-cloud",
"ComputeEndpoint": {{$endpoint}},
{{- else -}}
"WorkProject": {{$work_project}},
"PublishProject": {{$work_project}},
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- end}}
{{$guest_features := `["VIRTIO_SCSI_MULTIQUEUE", "UEFI_COMPATIBLE", "SEV_CAPABLE", "GVNIC"]` -}}
{{$time := trimPrefix .publish_version "v"}}
"Images": [
{
"Prefix": "rhel-8-4-sap-byos",
"Family": "rhel-8-4-sap-byos",
"Description": "Red Hat, Red Hat Enterprise Linux for SAP BYOS, 8.4, x86_64 built on {{$time}}",
"Architecture": "X86_64",
"Licenses": [
"projects/rhel-sap-cloud/global/licenses/rhel-8-sap-byos"
],
"GuestOsFeatures": {{$guest_features}}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"Name": "rhel-8-4-sap-byos",
"Project": "gce-image-builder",
"Zone": "us-central1-b",
"GCSPath": "gs://gce-image-build-bucket/daisy/${USERNAME}",
"Vars": {
"build_date": {
"Value": "${TIMESTAMP}",
"Description": "Build datestamp used to version the image."
},
"google_cloud_repo": {
"Value": "stable",
"Description": "The Google Cloud Repo branch to use."
},
"workflow_root": {
"Value": "/workflows",
"Description": "Root of github workflows, defaults to /workflows in the container."
},
"gcs_url": {
"Required": true,
"Description": "The GCS path that image raw file exported to."
},
"sbom_destination": {
"Value": "${OUTSPATH}/export-image.sbom.json",
"Description": "SBOM final export destination, copies in place by default"
},
"installer_iso": {
"Required": true,
"Description": "The RHEL 8 installer ISO to build from."
},
"sbom_util_gcs_root": {
"Value": "",
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM."
}
},
"Steps": {
"build": {
"TimeOut": "60m",
"IncludeWorkflow": {
"Path": "${workflow_root}/image_build/enterprise_linux/rhel_8_4_sap_byos.wf.json",
"Vars": {
"build_date": "${build_date}",
"google_cloud_repo": "${google_cloud_repo}",
"installer_iso": "${installer_iso}",
"rhel_release": "rhel-8-4"
}
}
},
"export-image": {
"Timeout": "60m",
"IncludeWorkflow": {
"Path": "${workflow_root}/export/disk_export.wf.json",
"Vars": {
"destination": "${gcs_url}",
"sbom_destination": "${sbom_destination}",
"source_disk": "el-install-disk",
"sbom_util_gcs_root": "${sbom_util_gcs_root}"
}
}
},
"cleanup-image": {
"DeleteResources": {
"Images": ["rhel-8-4-sap-byos-v${build_date}"]
}
}
},
"Dependencies": {
"export-image": ["build"],
"cleanup-image": ["build"]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{/*
Template to publish Red Hat Enterprise Linux for SAP images.
By default this template is setup to publish to the 'gce-image-builder'
project, the 'environment' variable can be used to publish to 'test', 'prod'
DeleteAfter is set to 180 days for all environments other than prod where no
time period is set.
*/}}
{
"Name": "rhel-8-6-sap-byos",
{{$work_project := printf "%q" "gce-image-builder" -}}
{{$endpoint := `"https://www.googleapis.com/compute/alpha/projects/"` -}}
{{$delete_after := `"24h*30*6"` -}}
{{if eq .environment "test" -}}
"WorkProject": {{$work_project}},
"PublishProject": "bct-prod-images",
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- else if eq .environment "prod" -}}
"WorkProject": {{$work_project}},
"PublishProject": "rhel-byos-cloud",
"ComputeEndpoint": {{$endpoint}},
{{- else -}}
"WorkProject": {{$work_project}},
"PublishProject": {{$work_project}},
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- end}}
{{$guest_features := `["VIRTIO_SCSI_MULTIQUEUE", "UEFI_COMPATIBLE", "SEV_CAPABLE", "GVNIC"]` -}}
{{$time := trimPrefix .publish_version "v"}}
"Images": [
{
"Prefix": "rhel-8-6-sap-byos",
"Family": "rhel-8-6-sap-byos",
"Description": "Red Hat, Red Hat Enterprise Linux for SAP BYOS, 8.6, x86_64 built on {{$time}}",
"Architecture": "X86_64",
"Licenses": [
"projects/rhel-sap-cloud/global/licenses/rhel-8-sap-byos"
],
"GuestOsFeatures": {{$guest_features}}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"Name": "rhel-8-6-sap-byos",
"Project": "gce-image-builder",
"Zone": "us-central1-b",
"GCSPath": "gs://gce-image-build-bucket/daisy/${USERNAME}",
"Vars": {
"build_date": {
"Value": "${TIMESTAMP}",
"Description": "Build datestamp used to version the image."
},
"google_cloud_repo": {
"Value": "stable",
"Description": "The Google Cloud Repo branch to use."
},
"workflow_root": {
"Value": "/workflows",
"Description": "Root of github workflows, defaults to /workflows in the container."
},
"gcs_url": {
"Required": true,
"Description": "The GCS path that image raw file exported to."
},
"sbom_destination": {
"Value": "${OUTSPATH}/export-image.sbom.json",
"Description": "SBOM final export destination, copies in place by default"
},
"installer_iso": {
"Required": true,
"Description": "The RHEL 8 installer ISO to build from."
},
"sbom_util_gcs_root": {
"Value": "",
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM."
}
},
"Steps": {
"build": {
"TimeOut": "60m",
"IncludeWorkflow": {
"Path": "${workflow_root}/image_build/enterprise_linux/rhel_8_6_sap_byos.wf.json",
"Vars": {
"build_date": "${build_date}",
"google_cloud_repo": "${google_cloud_repo}",
"installer_iso": "${installer_iso}",
"rhel_release": "rhel-8-6"
}
}
},
"export-image": {
"Timeout": "60m",
"IncludeWorkflow": {
"Path": "${workflow_root}/export/disk_export.wf.json",
"Vars": {
"destination": "${gcs_url}",
"sbom_destination": "${sbom_destination}",
"source_disk": "el-install-disk",
"sbom_util_gcs_root": "${sbom_util_gcs_root}"
}
}
},
"cleanup-image": {
"DeleteResources": {
"Images": ["rhel-8-6-sap-byos-v${build_date}"]
}
}
},
"Dependencies": {
"export-image": ["build"],
"cleanup-image": ["build"]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{/*
Template to publish Red Hat Enterprise Linux for SAP images.
By default this template is setup to publish to the 'gce-image-builder'
project, the 'environment' variable can be used to publish to 'test', 'prod'
DeleteAfter is set to 180 days for all environments other than prod where no
time period is set.
*/}}
{
"Name": "rhel-8-8-sap-byos",
{{$work_project := printf "%q" "gce-image-builder" -}}
{{$endpoint := `"https://www.googleapis.com/compute/alpha/projects/"` -}}
{{$delete_after := `"24h*30*6"` -}}
{{if eq .environment "test" -}}
"WorkProject": {{$work_project}},
"PublishProject": "bct-prod-images",
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- else if eq .environment "prod" -}}
"WorkProject": {{$work_project}},
"PublishProject": "rhel-byos-cloud",
"ComputeEndpoint": {{$endpoint}},
{{- else -}}
"WorkProject": {{$work_project}},
"PublishProject": {{$work_project}},
"ComputeEndpoint": {{$endpoint}},
"DeleteAfter": {{$delete_after}},
{{- end}}
{{$guest_features := `["VIRTIO_SCSI_MULTIQUEUE", "UEFI_COMPATIBLE", "SEV_CAPABLE", "GVNIC"]` -}}
{{$time := trimPrefix .publish_version "v"}}
"Images": [
{
"Prefix": "rhel-8-8-sap-byos",
"Family": "rhel-8-8-sap-byos",
"Description": "Red Hat, Red Hat Enterprise Linux for SAP BYOS, 8.8, x86_64 built on {{$time}}",
"Architecture": "X86_64",
"Licenses": [
"projects/rhel-sap-cloud/global/licenses/rhel-8-sap-byos"
],
"GuestOsFeatures": {{$guest_features}}
}
]
}
Loading

0 comments on commit b84a314

Please sign in to comment.