mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
feat: explain how to start PostgreSQL (#4909)
This commit is contained in:
@@ -33,6 +33,21 @@ function Get-SqlPackageVersion {
|
|||||||
return "SqlPackage $sqlPackageVersion"
|
return "SqlPackage $sqlPackageVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Build-PostgreSqlSection {
|
||||||
|
$output = ""
|
||||||
|
|
||||||
|
$output += New-MDHeader "PostgreSQL" -Level 4
|
||||||
|
$output += New-MDList -Style Unordered -Lines @(
|
||||||
|
(Get-PostgreSqlVersion ),
|
||||||
|
"PostgreSQL Server (user:postgres)"
|
||||||
|
)
|
||||||
|
$output += New-MDCode -Lines @(
|
||||||
|
"PostgreSQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start postgresql.service'"
|
||||||
|
)
|
||||||
|
|
||||||
|
return $output
|
||||||
|
}
|
||||||
|
|
||||||
function Build-MySQLSection {
|
function Build-MySQLSection {
|
||||||
$output = ""
|
$output = ""
|
||||||
|
|
||||||
|
|||||||
@@ -236,12 +236,12 @@ $markdown += New-MDList -Lines $tools -Style Unordered
|
|||||||
|
|
||||||
$markdown += New-MDHeader "Databases" -Level 3
|
$markdown += New-MDHeader "Databases" -Level 3
|
||||||
$markdown += New-MDList -Style Unordered -Lines (@(
|
$markdown += New-MDList -Style Unordered -Lines (@(
|
||||||
(Get-PostgreSqlVersion),
|
|
||||||
(Get-MongoDbVersion),
|
(Get-MongoDbVersion),
|
||||||
(Get-SqliteVersion)
|
(Get-SqliteVersion)
|
||||||
) | Sort-Object
|
) | Sort-Object
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$markdown += Build-PostgreSqlSection
|
||||||
$markdown += Build-MySQLSection
|
$markdown += Build-MySQLSection
|
||||||
$markdown += Build-MSSQLToolsSection
|
$markdown += Build-MSSQLToolsSection
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user