mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Merge branch 'master' of github.com:dmitry-shibanov/virtual-environments into v-dmshib/fix-chromedriver-directory
This commit is contained in:
16
images/linux/scripts/installers/postgresql.sh
Normal file
16
images/linux/scripts/installers/postgresql.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
## File: postgresql.sh
|
||||
## Desc: Installs Postgresql
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/document.sh
|
||||
|
||||
echo "Install libpq-dev"
|
||||
apt-get install libpq-dev
|
||||
|
||||
echo "Install Postgresql Client"
|
||||
apt-get install postgresql-client
|
||||
|
||||
DocumentInstalledItem "$(psql -V 2>&1 | cut -d ' ' -f 1,2,3)"
|
||||
@@ -153,6 +153,7 @@
|
||||
"{{template_dir}}/scripts/installers/phantomjs.sh",
|
||||
"{{template_dir}}/scripts/installers/1604/php.sh",
|
||||
"{{template_dir}}/scripts/installers/pollinate.sh",
|
||||
"{{template_dir}}/scripts/installers/postgresql.sh",
|
||||
"{{template_dir}}/scripts/installers/1604/powershellcore.sh",
|
||||
"{{template_dir}}/scripts/installers/ruby.sh",
|
||||
"{{template_dir}}/scripts/installers/rust.sh",
|
||||
|
||||
@@ -156,6 +156,7 @@
|
||||
"{{template_dir}}/scripts/installers/phantomjs.sh",
|
||||
"{{template_dir}}/scripts/installers/1804/php.sh",
|
||||
"{{template_dir}}/scripts/installers/pollinate.sh",
|
||||
"{{template_dir}}/scripts/installers/postgresql.sh",
|
||||
"{{template_dir}}/scripts/installers/1804/powershellcore.sh",
|
||||
"{{template_dir}}/scripts/installers/ruby.sh",
|
||||
"{{template_dir}}/scripts/installers/rust.sh",
|
||||
|
||||
@@ -355,6 +355,12 @@
|
||||
"elevated_user": "{{user `install_user`}}",
|
||||
"elevated_password": "{{user `install_password`}}"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-VSWhere.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
@@ -774,6 +780,12 @@
|
||||
"{{ template_dir }}/scripts/Installers/Validate-Vcpkg.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Validate-VSWhere.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
|
||||
6
images/win/scripts/Installers/Install-VSWhere.ps1
Normal file
6
images/win/scripts/Installers/Install-VSWhere.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
## File: Install-VSWhere.ps1
|
||||
## Desc: Install latest stable version of VSWhere
|
||||
################################################################################
|
||||
|
||||
choco install vswhere -y
|
||||
25
images/win/scripts/Installers/Validate-VSWhere.ps1
Normal file
25
images/win/scripts/Installers/Validate-VSWhere.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
## File: Validate-VSWhere.ps1
|
||||
## Desc: Validate vswhere
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'vswhere')
|
||||
{
|
||||
Write-Host "vswhere $(vswhere) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "vswhere is not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "VSWhere"
|
||||
$VswhereVersion = $(vswhere)
|
||||
|
||||
$Description = @"
|
||||
_Version_: $VswhereVersion<br/>
|
||||
* PATH: contains location of vswhere.exe
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Reference in New Issue
Block a user