mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 12:48:21 +08:00
* add ubuntu 20 yml * add ubuntu 20.04 * add toolcache * add config * install ansible from oficial canonical repo * remove azure-cli * remove azure-devops-cli * libcurl3 -> libcurl4 * libcurl4 * install python2 * install clang9 directly from apt-get * remove swift * fix libcurl in the right place * remove docker-moby * remove dotnetcore-sdk * remove haskell * remove azul jdk * remove leingen * remove php * remove sbt * fix lsb release * remove mongodb * remove >> for go installation * install only python3 * remove pip version * remove add-apt-repository -y ppa:apt-fast/stable * remove android * remove powershell * remove python from tests * add java back * change heroku installation * get back leingen * get back android * remove set -e from java installation * get back apt-fast * remove git-lfs install from packagecloud * add pip installation for python2 * get back set -e to java-tools.sh * change ansible installation * add pip to python * Revert "install clang9 directly from apt-get" This reverts commite7d965f5b4. * Revert "change heroku installation" This reverts commit4fb3c0c3eb. * Revert "remove php" This reverts commitd64ce162b8. * change CRLF to LF for php installation * get back heroku to template * get back haskell * get back dotnet * install pwsh via snap * remove netcore 3.0 & 2.2 * add azpowershell * Upgrade to Az 3.8 * Update Validate-AzureModules.ps1 * Fix formatting in doc-string for Rust for Windows-image. Ensure output in ` images/win/Windows2019-Readme.md` looks proper. [Live in master right now](https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md#rust-64-bit), it looks kinda bad. * added workaround for default DNS * revert changes * Don\'t create backup sed file (#792) Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com> * Updated README with new rules of tool installation. (#793) * Update README with new rules of tool installation. * fixed typo * fix notes * another minor fix * fixed articles * fixed license line * Add Python toolcache installation from Github releases for Ubuntu (#704) Change logic to install Python to Ubuntu images to use GitHub releases from https://github.com/actions/python-versions * Software list: "do not change" label. (#796) * added_advises * change place for hided stirng. * changed to more direct message. * Fail fast in image generation if not enough disk space for customers (#767) * added checking free disk space Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com> * Add FS-iSCSITarget-Server (#805) * Updating readme file for win19 version 20200426.1 * Add Python tools installation from Github releases for Windows (#705) * Add Toolset provision for Windows Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com> * Updating readme file for macOS version 20200425.1 (#801) * Updating readme file for win16 version 20200426.1 * change min free space to 18000Mb (#814) * Added java 13 package in VM (#795) * Added java 13 package in VM * Fixed var name * Make changes from 11 to 13 * added java 13 for validate-javatool * Fix documentation for containertools * pre-create .composer folder to preserve permission * Fix minor glitch in installer message echo "cmake is already installed" * added workaround for default DNS (#819) * workaround reverted * Improve Windows provisioners stability (#733) * Improve Install-CloudFoundryCli.ps1 * Improve Install-Go.ps1 * Improve Install-Kind.ps1 * Improve Install-MysqlCli.ps1 * Improve Install-Rust.ps1 * Improve Install-SQLPowerShellTools.ps1 * Improve Update-AndroidSDK.ps1 * Fix issue with resolve * Improve Windows Visual Studio provisioners (#758) * Add retries to DotnetSDK provisioner * Improve VS provisioners * Fixes in syntax * Fixes in syntax * Rename Install-VS function * Remove bootstrapperName parameter from Install-VisualStudio * Small fix * Improve Windows browsers provisioners stability (#725) * Improve Chrome provisioner * Improve Edge provisioner * Improve Firefox provisioner * Resolve conflicts in Install-Chrome.ps1 * Add retry logic for javatools (#802) * Add retry logic for javatools * Add retry logic for Selenium server download (#807) * Add retry logic for selenium * Refactoring * Add retries for Selenium release info * Minor fix * Fix kubectl installation (#799) * Fix kubectl installation * Fix kubectl installation * Add --client flag * Fix for ubuntu 16.04 * Move kubectl apt packages installation to basic.sh * Combined separated scripts for kubectl installation to one * Minor fix * Remove apt-transport-https package from basic.sh * Delete helm init * Disable crash reporting (#826) * disable jit debugger * override settings asfter vs installation * Fix maven environment variable (#831) * Updating readme file for macOS version 20200430.1 (#846) * Add nodejs toolcache for windows (#840) * add installation of nodejs Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com> * Add nodejs tool cache for linux. (#839) * add nodejs * 4 node versions Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com> * Hide packages that are no longer required (#854) * Updating readme file for macOS version 20200430.1 * hide AutomaticRemove info * added SSDT workload to VS 2019 (#844) * Install Go to hostedtoolcache directory on Ubuntu image (#848) * Move go location to the toolcache * Install Go to hostedtoolcache directory on Windows image (#849) * Move installed go versions to toolcache directory * Updating readme file for win19 version 20200430.2 * Updating readme file for ubuntu16 version 20200430.2 * Install Windows 10 SDK (10.0.14393.795) via standalone installer (#862) * add win10 sdk 10.0.14393 * markdown changes * Add msys2 installation and validation (#632) * SQL Server Data-Tier Application Framework latest upgrade. (#863) * DACFx_latest_version_install * Fix the cleanup script. (#856) * Fix the cleanup script.The result is not returned to the variable because of the output redirect * Added the cancel timeout. * Update Haskell tool Stack (#860) * Update Haskell tool Stack * Update haskell script to install stack from get.haskellstack.org * Updating readme file for win16 version 20200505.1 * Updating readme file for ubuntu18 version 20200430.1 * Switch Expand-Archive to 7zip on Windows image generation (#861) * switch expand-archive to 7zip on windows * [Ubuntu] Add Azcopy10 (#871) * Add azcopy10 * Add spaces after azcopy * add condition to ansible * deprecated software Ubuntu 20.04 * install powershell Ubuntu 20.04 * use function in ansible * move preparemetadata.sh to installers folder * update preimagedata.sh ubuntu20 * add confition for dotnetsdk * scripts/installers/2004/android.sh * python.sh ubuntu 20.04 * simplify conditions * remove toolcache.json * get back note in readme * remove workaround for git-lfs * Az 3.8.0 Ubuntu 20.04 * fix kubernetes-tools in template * add helpers script to os.sh * remove old android, old cabal * remove platform tools * remove java7 for ubuntu20 * stay only go 1.14 Ubuntu 20.04 * add helper to python.sh * add os.sh helper to azpwsh and java * remove apis from documented * remove addons google-api * Install Az latest module * get back swift * set java 11 as default * change offer and sku * Revert "change offer and sku" This reverts commitd5d92a553a. * Unite mercurial scripts * combine basic scripts for ubuntu 18 & 20 * add os.sh to basic.sh * Revert "set java 11 as default" This reverts commitaada5b12b0. * set Java11 by default, set Java8 for Androidsdk * rework php script * remove rid of php.sh files * move installation to for loop * add disk space validation Co-authored-by: Christoph Bergmeister [MVP] <c.bergmeister@gmail.com> Co-authored-by: Jostein Kjønigsen <jostein@kjonigsen.net> Co-authored-by: Darii Nurgaleev <Darleev@github.com> Co-authored-by: Sergey Dolin <v-sedoli@microsoft.com> Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com> Co-authored-by: Alena Sviridenko <alenasviridenko@github.com> Co-authored-by: Vladimir Safonkin <vsafonkin@gmail.com> Co-authored-by: Dariy Nurgaleev <50947177+Darleev@users.noreply.github.com> Co-authored-by: Nikita Bykov <49442273+nikita-bykov@users.noreply.github.com> Co-authored-by: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Co-authored-by: Image generation service account <no-reply@microsoft.com> Co-authored-by: Maksim Petrov <47208721+vmapetr@users.noreply.github.com> Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com> Co-authored-by: phozzy <arthur.fayzullin@gmail.com> Co-authored-by: Jorgen Thelin <jthelin@microsoft.com> Co-authored-by: Dmitry Shibanov <shibanov-1997@inbox.ru> Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com> Co-authored-by: cage200 <patruadrian@yahoo.com> Co-authored-by: Junyoung Clare Jang <jjc9310@gmail.com> Co-authored-by: Dibir Magomedsaygitov <61747324+dibir-magomedsaygitov@users.noreply.github.com> Co-authored-by: Aleksandr Chebotov <v-aleche@microsoft.com>
377 lines
16 KiB
JSON
377 lines
16 KiB
JSON
{
|
|
"variables": {
|
|
"commit_url": "{{env `COMMIT_URL`}}",
|
|
"client_id": "{{env `ARM_CLIENT_ID`}}",
|
|
"client_secret": "{{env `ARM_CLIENT_SECRET`}}",
|
|
"subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}",
|
|
"tenant_id": "{{env `ARM_TENANT_ID`}}",
|
|
"resource_group": "{{env `ARM_RESOURCE_GROUP`}}",
|
|
"storage_account": "{{env `ARM_STORAGE_ACCOUNT`}}",
|
|
"temp_resource_group_name": "{{env `TEMP_RESOURCE_GROUP_NAME`}}",
|
|
"location": "{{env `ARM_RESOURCE_LOCATION`}}",
|
|
"virtual_network_name": "{{env `VNET_NAME`}}",
|
|
"virtual_network_resource_group_name": "{{env `VNET_RESOURCE_GROUP`}}",
|
|
"virtual_network_subnet_name": "{{env `VNET_SUBNET`}}",
|
|
"private_virtual_network_with_public_ip": "{{env `PRIVATE_VIRTUAL_NETWORK_WITH_PUBLIC_IP`}}",
|
|
"image_folder": "/imagegeneration",
|
|
"commit_file": "/imagegeneration/commit.txt",
|
|
"imagedata_file": "/imagegeneration/imagedata.json",
|
|
"metadata_file": "/imagegeneration/metadatafile",
|
|
"installer_script_folder": "/imagegeneration/installers",
|
|
"helper_script_folder": "/imagegeneration/helpers",
|
|
"vm_size": "Standard_DS2_v2",
|
|
"capture_name_prefix": "packer",
|
|
"image_version": "dev",
|
|
"image_os": "ubuntu16",
|
|
"github_feed_token": null,
|
|
"run_validation_diskspace": "false",
|
|
"go_default": "1.14",
|
|
"go_versions": "1.11 1.12 1.13 1.14"
|
|
},
|
|
"sensitive-variables": ["client_secret", "github_feed_token"],
|
|
"builders": [
|
|
{
|
|
"type": "azure-arm",
|
|
"client_id": "{{user `client_id`}}",
|
|
"client_secret": "{{user `client_secret`}}",
|
|
"subscription_id": "{{user `subscription_id`}}",
|
|
"tenant_id": "{{user `tenant_id`}}",
|
|
|
|
"location": "{{user `location`}}",
|
|
"vm_size": "{{user `vm_size`}}",
|
|
"resource_group_name": "{{user `resource_group`}}",
|
|
"storage_account": "{{user `storage_account`}}",
|
|
"temp_resource_group_name": "{{user `temp_resource_group_name`}}",
|
|
"capture_container_name": "images",
|
|
"capture_name_prefix": "{{user `capture_name_prefix`}}",
|
|
"virtual_network_name": "{{user `virtual_network_name`}}",
|
|
"virtual_network_resource_group_name": "{{user `virtual_network_resource_group_name`}}",
|
|
"virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}",
|
|
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
|
|
"os_type": "Linux",
|
|
"image_publisher": "Canonical",
|
|
"image_offer": "UbuntuServer",
|
|
"image_sku": "16.04-LTS",
|
|
"os_disk_size_gb": "86"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"mkdir {{user `image_folder`}}",
|
|
"chmod 777 {{user `image_folder`}}",
|
|
"echo {{user `commit_url`}} > {{user `commit_file`}}",
|
|
"chmod +r {{user `commit_file`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/base/repos.sh"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"apt-get update",
|
|
"apt-get dist-upgrade -y",
|
|
"systemctl disable apt-daily.service",
|
|
"systemctl disable apt-daily.timer",
|
|
"systemctl disable apt-daily-upgrade.timer",
|
|
"systemctl disable apt-daily-upgrade.service",
|
|
"echo '* soft nofile 65536 \n* hard nofile 65536' >> /etc/security/limits.conf",
|
|
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session",
|
|
"echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive",
|
|
"echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "{{template_dir}}/scripts/helpers",
|
|
"destination": "{{user `helper_script_folder`}}"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "{{template_dir}}/scripts/installers",
|
|
"destination": "{{user `installer_script_folder`}}"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/preparemetadata.sh"
|
|
],
|
|
"environment_vars": [
|
|
"IMAGE_VERSION={{user `image_version`}}",
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/preimagedata.sh"
|
|
],
|
|
"environment_vars": [
|
|
"IMAGE_VERSION={{user `image_version`}}",
|
|
"IMAGEDATA_FILE={{user `imagedata_file`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/configure-environment.sh"
|
|
],
|
|
"environment_vars": [
|
|
"IMAGE_VERSION={{user `image_version`}}",
|
|
"IMAGE_OS={{user `image_os`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/complete-snap-setup.sh"
|
|
],
|
|
"environment_vars": [
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/homebrew.sh"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"DEBIAN_FRONTEND=noninteractive"
|
|
],
|
|
"execute_command": "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"expect_disconnect": true,
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/base/reboot.sh"
|
|
],
|
|
"execute_command": "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"pause_before": "30s",
|
|
"timeout": "10m",
|
|
"start_retry_timeout": "10s",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/homebrew-validate.sh"
|
|
],
|
|
"execute_command": "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/7-zip.sh",
|
|
"{{template_dir}}/scripts/installers/ansible.sh",
|
|
"{{template_dir}}/scripts/installers/azcopy.sh",
|
|
"{{template_dir}}/scripts/installers/azure-cli.sh",
|
|
"{{template_dir}}/scripts/installers/azure-devops-cli.sh",
|
|
"{{template_dir}}/scripts/installers/1604/basic.sh",
|
|
"{{template_dir}}/scripts/installers/aliyun-cli.sh",
|
|
"{{template_dir}}/scripts/installers/aws.sh",
|
|
"{{template_dir}}/scripts/installers/build-essential.sh",
|
|
"{{template_dir}}/scripts/installers/nvm.sh",
|
|
"{{template_dir}}/scripts/installers/clang.sh",
|
|
"{{template_dir}}/scripts/installers/swift.sh",
|
|
"{{template_dir}}/scripts/installers/cmake.sh",
|
|
"{{template_dir}}/scripts/installers/docker-compose.sh",
|
|
"{{template_dir}}/scripts/installers/docker-moby.sh",
|
|
"{{template_dir}}/scripts/installers/dotnetcore-sdk.sh",
|
|
"{{template_dir}}/scripts/installers/erlang.sh",
|
|
"{{template_dir}}/scripts/installers/firefox.sh",
|
|
"{{template_dir}}/scripts/installers/gcc.sh",
|
|
"{{template_dir}}/scripts/installers/gfortran.sh",
|
|
"{{template_dir}}/scripts/installers/git.sh",
|
|
"{{template_dir}}/scripts/installers/github-cli.sh",
|
|
"{{template_dir}}/scripts/installers/google-chrome.sh",
|
|
"{{template_dir}}/scripts/installers/google-cloud-sdk.sh",
|
|
"{{template_dir}}/scripts/installers/haskell.sh",
|
|
"{{template_dir}}/scripts/installers/heroku.sh",
|
|
"{{template_dir}}/scripts/installers/hhvm.sh",
|
|
"{{template_dir}}/scripts/installers/image-magick.sh",
|
|
"{{template_dir}}/scripts/installers/java-tools.sh",
|
|
"{{template_dir}}/scripts/installers/kind.sh",
|
|
"{{template_dir}}/scripts/installers/kubernetes-tools.sh",
|
|
"{{template_dir}}/scripts/installers/leiningen.sh",
|
|
"{{template_dir}}/scripts/installers/mercurial.sh",
|
|
"{{template_dir}}/scripts/installers/miniconda.sh",
|
|
"{{template_dir}}/scripts/installers/mono.sh",
|
|
"{{template_dir}}/scripts/installers/mysql.sh",
|
|
"{{template_dir}}/scripts/installers/nodejs.sh",
|
|
"{{template_dir}}/scripts/installers/bazel.sh",
|
|
"{{template_dir}}/scripts/installers/phantomjs.sh",
|
|
"{{template_dir}}/scripts/installers/php.sh",
|
|
"{{template_dir}}/scripts/installers/pollinate.sh",
|
|
"{{template_dir}}/scripts/installers/postgresql.sh",
|
|
"{{template_dir}}/scripts/installers/powershellcore.sh",
|
|
"{{template_dir}}/scripts/installers/ruby.sh",
|
|
"{{template_dir}}/scripts/installers/rust.sh",
|
|
"{{template_dir}}/scripts/installers/julia.sh",
|
|
"{{template_dir}}/scripts/installers/sbt.sh",
|
|
"{{template_dir}}/scripts/installers/selenium.sh",
|
|
"{{template_dir}}/scripts/installers/sphinx.sh",
|
|
"{{template_dir}}/scripts/installers/subversion.sh",
|
|
"{{template_dir}}/scripts/installers/terraform.sh",
|
|
"{{template_dir}}/scripts/installers/packer.sh",
|
|
"{{template_dir}}/scripts/installers/vcpkg.sh",
|
|
"{{template_dir}}/scripts/installers/zeit-now.sh",
|
|
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
|
"{{template_dir}}/scripts/installers/mongodb.sh",
|
|
"{{template_dir}}/scripts/installers/rndgenerator.sh"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"DEBIAN_FRONTEND=noninteractive"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/aws-sam-cli.sh"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"DEBIAN_FRONTEND=noninteractive"
|
|
],
|
|
"execute_command": "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "{{template_dir}}/toolcache-1604.json",
|
|
"destination": "{{user `installer_script_folder`}}/toolcache.json"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "{{template_dir}}/toolset-1604.json",
|
|
"destination": "{{user `installer_script_folder`}}/toolset.json"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/1604/android.sh",
|
|
"{{template_dir}}/scripts/installers/azpowershell.sh",
|
|
"{{template_dir}}/scripts/helpers/containercache.sh",
|
|
"{{template_dir}}/scripts/installers/hosted-tool-cache.sh",
|
|
"{{template_dir}}/scripts/installers/pypy.sh",
|
|
"{{template_dir}}/scripts/installers/python.sh",
|
|
"{{template_dir}}/scripts/installers/test-toolcache.sh"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
|
|
"GITHUB_FEED_TOKEN={{user `github_feed_token`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"{{template_dir}}/scripts/installers/go.sh"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"GO_VERSIONS={{user `go_versions`}}",
|
|
"GO_DEFAULT={{user `go_default`}}"
|
|
],
|
|
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/Install-Toolset.ps1",
|
|
"{{template_dir}}/scripts/installers/Validate-Toolset.ps1"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/boost.sh"
|
|
],
|
|
"environment_vars": [
|
|
"METADATA_FILE={{user `metadata_file`}}",
|
|
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
|
|
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/cleanup.sh"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "{{user `metadata_file`}}",
|
|
"destination": "{{template_dir}}/Ubuntu1604-README.md",
|
|
"direction": "download"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"rm -rf {{user `helper_script_folder`}}",
|
|
"rm -rf {{user `installer_script_folder`}}",
|
|
"chmod 755 {{user `image_folder`}}"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"scripts":[
|
|
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
|
|
],
|
|
"environment_vars": [
|
|
"RUN_VALIDATION={{user `run_validation_diskspace`}}"
|
|
]
|
|
},
|
|
{
|
|
"type": "file",
|
|
"source": "{{template_dir}}/config/ubuntu1604.conf",
|
|
"destination": "/tmp/"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"mkdir -p /etc/vsts",
|
|
"cp /tmp/ubuntu1604.conf /etc/vsts/machine_instance.conf"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"inline": [
|
|
"sleep 30",
|
|
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
|
|
],
|
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
|
}
|
|
]
|
|
}
|