Skip to content

[Ubuntu] Add PostgreSQL to arm64 images#14234

Open
enescakir wants to merge 1 commit into
actions:mainfrom
ubicloud:enes/add-pg-arm64
Open

[Ubuntu] Add PostgreSQL to arm64 images#14234
enescakir wants to merge 1 commit into
actions:mainfrom
ubicloud:enes/add-pg-arm64

Conversation

@enescakir

Copy link
Copy Markdown
Contributor

x64 images already have PostgreSQL installed. Since psql is such a popular tool among developers, and GitHub now maintains arm64 images, it makes sense to install it on arm64 images as well.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

x64 images already have PostgreSQL installed. Since `psql` is such a
popular tool among developers, and GitHub now maintains arm64 images, it
makes sense to install it on arm64 images as well.
Copilot AI review requested due to automatic review settings June 15, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR enables PostgreSQL on Ubuntu ARM64 images and surfaces it in validation + software reporting.

Changes:

  • Adds the PostgreSQL install script to Ubuntu 22.04/24.04/26.04 ARM64 Packer builds.
  • Enables the PostgreSQL Pester test on ARM64.
  • Includes PostgreSQL in the generated “Databases” software report regardless of architecture.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
images/ubuntu/templates/build.ubuntu-26_04-arm64.pkr.hcl Adds PostgreSQL install step to the ARM64 image build.
images/ubuntu/templates/build.ubuntu-24_04-arm64.pkr.hcl Adds PostgreSQL install step to the ARM64 image build.
images/ubuntu/templates/build.ubuntu-22_04-arm64.pkr.hcl Adds PostgreSQL install step to the ARM64 image build.
images/ubuntu/scripts/tests/Databases.Tests.ps1 Runs PostgreSQL validation on ARM64 by removing the skip.
images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 Always emits PostgreSQL section in the software report.

Comment on lines 259 to 265
# Databases
$databasesTools = $installedSoftware.AddHeader("Databases")
$databasesTools.AddToolVersion("sqlite3", $(Get-SqliteVersion))
if (Test-IsX64) {
$databasesTools.AddNode($(Build-PostgreSqlSection))
}
$databasesTools.AddNode($(Build-PostgreSqlSection))
$databasesTools.AddNode($(Build-MySQLSection))
if (Test-IsUbuntu22-X64) {
$databasesTools.AddNode($(Build-MSSQLToolsSection))
Comment on lines +1 to 4
Describe "PostgreSQL" {
It "PostgreSQL Service" {
"sudo systemctl start postgresql" | Should -ReturnZeroExitCode
"pg_isready" | Should -OutputTextMatchingRegex "/var/run/postgresql:5432 - accepting connections"
@enescakir

Copy link
Copy Markdown
Contributor Author

Hi @v-SergeiRadich, @shamil-mubarakshin, What do you think about making the arm64 image more similar to x64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants