Skip to content

Commit

Permalink
Fixing SQL Server 2022 Express (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkatyl authored Dec 10, 2024
1 parent 3d6b8ac commit 8d520b9
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"build": {
"Timeout": "${timeout}",
"IncludeWorkflow": {
"Path": "${workflow_root}/image_build/sqlserver/sql-2017-express-windows-2022-dc.wf.json",
"Path": "${workflow_root}/image_build/sqlserver/sql-2022-express-windows-2022-dc.wf.json",
"Vars": {
"build_date": "${TIMESTAMP}",
"install_disk": "disk-install",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"Name": "sql-2022-express-windows-2022-dc-image-build",
"Vars": {
"build_date": "${TIMESTAMP}",
"install_disk": "disk-install",
"publish_project": "${PROJECT}",
"sql_server_media": {
"Required": true,
"Description": "GCS or local path to Windows installer media"
},
"source_image_project": {
"Value": "windows-cloud",
"Description": "Project to source base image from."
},
"ssms_exe": {
"Required": true,
"Description": "GCS or local path to SSMS installer"
},
"timeout": {
"Value": "2h",
"Description": "The timeout to set for the image build."
},
"sbom_destination": {
"Value": "${OUTSPATH}/export-image.sbom.json",
"Description": "The GCS url that the sbom file exported to."
},
"sbom_util_gcs_root": {
"Value": "",
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM."
},
"img_family": {
"Value": "sql-exp-2022-win-2022",
"Description": "The image family and component name for the sbom."
}
},
"Steps": {
"build-sql-image": {
"TimeOut": "${timeout}",
"IncludeWorkflow": {
"Path": "./sqlserver.wf.json",
"Vars": {
"sql_server_config": "./configs/sql_server_2022.ini",
"sql_server_media": "${sql_server_media}",
"source_image": "projects/${source_image_project}/global/images/family/windows-2022",
"install_disk": "${install_disk}",
"ssms_exe": "${ssms_exe}",
"timeout": "${timeout}",
"sbom_destination": "${sbom_destination}",
"sbom_util_gcs_root": "${sbom_util_gcs_root}",
"img_family": "${img_family}"
}
}
},
"create-image": {
"CreateImages": [
{
"Name": "sql-2022-enterprise-windows-2022-dc-v${build_date}",
"SourceDisk": "${install_disk}",
"Licenses": [
"projects/windows-sql-cloud/global/licenses/sql-server-2022-express"
],
"Description": "Microsoft, SQL Server 2022 Enterprise, on Windows Server 2025, x64 built on ${build_date}",
"GuestOsFeatures": ["MULTI_IP_SUBNET", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC"],
"Family": "${img_family}",
"Project": "${publish_project}",
"NoCleanup": true,
"ExactName": true
}
]
}
},
"Dependencies": {
"create-image": ["build-sql-image"]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"Name": "sql-2022-express-windows-2025-dc-image-build",
"Vars": {
"build_date": "${TIMESTAMP}",
"install_disk": "disk-install",
"publish_project": "${PROJECT}",
"sql_server_media": {
"Required": true,
"Description": "GCS or local path to Windows installer media"
},
"source_image_project": {
"Value": "windows-cloud",
"Description": "Project to source base image from."
},
"ssms_exe": {
"Required": true,
"Description": "GCS or local path to SSMS installer"
},
"timeout": {
"Value": "2h",
"Description": "The timeout to set for the image build."
},
"sbom_destination": {
"Value": "${OUTSPATH}/export-image.sbom.json",
"Description": "The GCS url that the sbom file exported to."
},
"sbom_util_gcs_root": {
"Value": "",
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM."
},
"img_family": {
"Value": "sql-exp-2022-win-2025",
"Description": "The image family and component name for the sbom."
}
},
"Steps": {
"build-sql-image": {
"TimeOut": "${timeout}",
"IncludeWorkflow": {
"Path": "./sqlserver.wf.json",
"Vars": {
"sql_server_config": "./configs/sql_server_2022.ini",
"sql_server_media": "${sql_server_media}",
"source_image": "projects/${source_image_project}/global/images/family/windows-2025",
"install_disk": "${install_disk}",
"ssms_exe": "${ssms_exe}",
"timeout": "${timeout}",
"sbom_destination": "${sbom_destination}",
"sbom_util_gcs_root": "${sbom_util_gcs_root}",
"img_family": "${img_family}"
}
}
},
"create-image": {
"CreateImages": [
{
"Name": "sql-2022-express-windows-2025-dc-v${build_date}",
"SourceDisk": "${install_disk}",
"Licenses": [
"projects/windows-sql-cloud/global/licenses/sql-server-2022-express"
],
"Description": "Microsoft, SQL Server 2022 Express, on Windows Server 2025, x64 built on ${build_date}",
"GuestOsFeatures": ["MULTI_IP_SUBNET", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC"],
"Family": "${img_family}",
"Project": "${publish_project}",
"NoCleanup": true,
"ExactName": true
}
]
}
},
"Dependencies": {
"create-image": ["build-sql-image"]
}
}

0 comments on commit 8d520b9

Please sign in to comment.