Compare commits

...

2163 Commits

Author SHA1 Message Date
Image generation service account 85d96435f1 Updating readme file for macOS-11 version 20230516.1 2023-05-30 09:23:58 +00:00
sergei-pyshnoi 035dc70f77 [Ubuntu] Add archive.ubuntu.com to sources.list (#7616) 2023-05-29 13:32:19 +02:00
Alexey-Ayupov b892aebfe8 Update azure function name (#7636) 2023-05-25 19:06:11 +02:00
Mikhail Koliada 156ad8a318 README: explain -latest migration process (#7634) 2023-05-24 21:09:38 +02:00
Erik Bershel 74433f1ca8 [macOS] Update condition for automation mode (#7626) 2023-05-24 15:34:44 +02:00
Vasilii Polikarpov 7042fdacbc [macOS] Add XCode 14.3.1 for macOS 13 (#7631) 2023-05-24 15:28:29 +02:00
Jongwoo Han 5ec1b18115 Correct typo from 'Delimeter' to 'Delimiter' (#7625) 2023-05-24 10:14:46 +02:00
Alexey-Ayupov abfa6d4644 [Ubuntu] dearmor gpg key for google-cloud-sdk (#7627) 2023-05-24 10:07:06 +02:00
Vasilii Polikarpov 730c1e6bc4 Fix url for the Ubuntu 20 libcontainers repo key (#7629) 2023-05-23 17:13:16 +02:00
Erik Bershel e1366c9a6f [macOS] Fix Python2 installer condition (#7624) 2023-05-22 21:52:24 +02:00
ilia-shipitsin 9d9b3a110d [macos] add reties for dotnet download (#7601) 2023-05-18 17:08:04 +02:00
Tamerlan Bimzhanov 92893feef2 Fix incorrect Homebrew link in README.md (#7544) 2023-05-18 13:31:39 +02:00
Mikhail Koliada 775c64f21c [macOS] fix preimage data for Ventura (#7594) 2023-05-18 12:53:10 +02:00
Alexey-Ayupov dbd131cc88 Update actions labels (#7614) 2023-05-18 12:17:34 +02:00
Shamil Mubarakshin 7e295782c3 Add double quote escaping and update documentation (#7613) 2023-05-18 09:26:10 +02:00
ilia-shipitsin f2b1fa1399 [macos] enable python3 (and pipx) on macOS13 (#7599) 2023-05-18 09:21:55 +02:00
Vasilii Polikarpov 4ca86478ee Separate VM resizing and moving into two different scripts (#7584) 2023-05-17 16:42:02 +02:00
Alexey-Ayupov eb53372646 [macOS] update scripts to fix image generation (#7608) 2023-05-17 11:39:37 +02:00
Shamil Mubarakshin 111d6ae5cf [macos] add architecture references (#7593) 2023-05-16 16:39:03 +02:00
Alexey-Ayupov cc2b556e65 [ubuntu] fix the condition in docker-moby.sh (#7595) 2023-05-15 19:33:52 +02:00
Alexey-Ayupov 69acda60ec Update labels for CI pipelines (GH actions) (#7598) 2023-05-15 15:20:01 +02:00
ilia-shipitsin efe07e28c1 [macos] systeminfo.txt: remove debug leftover (#7592) 2023-05-15 12:24:20 +02:00
Alexey-Ayupov fe2a4862ad [Windows] Remove Python 2.7 from toolcache (#7583) 2023-05-12 17:26:27 +02:00
Alexey-Ayupov 7503cd841a [ubuntu] Remove Python 2.7 from toolcache (#7582) 2023-05-12 14:01:36 +02:00
Alexey-Ayupov 8b099099d9 [macos] prepare repository for ARM64 arch (#7396) 2023-05-12 13:30:13 +02:00
Vasilii Polikarpov b6c7afbb26 Fix variable references in Ubuntu 22 template (#7580) 2023-05-12 11:50:17 +02:00
Vasilii Polikarpov 0997df9069 Keep imagegeneration scripts in macOS and Ubuntu (#7572) 2023-05-12 09:35:09 +02:00
github-actions[bot] 91f9205adb Updating readme file for macos-13 version 20230509.4 (#7569)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 20:38:07 +00:00
Vasilii Polikarpov e62bcae84b Add template for minimal image and update tutorial (#7461) 2023-05-11 19:58:03 +02:00
github-actions[bot] 8ff6083faf Updating readme file for macOS-12 version 20230505.1 (#7563)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 17:46:45 +00:00
Shamil Mubarakshin 648fecab61 Update vctools v143 to 14.35 (#7558) 2023-05-11 18:59:40 +02:00
Alexey-Ayupov db1ea288ef [WinLin] Remove schedules from Azure pipelines (#7576) 2023-05-11 17:52:01 +02:00
github-actions[bot] 8a3922ad30 Updating readme file for win22 version 20230508.3 (#7557)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 14:05:00 +00:00
github-actions[bot] d4b9dcfb15 Updating readme file for win19 version 20230508.1 (#7562)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 14:03:39 +00:00
github-actions[bot] 4b678ffee8 Updating readme file for macOS-11 version 20230504.1 (#7552)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 10:31:03 +00:00
Vasilii Polikarpov 3ae81a0835 [Ubuntu] Test firefox without sudo (#7571) 2023-05-11 10:21:01 +02:00
github-actions[bot] 4fe7f6bc86 Updating readme file for ubuntu22 version 20230507.1 (#7551)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 06:29:58 +00:00
github-actions[bot] ffa4d6a829 Updating readme file for ubuntu20 version 20230507.1 (#7550)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-11 06:28:26 +00:00
Mikhail Koliada 0d51bb3f73 README: distinguish announcements section (#7568) 2023-05-10 18:29:23 +02:00
sergei-pyshnoi 8bac0d5de1 [macOS] fix edge installation (#7553) 2023-05-09 19:41:47 +02:00
Vasilii Polikarpov e2166f086d Fix issue where json encoding is wrong in PS5 (#7538) 2023-05-09 17:15:03 +02:00
github-actions[bot] 8f4a9974b1 Updating readme file for macOS-12 version 20230430.1 (#7530)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-09 09:06:11 +00:00
github-actions[bot] e93f8920c1 Updating readme file for win19 version 20230502.2 (#7537)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-05-08 21:34:37 +00:00
github-actions[bot] 0021a7fb65 Updating readme file for macOS-11 version 20230429.1 (#7532)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-05-08 12:19:11 +02:00
Alexey-Ayupov eec1e84e72 [macOS] add RunAll-Tests.ps1 to the macOS-13 (#7524) 2023-05-05 12:13:47 +02:00
Shamil Mubarakshin fddf50db2a Add Ruby and Python to toolcache (#7529) 2023-05-05 08:38:29 +02:00
github-actions[bot] 8cf8e32bb4 Updating readme file for win22 version 20230502.2 (#7528)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-05-04 15:01:35 +00:00
Alexey-Ayupov f4bbf91a08 [macOS] Delete macOS 10.15 readme file (#7520) 2023-05-02 16:28:19 +02:00
ilia-shipitsin 0b558a470e [macos] add macOS-13 to issue template (#7515) 2023-04-29 09:21:12 +02:00
github-actions[bot] 816adb335a Updating readme file for macOS-12 version 20230425.1 (#7501)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-28 14:03:43 +00:00
Alexey-Ayupov a67e67d42e Add exclusion for macOS-12 for Action: restart (#7511) 2023-04-28 10:35:14 +02:00
Alexey-Ayupov 9f5b4b2fd3 [macOS] Fix software report for macos 13 (#7510) 2023-04-28 10:07:08 +02:00
github-actions[bot] a32a87c346 Updating readme file for macOS-11 version 20230425.1 (#7499)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-28 06:57:57 +00:00
Erik Bershel 7be76e40f4 [Ubuntu] Update libssl1.1 link for SQL installer (#7500) 2023-04-27 17:43:18 +02:00
github-actions[bot] 0a7aae6aaf Windows Server 2019 (20230425) Image Update (#7494)
* Updating readme file for win19 version 20230425.1

* Update Windows2019-Readme.md

---------

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-27 14:25:53 +00:00
Steve-Glass 6a893d200c Update REAME with OS 13 and remove 10.15 (#7481) 2023-04-27 15:37:05 +02:00
github-actions[bot] e651c58384 Windows Server 2022 (20230425) Image Update (#7493)
* Updating readme file for win22 version 20230425.1

* Update Windows2022-Readme.md

---------

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-27 12:46:01 +00:00
Delphine Roux 0636feb5aa updates for MacOS M1/arm64 runners (#7453) 2023-04-27 09:21:48 +02:00
Delphine Roux 276bcfd0bb Add ca cert to the command line to use TLS in DVT racks (#7489) 2023-04-27 09:20:13 +02:00
github-actions[bot] 3d09ba536c Updating readme file for ubuntu20 version 20230426.1 (#7496)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-26 18:18:07 +00:00
github-actions[bot] a454664a1d Updating readme file for ubuntu22 version 20230426.1 (#7497)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-26 17:33:11 +00:00
Mikhail Koliada b9ca7b686b fix software report output for packer (#7495) 2023-04-26 17:22:01 +02:00
Jonghyun Kim 763969f965 Update macos-13-Readme.md (#7485) 2023-04-25 11:58:05 +02:00
Steve-Glass df617bee5e Merge pull request #7484 from actions/Steve-Glass-patch-1
Create macos-13-Readme.md
2023-04-24 17:19:20 -04:00
Steve-Glass 159de7fd68 Create macos-13-Readme.md 2023-04-24 17:14:01 -04:00
github-actions[bot] cc369a2b40 Windows Server 2022 (20230417) Image Update (#7454)
* Updating readme file for win22 version 20230417.1

* Update Windows2022-Readme.md

---------

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-21 20:51:12 +00:00
github-actions[bot] d8d4d924ad Windows Server 2019 (20230417) Image Update (#7456)
* Updating readme file for win19 version 20230417.2

* Update Windows2019-Readme.md

---------

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-21 20:10:51 +00:00
github-actions[bot] 1330d64b22 Updating readme file for macOS-11 version 20230416.1 (#7459)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-21 17:04:06 +00:00
github-actions[bot] e404b252b1 Updating readme file for macOS-12 version 20230416.1 (#7458)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-21 08:06:57 +00:00
github-actions[bot] af6dd20503 Updating readme file for ubuntu22 version 20230417.1 (#7457)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-20 10:20:30 +00:00
github-actions[bot] 7e61c2e40d Updating readme file for ubuntu20 version 20230417.1 (#7455)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-20 09:12:12 +00:00
Alexey-Ayupov 265af52853 Remove variable mask, add repo secrets (#7462) 2023-04-19 10:49:36 +02:00
Vasilii Polikarpov bea98d0749 Enable exit on error immediately after download attempt (#7444) 2023-04-18 17:26:22 +02:00
Vasilii Polikarpov ff9186f1dc Remove vscode settings (#7448) 2023-04-17 16:42:51 +02:00
Alexey-Ayupov 871fce1661 Support ARM64 architecture (#7451) 2023-04-17 16:42:19 +02:00
Vasilii Polikarpov 5657dec7af [Windows|Ubuntu] Remove obsolete workarounds (#7431) 2023-04-17 13:31:56 +02:00
Per Lundberg 0f23104156 README: fix typo (#7445) 2023-04-16 14:26:31 +02:00
Dan Friedman e23a588bad Add .NET environment variables to windows image (#7400) 2023-04-16 14:25:30 +02:00
Allan c44e921e0b Fix typo (#7438) 2023-04-14 11:27:42 +02:00
github-actions[bot] 8d09f734cd Updating readme file for macOS-11 version 20230411.1 (#7429)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-14 09:26:22 +00:00
github-actions[bot] ef281ab8c6 Updating readme file for win19 version 20230407.1 (#7420)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-14 03:47:59 +00:00
github-actions[bot] aa082ca119 Updating readme file for macOS-12 version 20230411.1 (#7432)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-13 22:30:19 +00:00
github-actions[bot] fc3f23976b Updating readme file for ubuntu22 version 20230409.1 (#7419)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-13 12:27:52 +00:00
github-actions[bot] 2fe41b81c5 Updating readme file for ubuntu20 version 20230409.1 (#7418)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-13 12:19:19 +00:00
github-actions[bot] 0f4a3567b1 Updating readme file for win22 version 20230407.1 (#7416)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-13 10:10:40 +00:00
Mikhail Koliada 9f90e76a0c [Ubuntu] get back to normal erlang installation (#7428) 2023-04-12 14:55:21 +02:00
Vasilii Polikarpov 3220eb4c1b Fix failure when tags are set for Ubuntu 22 generation (#7417) 2023-04-12 14:32:59 +02:00
sergei-pyshnoi f01bed49d5 [windows] fix version mongodb (#7425) 2023-04-12 04:05:35 +02:00
Vasilii Polikarpov 5777d37af1 Fix ip address whiltelist value for hcl2 templates (#7409) 2023-04-10 14:14:48 +02:00
github-actions[bot] 833ffa3aab Updating readme file for macOS-12 version 20230328.1 (#7382)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-04-06 20:28:49 +02:00
github-actions[bot] d0487f5869 Updating readme file for macOS-11 version 20230328.2 (#7383)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-04-06 20:28:31 +02:00
Shamil Mubarakshin a2308e8518 [macos] remove GraalVM (#7398) 2023-04-06 18:29:02 +02:00
github-actions[bot] 07662e65ba Updating readme file for win19 version 20230331.1 (#7385)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-06 14:26:47 +00:00
Shamil Mubarakshin bc834aa083 [ubuntu] remove GraalVM (#7399) 2023-04-06 15:41:26 +02:00
Alexey-Ayupov 46f5d5470a Update CI actions according to demands (#7395) 2023-04-06 14:40:05 +02:00
Sergey Dolin 69d754cb77 [Windows] Run bcdedit /set hypervisorschedulertyupe root (#7394) 2023-04-06 12:38:49 +02:00
github-actions[bot] e8b403e0b9 Updating readme file for win22 version 20230402.1 (#7384)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-06 10:29:35 +00:00
github-actions[bot] 83dcaf932f Updating readme file for ubuntu22 version 20230402.1 (#7386)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-06 09:44:54 +00:00
github-actions[bot] 15a6f4b1b3 Updating readme file for ubuntu20 version 20230402.1 (#7392)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-04-06 09:37:48 +00:00
Erik Bershel d19fa4a8f1 [Windows] Add more releases per page (#7391) 2023-04-05 15:56:35 +02:00
ilia-shipitsin 869adbbd1c hide builds using dedicated runners from forks (#7377) 2023-04-05 14:02:45 +02:00
sergei-pyshnoi 9e3bbcb5e1 [Ubuntu] Add systemd version to software report (#7387) 2023-04-04 17:52:40 +02:00
Shamil Mubarakshin e72606ffb6 Cleanup ubuntu1804 image references (#7388) 2023-04-04 12:36:53 +02:00
Vasilii Polikarpov 425daf97b4 Validate OpenSSL version in Windows (#7372) 2023-03-31 16:30:04 +02:00
github-actions[bot] 709d0b30fe Updating readme file for win19 version 20230326.1 (#7344)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-30 19:47:01 +00:00
github-actions[bot] 4cede79c69 Updating readme file for win22 version 20230326.1 (#7343)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-30 10:59:45 +00:00
Erik Bershel 32782cc69f [Ubuntu] Update Android test case (#7290) 2023-03-30 11:23:55 +02:00
github-actions[bot] c5ea85a212 Updating readme file for ubuntu22 version 20230326.2 (#7342)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-30 09:07:48 +00:00
github-actions[bot] e62f0787f8 Updating readme file for ubuntu20 version 20230326.2 (#7341)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-30 08:51:20 +00:00
ilia-shipitsin 88c18714c9 [ubuntu] remove go 1.17 (#7349) 2023-03-29 17:09:46 +02:00
Erik Bershel 7c61da51cf [Ubuntu] Temp patch for PhantomJS/libssl conflict (#7358) 2023-03-29 11:18:06 +02:00
Erik Bershel c93b9a2125 [macOS] Update Android test case (#7289) 2023-03-28 14:33:01 +02:00
ilia-shipitsin 6b75f9c486 [macos] temporarily shift MacOS 11 image generation schedule (#7352) 2023-03-28 13:07:42 +02:00
Vasilii Polikarpov d9b4647e11 [Windows] Add script for OpenSSL installation (#7337) 2023-03-28 10:42:14 +02:00
ilia-shipitsin 078d815ad5 [windows] remove go 1.17 (#7348) 2023-03-28 09:29:33 +02:00
ilia-shipitsin 7c4a229fbc [macos] remove go 1.17 (#7347) 2023-03-28 09:27:26 +02:00
ilia-shipitsin e8faa6254e [macos] temporarily shift MacOS 11 image generation schedule (#7335) 2023-03-27 16:24:12 +02:00
github-actions[bot] 3c5dc9d3a7 Updating readme file for macOS-11 version 20230318.1 (#7308)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-27 09:41:26 +00:00
github-actions[bot] 0f6480a303 Updating readme file for macOS-12 version 20230318.1 (#7309)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-24 09:20:48 +00:00
github-actions[bot] 073720049b Updating readme file for ubuntu20 version 20230317.1 (#7310)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-23 21:50:57 +00:00
github-actions[bot] efde1c17f1 Updating readme file for ubuntu22 version 20230317.1 (#7311)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-23 18:39:17 +00:00
Erik Bershel 964b509df0 Update SBOM workflow to use syft with bash shell for macOS (#7322) 2023-03-22 08:49:54 +01:00
Dusko Dobranic 39fc5b4fff [macOS] Use variable instead of hard coded value (#7214) 2023-03-22 08:45:17 +01:00
Erik Bershel e37e273375 [macOS] Fix typo in TCC DB config (#7314) 2023-03-21 17:59:57 +01:00
Erik Bershel 4cd37cce64 [Ubuntu] Install latest but not recomended Cabal (#7316) 2023-03-21 11:13:46 +01:00
ilia-shipitsin f0e54bbe9f [macos] VMWare host selection: do not count "vmkdump" folder as possible vm name when choosing available datastore (#7301) 2023-03-17 16:51:49 +01:00
Dusko Dobranic 754cbccf56 [Windows] AWS CLI session manager plugin test fix (#7294) 2023-03-17 15:53:44 +01:00
github-actions[bot] ffd1b627e2 Updating readme file for macOS-12 version 20230304.1 (#7249)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-17 09:34:45 +00:00
github-actions[bot] efd070e7b2 Updating readme file for win19 version 20230314.1 (#7285)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-03-17 10:22:22 +01:00
github-actions[bot] 83f4ba6069 Updating readme file for win22 version 20230314.1 (#7286)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-03-17 10:22:05 +01:00
Erik Bershel 7a704400ab [macOS] Update macOS TCC DB config (#7297) 2023-03-17 09:43:53 +01:00
github-actions[bot] 2c549825ea Updating readme file for ubuntu22 version 20230313.1 (#7279)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-16 09:48:21 +00:00
github-actions[bot] 87dc452498 Updating readme file for ubuntu20 version 20230313.1 (#7278)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-16 09:47:08 +00:00
Erik Bershel 1261bad465 [Ubuntu] Update Maven to 3.8.8, new download link (#7287) 2023-03-15 20:38:34 +01:00
ilia-shipitsin 0d3ef08d6f [ubuntu] aws session manager plugin 1.2.458.0 fix (#7291)
Co-authored-by: Ilia Shipitsin <ilia-shipitsin@github.com>
2023-03-15 15:04:45 +01:00
Erik Bershel bc22983319 Update condition for Android packages filter (#7280) 2023-03-14 17:14:42 +01:00
sergei-pyshnoi 014e1b0e76 [Ubuntu] add alpine 3.17 docker image (#7274) 2023-03-14 10:59:11 +01:00
github-actions[bot] 77039ebf7e Updating readme file for macOS-11 version 20230303.1 (#7250)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-14 08:15:46 +00:00
Mikhail Koliada f386f9db4b Do not expose packer-log in pipelines (#7273) 2023-03-13 15:38:50 +01:00
github-actions[bot] 1822632ce6 Updating readme file for win22 version 20230307.2 (#7254)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-03-11 15:42:45 +01:00
github-actions[bot] b4bcfd8fa5 Updating readme file for win19 version 20230307.2 (#7255)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-03-11 15:42:19 +01:00
Mikhail Koliada 2e2fb13389 [Ubuntu] print maven version on Ubuntu 22.04 (#7265) 2023-03-10 14:03:57 +01:00
ilia-shipitsin 6704e26553 [macos] remove gcc9 from MacOS-11 (#7257)
Co-authored-by: Ilia Shipitsin <ilia-shipitsin@github.com>
2023-03-10 11:54:48 +01:00
github-actions[bot] 3d67023c9c Updating readme file for ubuntu20 version 20230305.1 (#7240)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-09 09:17:40 +00:00
github-actions[bot] 229225cab5 Updating readme file for ubuntu22 version 20230305.1 (#7241)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-09 09:15:42 +00:00
Mikhail Koliada b253509c8b Revert "[Ubuntu] hardcode chromium revision for 110.x (#7113)" (#7248)
This reverts commit bbac29011e.
2023-03-08 10:53:16 +01:00
sergei-pyshnoi c22eb26949 [windows] fix version for docker-compose v1 (#7247) 2023-03-07 18:14:29 +01:00
github-actions[bot] 827ad77989 Updating readme file for macOS-12 version 20230224.1 (#7222)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-07 10:18:19 +00:00
Mikhail Koliada ed49bcd543 [Windows] pin maven version (#7236) 2023-03-05 11:41:43 +01:00
Mikhail Koliada fe23ebfec1 [Ubuntu] rework erlang installation (workaround hashes) (#7234) 2023-03-04 18:12:02 +01:00
Gergő Rubint 143a8da8d6 Revert "[Ubuntu] Update Maven to 3.9.0 (#7060)" (#7232)
This reverts commit 7e014ba67b.
2023-03-03 23:49:20 +01:00
github-actions[bot] 085afb9549 Updating readme file for macOS-11 version 20230223.3 (#7223)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-03 16:10:11 +00:00
Mikhail Koliada 07428a1def [ubuntu] fix cmdline-tools parser (#7229) 2023-03-03 16:17:13 +01:00
Mikhail Koliada 29ed1a27b9 [Anka] add script to fix broken simulators name (#7231) 2023-03-03 14:52:26 +01:00
Sergey Dolin 7ac0d4826c Enable HypervisorPlatform (#7220) 2023-03-02 22:28:58 +01:00
Dusko Dobranic 583096e059 Use variable instead of hard coded value (#7213) 2023-03-02 22:28:36 +01:00
github-actions[bot] 477577696f Updating readme file for win22 version 20230226.1 (#7195)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-02 14:36:59 +00:00
github-actions[bot] a97f8c9bdf Updating readme file for win19 version 20230226.1 (#7196)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-02 14:33:55 +00:00
github-actions[bot] d2e23d3886 Updating readme file for ubuntu20 version 20230224.2 (#7197)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-02 12:54:30 +00:00
Mikhail Koliada ea986d3260 [Anka] Decrement retries for auth attempts (#7217) 2023-03-02 11:21:19 +01:00
github-actions[bot] 7c6375761d Updating readme file for ubuntu22 version 20230227.2 (#7206)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-03-02 10:10:51 +00:00
Mikhail Koliada 02e4e5a6a0 [Ubuntu] Do not install erlang on 18.04 (#7212)
* [Ubuntu] Do not install erlang on 18.04

* fixup
2023-03-01 17:11:12 +01:00
Maxim Lobanov fec7951493 Fix Xcode simulator naming at the end of image generation (#7181) 2023-03-01 10:43:47 +01:00
Alexey-Ayupov 6980b00031 Add GitHub actions for image generation (#7182) 2023-02-28 21:11:41 +01:00
Alexey-Ayupov c6c2716726 [macOS] prepare repository for macOS 13 (#7156) 2023-02-28 20:24:25 +01:00
Mikhail Koliada 9089d1ec95 [macOS] do not install tcl/tk symlinks on BigSur (#7202) 2023-02-28 14:49:01 +01:00
Mikhail Koliada e4e631725a Revert "Remove libssl dependency (#7166)" (#7203)
This reverts commit 7fa12b8806.
2023-02-28 00:07:45 +01:00
sergei-pyshnoi bcb2886e5b [macOS] Software Updates 2023 Week 9 (#7183) 2023-02-24 08:39:50 +01:00
sergei-pyshnoi 6c0a78e1c7 add go 1.20 to toolsets (#7186) 2023-02-24 08:34:36 +01:00
github-actions[bot] d554c13cc8 Updating readme file for win19 version 20230219.1 (#7157)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-23 22:49:14 +00:00
github-actions[bot] dc6b07abe3 Updating readme file for macOS-12 version 20230219.1 (#7161)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-23 19:55:36 +00:00
sergei-pyshnoi 8c0f7bb032 [macOS] add go 1.20 to toolsets (#7184) 2023-02-23 19:45:43 +01:00
sergei-pyshnoi ac0d8e922b [Ubuntu] add go 1.20 to toolsets (#7185) 2023-02-23 19:44:51 +01:00
Erik Bershel d9fa202bbb [macOS] Update utils.sh - brew all bottles, fix echo (#7160) 2023-02-23 17:33:06 +01:00
Erik Bershel a65bd14fa1 [ macOS ] Add pkg-config to report (#7176) 2023-02-23 17:00:00 +01:00
github-actions[bot] e0dd25a5e0 Updating readme file for win22 version 20230219.1 (#7153)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-23 15:29:44 +00:00
github-actions[bot] 312fbc4f8d Updating readme file for ubuntu20 version 20230219.1 (#7148)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-23 15:29:19 +00:00
github-actions[bot] b6be4d9a4d Updating readme file for ubuntu22 version 20230219.1 (#7149)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-23 10:20:01 +00:00
github-actions[bot] 7a9abb3f6f Updating readme file for macOS-11 version 20230219.1 (#7163)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-23 09:15:28 +00:00
Fedor Varavenko b5dbb9c705 [macOS] point Xcode 13.4 to 13.4.1 (#7177)
Announcement(issue-7127): Xcode 13.4 will be pointing to Xcode 13.4.1 and Xcode 13.4 removed.
2023-02-22 23:36:07 +01:00
Dusko Dobranic 7e014ba67b [Ubuntu] Update Maven to 3.9.0 (#7060) 2023-02-22 17:38:02 +01:00
Alexey-Ayupov 3bd50b83d4 [macOS] update macOS 13 template (#7175) 2023-02-22 17:20:54 +01:00
Dusko Dobranic 7fa12b8806 Remove libssl dependency (#7166) 2023-02-21 21:30:23 +01:00
Alexey-Ayupov aa01b789be [macOS] Add packer template for macOS 13 (#7116) 2023-02-20 16:54:26 +01:00
Erik Bershel 09baf89e70 [macOS] Add pkg-config via brew for vcpkg (#7125) 2023-02-19 11:25:31 +01:00
Erik Bershel 3483751d9d [macOS] Software Updates 2023 Week 8 (#7124) 2023-02-18 19:32:07 +01:00
github-actions[bot] e0c027edf4 Updating readme file for ubuntu20 version 20230217.1 (#7139)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-18 17:35:35 +00:00
github-actions[bot] 97e33e1df0 Updating readme file for ubuntu18 version 20230217.2 (#7141)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-18 17:07:17 +00:00
Mikhail Koliada 1f4130e15e Revert "[Ubuntu] workaround libodbc installation (#7117)" (#7137)
This reverts commit c89bab7e42.
2023-02-18 12:39:27 +01:00
Mikhail Koliada 8a001e66b1 [macOS] Do not use brew API for installation (#7135) 2023-02-18 10:41:24 +01:00
github-actions[bot] ce2e896fcb Updating readme file for ubuntu22 version 20230217.1 (#7132)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-17 20:44:57 +00:00
github-actions[bot] ef4d5b3cd6 Updating readme file for macOS-12 version 20230214.2 (#7121)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-17 20:15:53 +00:00
Mikhail Koliada c1a9cb6de6 [Ubuntu] fix PHP software report (#7131) 2023-02-17 16:37:46 +01:00
github-actions[bot] bf50e0da6f Updating readme file for macOS-11 version 20230214.1 (#7123)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-02-16 17:18:25 +00:00
Erik Bershel 362b112a77 [Windows] Update Rustup download link (#7106) 2023-02-16 11:19:38 +01:00
github-actions[bot] 6b424ca736 Updating readme file for win22 version 20230214.1 (#7111)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-15 23:54:08 +00:00
github-actions[bot] 4560115ec8 Updating readme file for win19 version 20230214.1 (#7112)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-15 20:39:43 +00:00
Mikhail Koliada c89bab7e42 [Ubuntu] workaround libodbc installation (#7117) 2023-02-15 20:10:43 +01:00
Alexey-Ayupov bbac29011e [Ubuntu] hardcode chromium revision for 110.x (#7113) 2023-02-15 14:24:13 +01:00
Erik Bershel c60c6b67ab [macOS] Update Python3 installer script (#7104) 2023-02-14 16:47:55 +01:00
sergei-pyshnoi 8767a6eb4e Remove all macOS-10.15 related code (#7078) 2023-02-13 16:40:48 +01:00
Mikhail Koliada 539b772d6b [macOS] set node 18 as default (#7093) 2023-02-13 01:17:39 +01:00
Mikhail Koliada bc6c8131b5 [Windows] set node 18 as default (#7092) 2023-02-12 19:42:41 +01:00
Mikhail Koliada 632145f3a5 [Ubuntu] set node 18 as default (#7094) 2023-02-12 13:57:16 +01:00
Alexey-Ayupov feb6252fae [macOS] Update templates to fix issue with node 19 (#7081) 2023-02-11 11:25:07 +01:00
github-actions[bot] 5f3fb1b548 Updating readme file for win19 version 20230205.1 (#7057)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-09 22:17:30 +00:00
Julian Ospald c92736d124 Don't clean up haddock and profiling libs on MacOS (#7069)
This was initially meant to save space in docker containers,
but breaks several use cases and runner images shouldn't have
space constraints.
2023-02-09 21:47:25 +01:00
Julian Ospald 3f07514a44 Don't clean up haddock and profiling libs on Linux (#6972)
This was initially meant to save space in docker containers,
but breaks several use cases and runner images shouldn't have
space constraints.

Also fixes: https://github.com/haskell/actions/issues/176
2023-02-09 21:46:40 +01:00
github-actions[bot] 9b3288dc18 Updating readme file for win22 version 20230206.1 (#7056)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-09 16:42:28 +00:00
Dusko Dobranic 1d6be38cc8 [Ubuntu] Fix libssl version (#7073) 2023-02-09 14:42:08 +01:00
github-actions[bot] 4a42f07ad2 Updating readme file for ubuntu20 version 20230206.1 (#7054)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-09 13:39:22 +00:00
github-actions[bot] 072cca75ce Updating readme file for ubuntu22 version 20230206.1 (#7053)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-09 12:08:09 +00:00
github-actions[bot] f4f78af7dd Updating readme file for macOS-11 version 20230205.1 (#7063)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-09 09:33:36 +00:00
Alexey-Ayupov 6341547de6 [macOS] prepare helpers for macOS 13 (#7071) 2023-02-08 18:30:16 +01:00
Alexey-Ayupov 8282937409 [Windows] Reengineer the way of getting the installer for PostgreSQL (#7065) 2023-02-08 16:27:46 +01:00
Alexey-Ayupov 8361bb299b Update the code for anka v3 compatibility (#7045) 2023-02-05 14:42:31 +01:00
Alexey-Ayupov 2109acacd5 Update the code for anka v3 compatibility (#7044) 2023-02-05 14:08:22 +01:00
github-actions[bot] 7a8e77b24a Updating readme file for macOS-12 version 20230125.4 (#7018)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-02-04 12:14:28 +01:00
Mikhail Koliada 751fe08d98 README: add package managers table (#6959) 2023-02-02 17:45:38 +01:00
github-actions[bot] 33195758f0 Updating readme file for win19 version 20230129.2 (#7010)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-02 15:37:20 +00:00
Fedor Varavenko 30bde95314 [Ubuntu] .NET 5.x has been removed (#7029) 2023-02-02 14:36:36 +01:00
Fedor Varavenko aaf13dc3c2 [MacOS] .NET 5.x has been removed (#7030) 2023-02-02 14:34:28 +01:00
Fedor Varavenko e0e8ca9f67 [Windows] .NET 5.x has been removed (#7026) 2023-02-02 14:31:44 +01:00
github-actions[bot] 8ac0b91f78 Updating readme file for win22 version 20230129.1 (#7013)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-02 12:31:22 +00:00
github-actions[bot] 05466aa85a Updating readme file for ubuntu22 version 20230129.2 (#7014)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-02 10:02:48 +00:00
github-actions[bot] 5be88bfe57 Updating readme file for ubuntu20 version 20230129.2 (#7011)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-02-02 09:59:42 +00:00
Mikhail Koliada 17295fdcde [Windows] add retries in toolset installation (#7025) 2023-02-01 16:05:23 +01:00
Dusko Dobranic 7821217b60 [Windows] Install ghc and cabal using ghcup (#6754) 2023-01-31 22:03:06 +01:00
Erik Bershel 68485f8bbf [Windows] CodeQL Action Bundle report small fix (#7020) 2023-01-31 21:41:13 +01:00
github-actions[bot] f0cd188d73 Updating readme file for macOS-11 version 20230125.1 (#7009)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2023-01-30 20:54:51 +00:00
Mikhail Koliada 5a94a87d67 LiCENSE: we are in 2023! (#7006) 2023-01-29 23:53:49 +01:00
Mikhail Koliada fab3a48efe [Ubuntu] Hardcode android cmd-tools on 18.04 (#7005) 2023-01-29 19:54:27 +01:00
Angela P Wen 1e75a20a49 [Linux,macOS,Windows] Download two latest CodeQL bundles (#6884)
Previously, our runner image only included the most recent release of CodeQL. In order to improve stability of rollout of new CodeQL versions, we are now downloading the most recent two releases.

The change updates the Linux and Windows script variable names to match that of the Mac script, because they are mostly functionally identical. It also adds the same log messages to all scripts and ensures Mac and Windows test parity. It tests that there are two bundles in each of the OS's as well.

This will approximately double the total size and installation time of the existing CodeQL tool.
2023-01-29 14:46:43 +01:00
Mikhail Koliada 2205d11bf5 [Windows] set TLS12 for toolset (#7001) 2023-01-28 17:21:17 +01:00
Erik Bershel 583c737c15 [macOS] Software Updates 2023 Week 5 (#6997) 2023-01-27 14:49:03 +01:00
Sergey Dolin 8649f7f9e9 install Hyper-V feature (#6987) 2023-01-26 16:25:01 +01:00
github-actions[bot] 0c48a4e68d Updating readme file for win19 version 20230123.2 (#6974)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-26 15:08:39 +00:00
github-actions[bot] fda51675fc Updating readme file for win22 version 20230123.1 (#6973)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-26 14:40:33 +00:00
github-actions[bot] 4c586edefa Updating readme file for win22 version 20230123.1 (#6973)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-26 14:25:33 +00:00
sergei-pyshnoi 11a5cf4a06 [macOS] Add gcc 12 (#6977) 2023-01-25 17:12:09 +01:00
github-actions[bot] b3bbfccef4 Updating readme file for ubuntu22 version 20230122.1 (#6967)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-25 15:16:40 +00:00
github-actions[bot] b8d201e18a Updating readme file for ubuntu20 version 20230122.1 (#6966)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-25 11:20:25 +00:00
Alexey-Ayupov 15829d25a9 [macOS] Hardcode command line tools (#6965) 2023-01-23 16:54:13 +01:00
Mikhail Koliada 44a6abe0b7 [Windows] Hardcode command line tools (#6963) 2023-01-23 15:38:35 +01:00
github-actions[bot] c6393f1f23 Updating readme file for macOS-12 version 20230117.3 (#6940)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-21 16:27:39 +00:00
github-actions[bot] 83ed0e8820 Updating readme file for macOS-11 version 20230117.2 (#6939)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-21 16:17:56 +00:00
Fedor Varavenko 049b5490ba [Windows] Upgrade Az powershell to 9.3.0 (#6952) 2023-01-20 18:15:11 +01:00
Fedor Varavenko 35d339e137 [Linux] Upgrade Az powershell to 9.3.0 (#6953) 2023-01-20 18:14:34 +01:00
Alexey-Ayupov a218bee02d [Windows] fix software report generator for Parcel (#6933) 2023-01-20 18:08:01 +01:00
github-actions[bot] 59c0d35a32 Updating readme file for ubuntu22 version 20230118.2 (#6941)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-19 16:39:34 +00:00
github-actions[bot] 794867863f Updating readme file for ubuntu20 version 20230118.1 (#6942)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-19 15:49:50 +00:00
github-actions[bot] 2c5e6f8a4e Updating readme file for ubuntu18 version 20230118.2 (#6943)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-19 15:32:31 +00:00
github-actions[bot] 23a732a107 Updating readme file for win22 version 20230118.1 (#6938)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-19 12:08:00 +00:00
github-actions[bot] 370727c2fb Windows Server 2019 (20230117) Image Update (#6932)
* Updating readme file for win19 version 20230117.1

* Update Windows2019-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-19 03:52:43 +00:00
Alexey-Ayupov ea70a64733 [Windows] Add retry to Install-VsixExtension (#6934) 2023-01-18 17:51:36 +01:00
Mikhail Koliada 7d596c7216 [Ubuntu] fix ghcup version in software report (#6919) 2023-01-15 20:11:33 +01:00
Mikhail Koliada b26e3736c1 [macOS] Switch defailt Xcode to 14.2 (#6907) 2023-01-13 09:57:26 +01:00
Alexey-Ayupov a86ee04ce6 [Windows] Update Az module pester test (#6902) 2023-01-12 21:25:12 +01:00
Alexey-Ayupov 7750a08f65 Disable Pester test colors (#6908) 2023-01-12 20:26:45 +01:00
github-actions[bot] a22d921c17 Updating readme file for win22 version 20230109.1 (#6892)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-12 18:43:37 +00:00
Mikhail Koliada 010d9b89d0 README: no active migrations (#6906) 2023-01-12 18:38:54 +01:00
github-actions[bot] c82cd6704b Updating readme file for ubuntu22 version 20230109.1 (#6893)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-12 14:06:52 +00:00
github-actions[bot] 55011709b0 Updating readme file for ubuntu20 version 20230109.1 (#6895)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2023-01-12 13:14:56 +00:00
Mikhail Koliada bcc68b091b README: macos-latest is now macos-12 (#6901) 2023-01-11 23:05:54 +01:00
Mikhail Koliada e6fcf60b8e Revert "[Windows] Update OpenSSL version to 3.x (#6837)" (#6891)
This reverts commit 9753e7301e.
2023-01-09 20:10:45 +01:00
baldcorp 68f38ef5a4 [Windows] Change the way of installing Service Fabric (#6882)
Co-authored-by: Alexey Ayupov <alexey.ayupov@akvelon.com>
2023-01-06 21:26:37 +01:00
Alexey-Ayupov 9ee9311122 [Windows] Update LLVM version to 15 (#6838) 2023-01-04 18:57:14 +01:00
baldcorp 6f2a153a44 [macOS] Update llvm to version 15 (#6871)
Co-authored-by: Alexey Ayupov <alexey.ayupov@akvelon.com>
2023-01-04 18:56:45 +01:00
Christian Decker 3502d10db3 [Ubuntu] update maven from 3.8.6 to 3.8.7 (#6861) 2023-01-02 14:40:29 +01:00
Julian Ospald b38865e056 Make sure GHCUP_INSTALL_BASE_PREFIX is set (#6770)
We use it during installation and add it to PATH, but then
don't instruct ghcup to actually use this directory at runtime.

This leads to:

1. ghcup is in /usr/local/.ghcup/bin/
2. `ghcup install cabal latest` will actually install into ~/.ghcup/bin/
3. since ~/.ghcup/bin/ is not in PATH, but /usr/local/.ghcup/bin/ is,
   the new binary is not visible to the user

This issues does not exist on darwin, because there we use
~/.ghcup/bin/.

https://downloads.haskell.org/ghcup/tmp/aarch64-linux-ghcup-0.1.18.1
2023-01-02 10:58:35 +01:00
Alexey-Ayupov b659709f2f [macOS] Remove kotlinc-js pester test (#6854) 2022-12-30 14:40:57 +01:00
scp-mb add9a1e9ad Update documentation with minimum packer version (#6820) 2022-12-30 10:31:37 +01:00
bogdan-damian-bgd 447c8387a2 [Windows] Update documentation generation to use shared software report module (#6834) 2022-12-30 10:24:22 +01:00
Alexey-Ayupov f7f519dcc4 [Ubuntu] update zstd version (#6681) 2022-12-29 23:33:04 +01:00
Alexey-Ayupov 39ba239618 [Windows] Remove pester test for kotlinc-js (#6850) 2022-12-29 20:39:24 +01:00
Mikhail Koliada e9b59a540e Revert "[Ubuntu] hardcode chromium revision for 108.x (#6734)" (#6851)
This reverts commit fb484d9530.
2022-12-29 15:28:19 +01:00
Alexey-Ayupov c92563577c [Ubuntu] Remove pester test for kotlinc-js (#6849) 2022-12-29 12:10:43 +01:00
bogdan-damian-bgd d1f0dc6376 MacOS software report fix var name typo (#6842) 2022-12-27 16:33:43 +01:00
Alexey-Ayupov 9753e7301e [Windows] Update OpenSSL version to 3.x (#6837) 2022-12-26 15:16:53 +01:00
Alexey-Ayupov 884a7ac5c1 [Windows] Update Az module version to 9.1.1 (#6831) 2022-12-26 10:35:19 +01:00
Alexey-Ayupov e589831baa [Ubuntu] Update Az module version to 9.2.0 (#6836) 2022-12-26 10:34:52 +01:00
Maxim Lobanov 1a44d9343c Small improvements for software generator module (#6833) 2022-12-23 21:02:07 +01:00
Alexey-Ayupov 631fd3b08d [Ubuntu] Update Az module version to 9.1.1 (#6832) 2022-12-23 13:24:10 +01:00
Alexey-Ayupov 3bd81ca3be [Windows] Update PostgreSQL way to install (#6824) 2022-12-23 09:47:28 +01:00
Maxim Lobanov b94d2687f8 Polish macOS and Linux docs (#6827) 2022-12-23 09:38:33 +01:00
github-actions[bot] 86751fa022 Updating readme file for ubuntu18 version 20221220.1 (#6818)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-22 18:33:45 +00:00
Maxim Lobanov 71e1acd1b0 Minor fixes for Calculate-ImagesDifference.ps1 (#6826) 2022-12-22 12:22:26 +01:00
Maxim Lobanov c00379c85c [Ubuntu] Update documentation generation to use shared software report module (#6823)
* Create ubuntu-report.yml

* Update ubuntu-report.yml

* Update ubuntu-report.yml

* Update Common.Helpers.psm1

* Update ubuntu-report.yml

* Update ubuntu-report.yml

* Update SoftwareReport.Generator.ps1

* Update ubuntu-report.yml

* Update ubuntu-report.yml

* env vars

* Implement language and runtime

* Add package management section

* fix typo

* fix typo

* add projectManagement and tools

* fix some tools

* add CLI tools, Java, PHP Tools, Haskell Tools, Rust Tools, Browsers, .NET Core

* fix typo

* more changes

* fix typo

* fix typo

* fix typo

* change templates

* fix toolset

* Update Ubuntu2004 and 2204 templates

* fix cargo

* fix tiny nitpicks

* Fix AddToolVersionsList

* Remove unused methods

* Fix contructor
2022-12-21 19:38:54 +01:00
Mikhail Koliada 5d628bf703 [macOS] set Xcode 14.1 as default (#6822) 2022-12-21 18:49:42 +01:00
Maxim Lobanov 66835ab703 Add logic to publish artifact (#6821) 2022-12-21 14:19:42 +01:00
Maxim Lobanov 4aeccc7b5b Implement tests for software-report-module (#6815)
* Minor improvements

* fix typos

* fix brew rendering

* add temp test

* Implement tests

* Add arguments validation

* ToMarkdown()

* Use before-All and helpers

* Get rid of arrays

* Add validation, no new nodes after header

* Fix naming

* add workflow

* Revisit comments + tiny improvements

* Fix tables

* Fix html table indent

* remove comment

* attemp to break test - testing CI

* revert breaking test

* fix nitpicks
2022-12-21 10:58:27 +01:00
github-actions[bot] bc38aa4173 Updating readme file for macOS-12 version 20221215.1 (#6799)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-20 16:36:14 +00:00
github-actions[bot] 7f283d3a61 Updating readme file for macOS-11 version 20221215.1 (#6792)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-19 15:47:47 +00:00
github-actions[bot] 504c307197 Updating readme file for win19 version 20221214.4 (#6801)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-19 10:14:20 +00:00
github-actions[bot] f9604d9ebb Updating readme file for win22 version 20221215.2 (#6784)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-19 10:00:43 +00:00
Erik Bershel 34c4d37ff0 Fix use of invalid characters in artifact name (#6788) 2022-12-16 17:05:17 +01:00
Erik Bershel d171f5b873 Revert "Testing of event payload (#6786)" (#6787)
This reverts commit 5a583f4918.
2022-12-16 15:15:48 +01:00
Erik Bershel 5a583f4918 Testing of event payload (#6786) 2022-12-16 13:38:31 +01:00
Erik Bershel ad0880f33b Update SBOM-gen add artifact upload + bugfix (#6779) 2022-12-15 19:02:05 +01:00
Mikhail Koliada 9c544f4701 ubuntu-latest is now ubuntu-22.04 (#6776) 2022-12-15 17:20:01 +01:00
github-actions[bot] 6b249254da Updating readme file for ubuntu20 version 20221212.2 (#6757)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-15 09:37:39 +00:00
github-actions[bot] 55296dc01b Updating readme file for ubuntu22 version 20221212.1 (#6758)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-15 09:20:03 +00:00
Alexey-Ayupov 3334c52558 [Windows] download MySQL from SA (#6769) 2022-12-14 23:10:59 +01:00
Maxim Lobanov 257743a26d [Windows] Minor documentation improvements (#6751) 2022-12-14 19:53:32 +01:00
Maxim Lobanov 2f83bbaa50 rename nodes in software report (#6763) 2022-12-14 10:24:47 +01:00
Maxim Lobanov e63632f872 [Linux] Minor documentation improvements (#6749) 2022-12-13 17:07:05 +01:00
Maxim Lobanov 6033af8dd1 Improve table and tool versions comparison for new Software Report module (#6729) 2022-12-13 16:54:41 +01:00
bogdan-damian-bgd 656d9522e0 Move SoftwareReport modules to global location (#6720) 2022-12-12 14:56:04 +01:00
Shivam Mathur 107a83d634 [Windows] upgrade php version to 8.2 (#6744) 2022-12-12 13:20:12 +01:00
Mikhail Koliada 43d8adc717 Do not include macOS-10.15 into templates (#6748) 2022-12-12 12:40:55 +01:00
Shivam Mathur 02c31c9246 [Ubuntu] add php 8.2 (#6745) 2022-12-12 11:16:35 +01:00
Erik Bershel 0810b54837 Update SBOM-workflow with new variable agentSpec (#6742) 2022-12-12 10:48:30 +01:00
Alexey-Ayupov 9e9f7c0b44 [macOS] Update PHP to 8.2 (#6739) 2022-12-11 15:53:51 +01:00
Alexey-Ayupov 686220b3ae [Ubuntu] Add libyaml-dev library (#6740) 2022-12-11 14:56:40 +01:00
Erik Bershel e54741d1f9 [Ubuntu] Add GFortran 12 for Ubuntu 22.04 (#6736) 2022-12-10 23:18:38 +01:00
Erik Bershel 39c59ba0cd [Ubuntu] Add lz4 for 22.04 (#6722) 2022-12-10 23:17:23 +01:00
github-actions[bot] 49c7baaa44 Updating readme file for ubuntu20 version 20221204.2 (#6692)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-09 16:47:50 +01:00
github-actions[bot] 9585a65341 Updating readme file for ubuntu22 version 20221204.2 (#6693)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-09 16:47:28 +01:00
github-actions[bot] 81ceb534f3 Updating readme file for win19 version 20221204.2 (#6694)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-09 16:46:18 +01:00
github-actions[bot] 383e49921c Updating readme file for win22 version 20221204.3 (#6695)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-09 16:45:44 +01:00
Mikhail Koliada fb484d9530 [Ubuntu] hardcode chromium revision for 108.x (#6734) 2022-12-09 16:16:03 +01:00
Maxim Lobanov 479d7175f6 Minor improvements for macOS Documentation (#6721)
* Minor improvements

* fix typos

* fix brew rendering
2022-12-08 19:14:16 +01:00
github-actions[bot] f28afb3069 Updating readme file for macOS-11 version 20221204.1 (#6705)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-08 11:01:27 +00:00
github-actions[bot] ec48677623 Updating readme file for macOS-12 version 20221204.1 (#6706)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-08 10:04:50 +00:00
Mikhail Koliada 71e3d4dc6d [macOS] Add xcode-14.2 (#6718) 2022-12-08 10:29:26 +01:00
Maxim Lobanov 6eaa5b44cf Implement Software Report Base Module (#6707)
* Implement first version

* fix tables rendering

* Fix scripts

* update test files

* implement calculate image diff script

* Polish code and make e2e validation

* remove test files

* render add and removed firstly
2022-12-07 14:20:14 +01:00
bogdan-damian-bgd 69cdead4fc Implement new software report generator for macOS (#6690)
* Create environmentVariables.yml

* Update environmentVariables.yml

* Delete environmentVariables.yml

* Add new SoftwareReport generator

* Output generation fixes after review

* Add json output print in pipeline

* Modify json output print in pipeline

* Removed redundant space character
2022-12-06 18:16:20 +01:00
Jeroen Ooms fb3b6fd699 Rust: add support for mingw-w64 toolchains (#6661) 2022-12-04 09:59:37 +01:00
Mikhail Koliada 4aba37bd3b [README] Mention ongoing migrations (#6685)
Co-authored-by: Sam Tran <samvantran@github.com>
2022-12-02 22:00:21 +01:00
github-actions[bot] 6557cd5523 Updating readme file for ubuntu20 version 20221125.1 (#6645)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-02 16:17:28 +00:00
github-actions[bot] ac8ae6b0ee Updating readme file for ubuntu22 version 20221127.1 (#6646)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-02 15:59:58 +00:00
Alexey-Ayupov ec8d7d9c1e Windows update IEDriverServer version to latest (#6671) 2022-12-02 14:31:06 +01:00
github-actions[bot] 8959c489f2 Updating readme file for win19 version 20221127.1 (#6644)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-01 14:48:27 +00:00
Erik Bershel b4d939bd38 Add workflows to create SBOM and upload it to release asset (#6655) 2022-12-01 12:52:02 +01:00
github-actions[bot] f26b0e7671 Updating readme file for macOS-11 version 20221127.7 (#6651)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-01 11:24:24 +00:00
github-actions[bot] b6441120c5 Updating readme file for win22 version 20221127.1 (#6643)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-01 10:32:32 +00:00
github-actions[bot] e5acd7847f Updating readme file for macOS-12 version 20221127.5 (#6652)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-12-01 10:08:23 +00:00
Alexey-Ayupov f30492c37f [Windows] Update Az module version to 9.0.1 (#6664) 2022-12-01 10:20:50 +01:00
Alexey-Ayupov c03be40bb5 [Ubuntu] Update Az module version to 9.0.1 (#6665)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
2022-12-01 10:19:05 +01:00
Alexey-Ayupov 5dd62e7a08 Add PPA repository for Firefox as default (#6528) 2022-11-26 13:47:48 +01:00
Alexey-Ayupov 439d09333d [Windows] Update Visual Studio components (#6633) 2022-11-25 20:33:49 +01:00
github-actions[bot] 4352fab581 Updating readme file for macOS-12 version 20221121.1 (#6619)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-25 08:55:55 +00:00
github-actions[bot] 4c8dc87a28 Updating readme file for win22 version 20221120.1 (#6605)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-24 16:38:14 +00:00
github-actions[bot] c42d235336 Updating readme file for win19 version 20221119.1 (#6606)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-24 16:35:23 +00:00
github-actions[bot] d54fa25512 Updating readme file for ubuntu22 version 20221119.2 (#6604)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-24 11:41:31 +00:00
github-actions[bot] 7d118628a4 Updating readme file for ubuntu20 version 20221119.2 (#6603)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-24 11:23:00 +00:00
github-actions[bot] 3a2d6530a3 Updating readme file for macOS-11 version 20221121.1 (#6618)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-24 08:23:05 +00:00
SheGe 0ad45c90fa Enhance image genration template for Linux and Windows variants (#6519) 2022-11-22 20:25:50 +01:00
Mikhail Koliada 1c88fb4cda [Ubuntu] pin powershell-core version (#6611) 2022-11-21 19:56:42 +01:00
Mikhail Koliada 2b33da2a33 [Ubuntu] fix mongodb installation (#6609) 2022-11-21 17:54:08 +01:00
Mikhail Koliada daf0420aa4 [macOS] Rework open windows test (#6602) 2022-11-21 10:55:49 +01:00
Alexey-Ayupov 8c2a400be2 [macOS] Pin PowerShell version 7.2.7 (#6596)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
2022-11-20 14:05:15 +01:00
Alexey-Ayupov 582d23c884 [Windows] Pin PowerShell version 7.2.7 (#6591) 2022-11-18 20:16:09 +01:00
Mikhail Koliada 6ef9c61220 [Ubuntu] Add one more missing file for vcpkg (#6589) 2022-11-17 16:51:56 +01:00
Erik Bershel 5fe009246f [Windows] Add .Net 6.0 as LTS (#6578) 2022-11-17 13:52:53 +01:00
Alexey-Ayupov b101b5646f [windows] Do not install latest version of GHC (#6581) 2022-11-16 20:42:51 +01:00
Alexey-Ayupov 279e529dab [macOS] vcpkg workaround (#6579) 2022-11-16 18:31:26 +01:00
Mikhail Koliada f93e26d6a5 [Ubuntu] Workaround vcpkg installation (#6564) 2022-11-14 20:59:20 +01:00
Aleksandr Chebotov a642059809 fix yq invocation on android repo xml (#6563) 2022-11-14 12:51:35 +01:00
Mikhail Koliada 3fbd7f61b6 [Ubuntu] fix yq invocation on android repo xml (#6562) 2022-11-14 10:39:40 +01:00
Mikhail Koliada bb5b6307df [macOS] remove node12 and sync nvm18 (#6553) 2022-11-11 22:05:25 +01:00
Mikhail Koliada 6cb8956275 [macOS] Add .NET 7 (#6552) 2022-11-11 20:04:10 +01:00
Aleksandr Chebotov 89b1d058fb Fix Google CloudSDK version output (#6550) 2022-11-11 16:27:54 +01:00
Mikhail Koliada b4ef4c2dc8 [Ubuntu] Add .NET 7 (#6551) 2022-11-11 14:10:38 +01:00
Aleksandr Chebotov 1dbd1651ad Revert "Remove Azure.Storage.AzCopy component (#6540)" (#6548)
This reverts commit 8f8f6bb5e1.
2022-11-11 01:06:18 +01:00
Aleksandr Chebotov efef8c4895 [macOS] Software Updates 2022 Week 46 (#6541) 2022-11-11 01:00:42 +01:00
Aleksandr Chebotov cdd6e1d724 Remove \ escape (#6546) 2022-11-10 20:13:10 +01:00
Alexey-Ayupov ed945f347e [Windows] Remove Node 12 from toolcache (#6536) 2022-11-10 19:02:03 +01:00
Aleksandr Chebotov 1c9ba78db0 Revert "Tight 20348.1129.221007 version" (#6545)
This reverts commit b284ec81a5.
2022-11-10 18:21:41 +01:00
Aleksandr Chebotov dbb755833a [Windows] Remove VS 2022 ARM components (#6542) 2022-11-10 13:44:35 +01:00
Aleksandr Chebotov 8f8f6bb5e1 Remove Azure.Storage.AzCopy component (#6540) 2022-11-10 13:32:44 +01:00
Alexey-Ayupov 3a8564acb1 [Ubuntu] Remove Node 12 from toolcache (#6535) 2022-11-09 21:16:45 +01:00
Alexis Saettler 0cb66802c6 [Windows] Clean install_user Temp directory (#6529) 2022-11-09 10:21:18 +01:00
Igor Boskovic f6632ff53b Add Python to $PATH (#6518) 2022-11-08 12:30:58 +01:00
Alexey-Ayupov 0420946391 [Ubuntu] Add gcc-12 to 22.04 (#6511) 2022-11-03 16:50:25 +01:00
github-actions[bot] e4915514bd Updating readme file for win22 version 20221027.1 (#6491)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-03 15:44:56 +00:00
github-actions[bot] 8bdf5c3608 Updating readme file for win19 version 20221027.1 (#6492)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-03 15:29:23 +00:00
github-actions[bot] 1f84dd7159 Updating readme file for macOS-11 version 20221028.1 (#6499)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-03 11:56:18 +00:00
github-actions[bot] c00aaa29a4 Updating readme file for ubuntu22 version 20221027.1 (#6501)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-03 09:10:30 +00:00
github-actions[bot] 0c8b93e28a Updating readme file for ubuntu20 version 20221027.1 (#6500)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-11-03 09:08:26 +00:00
github-actions[bot] 5e6d4245db Updating readme file for macOS-12 version 20221027.1 (#6490)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-11-02 15:59:21 +00:00
github-actions[bot] 2b48347ec3 Updating readme file for win19 version 20221024.1 (#6469)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-27 19:07:13 +00:00
Mikhail Koliada 765adc1690 [Ubuntu] add Node 18 to toolcache (#6480) 2022-10-27 18:16:08 +02:00
Mikhail Koliada 3cad66317f [Windows] add Node 18 to toolcache (#6481) 2022-10-27 18:15:47 +02:00
Mikhail Koliada f3d9d2381b [macOS] add Node 18 to toolcache (#6479) 2022-10-27 18:15:23 +02:00
github-actions[bot] 036d402f34 Updating readme file for win22 version 20221024.1 (#6464)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-27 14:27:03 +00:00
github-actions[bot] 891a05dfdb Updating readme file for ubuntu22 version 20221024.1 (#6467)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-27 10:04:39 +00:00
github-actions[bot] 3f3fa5aa31 Updating readme file for macOS-11 version 20221023.1 (#6466)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-27 09:18:34 +00:00
github-actions[bot] 22693772a6 Updating readme file for ubuntu20 version 20221024.1 (#6468)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-27 08:52:36 +00:00
Aleksandr Chebotov 715747a054 Remove Test-IsWin19 WSL condition (#6477) 2022-10-27 09:26:49 +02:00
Erik Bershel cc71c8b504 [Ubuntu] Remove ppa:ondrej/php for Ubuntu 22.04 (#6478) 2022-10-27 09:21:24 +02:00
Mikhail Koliada ee7ad8fcb7 [macOS] add python3.11 to toolcache (#6476) 2022-10-26 17:51:52 +02:00
Alexis Saettler b7edddf553 [Windows] Check WSL is on path on Windows Server 2022 (#6475) 2022-10-26 15:53:15 +02:00
Austin Vazquez ab0d910edc Update GitHub actions/checkout package to v3 (#6474)
Signed-off-by: Austin Vazquez <macedonv@amazon.com>

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2022-10-26 10:17:19 +02:00
Mikhail Koliada 1250493b2f [Windows] add python3.11 to toolcache 2022-10-25 21:30:20 +02:00
Mikhail Koliada d729869093 [Ubuntu] add python3.11 to toolcache (#6470) 2022-10-25 18:50:21 +02:00
Mikhail Koliada f99bf07949 [macOS] fix readme for 10.15 2022-10-25 10:09:59 +02:00
Erik Bershel a9611d8e7f Revert VCPKG_ROOT variable (#6458) 2022-10-25 09:30:50 +02:00
Aleksandr Chebotov b284ec81a5 Tight 20348.1129.221007 version 2022-10-24 17:14:24 +02:00
Erik Bershel 5e91f0a07d Revert "Revert VCPKG_ROOT variable (#6449)"
This reverts commit 88d253f383.
2022-10-24 12:27:27 +02:00
Erik Bershel 88d253f383 Revert VCPKG_ROOT variable (#6449) 2022-10-24 11:10:20 +02:00
github-actions[bot] c2112cbe40 Updating readme file for macOS-12 version 20221018.2 (#6439)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-22 00:53:01 +00:00
Mikhail Koliada d81fc37201 [macOS] exclude Colima from Catalina's sw report 2022-10-21 19:39:50 +02:00
github-actions[bot] 3cff405f9e Updating readme file for macOS-10.15 version 20221018.1 (#6444)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-21 12:44:09 +00:00
Aleksandr Chebotov 62ffca0dfd [macOS] Create tcl/tk symlinks (#6443) 2022-10-21 13:50:47 +02:00
github-actions[bot] 5b24a10e54 Updating readme file for win22 version 20221019.1 (#6436)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-21 03:15:55 +00:00
github-actions[bot] 40eb20a970 Updating readme file for win19 version 20221019.1 (#6438)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-21 03:13:33 +00:00
github-actions[bot] 7d055b7a28 Updating readme file for macOS-11 version 20221018.1 (#6440)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-20 18:40:10 +00:00
Aleksandr Chebotov 145f9dff8f [macOS] Software Updates 2022 Week 43 (#6437) 2022-10-20 17:07:04 +02:00
github-actions[bot] 5250470d17 Updating readme file for ubuntu20 version 20221018.2 (#6433)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-20 13:55:01 +00:00
github-actions[bot] a2c9029e3f Updating readme file for ubuntu18 version 20221018.2 (#6434)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-20 13:43:06 +00:00
github-actions[bot] d477a7178f Updating readme file for ubuntu22 version 20221018.2 (#6428)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-20 13:36:33 +00:00
Aleksandr Chebotov 842c43d557 [Windows] Install git from gh (#6427)
* Install Git from GitHub

* get installer file name
2022-10-19 20:27:55 +02:00
Aleksandr Chebotov 1bbdd25a22 Merge pull request #6416 from al-cheb/win_rust_test_add_bindgen
[Windows] Add cbindgen and bindgen pester test
2022-10-18 08:59:35 +02:00
github-actions[bot] 1f39d25523 Updating readme file for win19 version 20221012.3 (#6406)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-17 18:16:12 +00:00
Aleksandr Chebotov 764280843c Merge pull request #6418 from al-cheb/macos_replace_bindgen
[macOS] Replace bindgen to bindgen-cli
2022-10-17 17:55:50 +02:00
Aleksandr Chebotov caa3fa7f9f revert env variable 2022-10-17 16:25:50 +02:00
Aleksandr Chebotov b24c133f60 Merge pull request #6417 from al-cheb/ubuntu_replace_bindgen
[Ubuntu] Replace bindgen to bindgen-cli
2022-10-17 14:58:22 +02:00
Aleksandr Chebotov ee878fc161 Replace bindgen to bindgen-cli 2022-10-17 13:52:25 +02:00
Aleksandr Chebotov 3b005f03fe Replace bindgen to bindgen-cli 2022-10-17 13:07:27 +02:00
Aleksandr Chebotov 796a8bc2b3 replace bindgen to bindgen-cli 2022-10-17 12:59:46 +02:00
Aleksandr Chebotov f790e06bc3 Add cbindgen and bindgen pester test 2022-10-17 10:04:32 +02:00
github-actions[bot] 6c93c24107 Updating readme file for win22 version 20221012.4 (#6403)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-14 15:34:40 +00:00
Erik Bershel ac65b549ac [Ubuntu] Delete old Alpine Docker images (#6379) 2022-10-14 10:57:42 +02:00
github-actions[bot] f3bb32f284 Updating readme file for macOS-12 version 20221010.1 (#6405)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-14 08:53:50 +00:00
github-actions[bot] 3deda6cab6 Updating readme file for macOS-11 version 20221010.1 (#6404)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-10-13 21:38:52 +00:00
Mikhail Koliada 866ccbe818 [Ubuntu] Add swift to 22.04 (#6398) 2022-10-13 13:45:14 +02:00
Aleksandr Chebotov 3442a5c475 Tight VirtualBox version to 6.1.38 (#6391) 2022-10-12 16:03:27 +02:00
Mikhail Koliada 704feb689c [Ubuntu] Document tar version 2022-10-12 16:00:18 +02:00
Mikhail Koliada dcc9b447cb [macOS] do not install stack install hook (#6377) 2022-10-10 16:17:51 +02:00
Aleksandr Chebotov 56b797b0bb Merge pull request #6374 from hasufell/haskell/no-stack-install-hook
Don't install stack install hook
2022-10-10 14:40:52 +02:00
Julian Ospald 1e628422a3 Don't install stack install hook
See https://github.com/commercialhaskell/stack/issues/5895

Stack feature is documented here:
  https://docs.haskellstack.org/en/stable/yaml_configuration/#ghc-installation-customisation

It's recommended, but probably too unexpected for CI.
It means stack will not install GHC on its own, but through GHCup.
2022-10-10 17:54:22 +08:00
github-actions[bot] 26563d7f30 Updating readme file for macOS-11 version 20221002.2 (#6352)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-07 09:14:51 +00:00
Aleksandr Chebotov 6cc874356c [Windows] Install latest release of Docker CE (#6360) 2022-10-06 20:37:12 +02:00
Dusko Dobranic 4aae7a0129 Add 'Larger Runners' option (#6359) 2022-10-06 09:52:08 +02:00
Mikhail Koliada 6701f53be9 [Ubuntu] fix readme files 2022-10-06 08:59:35 +02:00
github-actions[bot] 4a7932a15e Updating readme file for ubuntu18 version 20221003.1 (#6351)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-05 14:13:04 +00:00
github-actions[bot] 95e62bec1f Updating readme file for win19 version 20221002.2 (#6339)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-05 13:49:09 +00:00
github-actions[bot] e10aca5304 Updating readme file for win22 version 20221002.2 (#6340)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-05 13:40:59 +00:00
github-actions[bot] 2aec524970 Updating readme file for ubuntu20 version 20221002.2 (#6347)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-05 11:39:35 +00:00
github-actions[bot] 9eaf3d8b71 Updating readme file for ubuntu22 version 20221002.2 (#6346)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-05 11:17:21 +00:00
github-actions[bot] 9dcc6a79fa Updating readme file for macOS-12 version 20220929.2 (#6341)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-10-04 12:05:28 +00:00
Erik Bershel e39db348e5 [Ubuntu] Add new alpine Docker images (#6343) 2022-10-04 11:09:52 +02:00
Mikhail Timofeev 1def28243d [Windows] Test Chrome and Chrome Driver major versions are the same (#6332)
* Add Chrome + Chromedriver test

* Get chromedriver version from versioninfo.txt

* Use VersionInfo.ProductMajorPart

* Add missing test cases block
2022-09-30 20:07:26 +02:00
github-actions[bot] c675cda187 Ubuntu 18.04 (20220923 update) (#6294)
* Updating readme file for ubuntu18 version 20220923.1

* Update Ubuntu1804-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-09-30 13:16:21 +03:00
Mikhail Timofeev f535d0e8dd Add Chrome + Chromedriver test (#6330) 2022-09-30 07:48:15 +03:00
bogdan-damian-bgd 2ebc6b71c9 Exclude Colima from tests for macOS 10.15 (#6325) 2022-09-30 07:47:42 +03:00
Aleksandr Chebotov 0ca065b7c2 Close System Preferences window (#6329) 2022-09-29 21:58:02 +02:00
Mikhail Timofeev 4944af825e Add Chrome + Chromedriver test (#6326) 2022-09-29 20:02:58 +03:00
Aleksandr Chebotov 7c44272788 [macOS] Software Updates 2022 Week 40 (#6323) 2022-09-29 15:48:58 +03:00
github-actions[bot] 3dc0bd320a Updating readme file for win19 version 20220925.1 (#6306)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-28 19:15:49 +00:00
github-actions[bot] fe5c2bcdc2 Updating readme file for win22 version 20220925.1 (#6307)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-28 18:20:40 +00:00
Aleksandr Chebotov 3f0a28fe18 [macOS] Add Parallels Desktop extension (#6314)
* Add Parallels Desktop extension

* fix typo

* remove new line
2022-09-28 20:06:08 +03:00
github-actions[bot] b0885e18a1 Updating readme file for macOS-11 version 20220925.1 (#6311)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-09-28 11:36:41 +00:00
bogdan-damian-bgd ab4f43d818 [macOS] Add Colima tool (#6285)
* Add Colima tool to macos images

* PR fixes: skip Catalina; switch to toolset json
2022-09-27 09:54:35 +02:00
github-actions[bot] 00b572dfdf Ubuntu 22.04 (20220925 update) (#6308)
* Updating readme file for ubuntu22 version 20220925.1

* Update Ubuntu2204-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-27 07:33:25 +00:00
Benedek Farkas 0f5b7340dd Actualizing the Windows post-generation scripts' documentation (#6309) 2022-09-27 10:25:24 +03:00
github-actions[bot] d224010908 Ubuntu 20.04 (20220922 update) (#6291)
* Updating readme file for ubuntu20 version 20220922.2

* Update Ubuntu2004-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-26 11:17:48 +00:00
Aleksandr Chebotov f412cb04d7 [Windows] Add docker symlink (#6287) 2022-09-24 17:09:06 +03:00
Mikhail Koliada dc7240348e [Ubuntu] fix sw generator for homebrew (#6288) 2022-09-23 09:50:33 +02:00
Mikhail Koliada 9efcd841b9 [Ubuntu] do not add homebrew to $PATH (#6240) 2022-09-22 18:07:12 +02:00
Mikhail Timofeev 641fd77b4e Set Xcode 14.0.1 as the default version (#6272) 2022-09-22 18:25:13 +03:00
github-actions[bot] e89b790394 Updating readme file for ubuntu22 version 20220919.1 (#6266)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-21 10:22:07 +00:00
github-actions[bot] 90eed8c8ef Updating readme file for macOS-11 version 20220918.1 (#6268)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-21 10:02:49 +00:00
Mikhail Koliada 4a83f39eb5 [Ubuntu] remove gfortran symlink from brew (#6276) 2022-09-21 10:44:01 +02:00
github-actions[bot] 4369f2be15 Updating readme file for win22 version 20220919.1 (#6271)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-21 03:01:01 +00:00
github-actions[bot] 43242c8672 Updating readme file for win19 version 20220918.1 (#6261)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-20 18:59:14 +00:00
github-actions[bot] ab475d3ed7 Updating readme file for macOS-12 version 20220917.1 (#6267)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-09-20 08:54:08 +00:00
Erik Bershel c0d68d79cc Update installers comments (#6262) 2022-09-20 08:32:48 +03:00
Aleksandr Chebotov 15f134a85a Exclude Windows Defender update checking (#6259) 2022-09-19 18:44:38 +03:00
Mikhail Koliada 3fab712c1e [Ubuntu] Install gcc@12 from brew (#6258) 2022-09-19 16:36:04 +03:00
Mikhail Timofeev 518f5407fa Add Xcode 14.0.1 to macOS 12 (#6255) 2022-09-17 18:05:53 +03:00
Erik Bershel 7f10a5a590 [Windows] Add ImageMagick tool (#6247)
* Add ImageMagick tool

* Add ImageMagick tool
2022-09-16 10:23:13 +02:00
Mikhail Koliada 058d0730dd [macOS] Add Xcode 14.1 beta (#6249) 2022-09-15 21:34:12 +03:00
github-actions[bot] 4e92b11f09 Updating readme file for macOS-11 version 20220912.1 (#6238)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-15 14:41:14 +00:00
github-actions[bot] af77e4c2e4 Updating readme file for macOS-10.15 version 20220912.1 (#6245)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-15 08:34:23 +00:00
Aleksandr Chebotov e3460fa423 Enable WpnUserService (#6246) 2022-09-15 10:17:39 +03:00
Erik Bershel 771b5010e7 [Ubuntu] Update file name comment - sbt.sh (#6242) 2022-09-14 20:24:53 +03:00
Erik Bershel ab39638013 [Ubuntu] Update file name comment - mono.sh (#6241) 2022-09-14 18:37:36 +03:00
github-actions[bot] 0b95b4b080 Updating readme file for macOS-12 version 20220912.1 (#6237)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-09-14 11:05:15 +00:00
github-actions[bot] b8fb0338e1 Updating readme file for ubuntu22 version 20220912.1 (#6228)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-14 04:09:36 +00:00
Sam Tran 3f917ab018 update codeowners to the right team for PR reviews (#6236) 2022-09-14 07:03:52 +03:00
Mikhail Koliada dd51aedc2f Revert "[Ubuntu] install gcc@11 from brew (#6202)" (#6232)
This reverts commit d2c84c9d4c.
2022-09-13 18:59:39 +03:00
github-actions[bot] 6616fca614 Updating readme file for win19 version 20220911.1 (#6219)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-13 15:49:27 +00:00
github-actions[bot] 2e3f36a958 Updating readme file for win22 version 20220911.1 (#6218)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-13 15:47:59 +00:00
Mikhail Koliada dd1f8458b4 Rebrand templates (#6226) 2022-09-13 15:19:59 +03:00
Mikhail Timofeev 9d9b5da489 [Windows] Replace Docker EE with Docker CE (#6220) 2022-09-13 08:13:08 +03:00
Mikhail Koliada cecc9022fa [Ubuntu] Install latest google-cloud-sdk (#6222) 2022-09-12 21:28:26 +03:00
Erik Bershel ce11b31f3b [Ubuntu] Add VCPKG_ROOT variable (#6196) 2022-09-12 20:17:10 +03:00
Mikhail Koliada d2c84c9d4c [Ubuntu] install gcc@11 from brew (#6202) 2022-09-12 18:31:28 +03:00
Aleksandr Chebotov 88b883191b Update file name comment (#6215) 2022-09-12 08:26:03 +02:00
Aleksandr Chebotov 8129295567 Remove fastlane cached cookie (#6206) 2022-09-09 17:58:47 +03:00
github-actions[bot] d2c7d51d00 Updating readme file for macOS-11 version 20220906.1 (#6191)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-09 14:30:46 +00:00
Mikhail Timofeev b05ee61a96 Add Xcode 14 beta 6 in macOS 12 toolset (#6204) 2022-09-09 12:48:50 +03:00
Erik Bershel 148eaf9c80 Add VCPKG_ROOT variable (#6195) 2022-09-09 11:04:46 +02:00
Aleksandr Chebotov 03c71fa649 Install WDK.vsix on VS 2022 (#6203) 2022-09-09 11:56:40 +03:00
github-actions[bot] 3414173a17 Updating readme file for macOS-12 version 20220907.1 (#6201)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-08 16:43:58 +00:00
Erik Bershel a4b9a51304 [Windows] Add VCPKG_ROOT variable (#6192) 2022-09-08 18:29:02 +03:00
github-actions[bot] 27d6979ea5 Updating readme file for ubuntu20 version 20220905.1 (#6188)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-08 08:50:51 +00:00
github-actions[bot] 97c9723c8f Updating readme file for win19 version 20220905.1 (#6186)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-07 20:55:18 +00:00
github-actions[bot] 212fa3171c Updating readme file for win22 version 20220905.1 (#6187)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-07 14:52:41 +00:00
github-actions[bot] e295cb5837 Updating readme file for ubuntu22 version 20220905.1 (#6189)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-07 10:24:55 +00:00
github-actions[bot] 9d9d80c124 Updating readme file for macOS-12 version 20220904.1 (#6183)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-09-06 15:55:45 +00:00
Aleksandr Chebotov f1abfa5fde Fix chromium revision parsing (#6182) 2022-09-05 13:54:06 +03:00
Erik Bershel ef9c8bf522 [Windows] Add Windows11SDK.22621 to Win19 (#6148)
* [Windows] Add Windows11SDK.22621 to Win19

* Code style fix

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-09-02 18:59:40 +02:00
github-actions[bot] 893683b559 Updating readme file for macOS-11 version 20220829.1 (#6169)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-09-01 11:12:05 +00:00
github-actions[bot] 2b95216443 Updating readme file for macOS-10.15 version 20220829.1 (#6167)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-31 16:47:21 +00:00
github-actions[bot] e661113bbd Updating readme file for macOS-12 version 20220829.1 (#6170)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-08-31 12:06:01 +00:00
Mikhail Timofeev cda85a59ac [macOS] Stop versioned postgresql service instead of the general one (#6166)
* Stop versioned postgresql service instead of the general one

* Start versioned postgres service
2022-08-30 20:06:24 +03:00
github-actions[bot] 566a276495 Updating readme file for win22 version 20220828.1 (#6157)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-30 15:21:45 +00:00
github-actions[bot] 31fc221295 Updating readme file for win19 version 20220828.1 (#6160)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-30 13:58:19 +00:00
Mikhail Timofeev e70c75b60c Rename team in the PR creation (#6168) 2022-08-30 13:31:30 +03:00
github-actions[bot] 0a705f29e4 Updating readme file for ubuntu20 version 20220828.1 (#6158)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-30 07:52:37 +00:00
github-actions[bot] f76ec3d91c Updating readme file for ubuntu22 version 20220828.1 (#6159)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-30 07:39:30 +00:00
Mikhail Timofeev 22ec52bf2c Uninstall public_suffix 5.0 gem (#6150) 2022-08-29 20:21:08 +03:00
Mikhail Timofeev 30031f7d7b Take second split from the end (#6156) 2022-08-29 14:29:38 +03:00
Mikhail Timofeev 2959f467ce Install the latest swiftlint only for macOS 12 (#6151) 2022-08-28 18:11:59 +03:00
github-actions[bot] 190a1de6f7 Updating readme file for macOS-11 version 20220822.4 (#6130)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-26 15:27:47 +00:00
Mikhail Koliada 59cd4c1aff [macOS] Install tvOS and watchOS runtime sims (#6140) 2022-08-26 11:29:28 +03:00
github-actions[bot] bf3b49d23b macOS 12 (20220823 update) (#6142)
* Updating readme file for macOS-12 version 20220823.1

* Update macos-12-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-26 08:20:24 +00:00
Aleksandr Chebotov 10f5bdffe2 [Windows] Add Microsoft.Net.Component.4.8.1 (#6125)
* Add Microsoft.Net.Component.4.8.1

* Add reboot step
2022-08-25 18:01:30 +03:00
Mikhail Koliada b23edef723 [macOS] Use json to parse libraries version (#6143) 2022-08-25 16:12:31 +03:00
Mikhail Koliada 06dd4c14e4 [macOS] Don't show CodeQl in Catalina's sw report (#6139) 2022-08-24 18:17:18 +03:00
Aleksandr Chebotov ef55b435e5 Update inotify resource limits (#6132) 2022-08-24 11:46:37 +03:00
Mikhail Koliada af3dd14fe0 [macOS] always return True on gfortran check (#6133) 2022-08-23 19:43:19 +03:00
github-actions[bot] 4de27cdee1 Updating readme file for win19 version 20220821.1 (#6118)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-23 13:41:37 +00:00
github-actions[bot] f32d372a9a Updating readme file for win22 version 20220821.1 (#6117)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-23 09:12:52 +00:00
github-actions[bot] 4346c1d6ad Updating readme file for ubuntu20 version 20220821.1 (#6120)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-23 08:23:19 +00:00
github-actions[bot] 7f0109069b Updating readme file for ubuntu22 version 20220821.1 (#6121)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-23 07:37:45 +00:00
Aleksandr Chebotov b0b00d426c Add sqlcmd on Ubuntu Server 22.04 (#6127) 2022-08-23 10:18:18 +03:00
Mikhail Koliada 38a1faf55d [macOS] Remove xctool formula installation (#6128) 2022-08-22 20:03:47 +03:00
Mikhail Koliada c08d333386 [macOS] Remove bats formula installation (#6122) 2022-08-22 15:56:33 +03:00
Erik Bershel 7bcb155f6a [actions] Update github/codeql-action release version from v1 to v2 (#6097) 2022-08-22 12:05:39 +04:00
github-actions[bot] 904b727ac0 Updating readme file for macOS-12 version 20220815.1 (#6100)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-19 11:57:54 +00:00
Mikhail Koliada 7910ae1578 select-datastore: make cluster parameter mandatory (#6112) 2022-08-19 13:56:31 +02:00
Aleksandr Chebotov 96fa9f7471 Update VC.14.32 to VC.14.33 (#6109) 2022-08-18 16:55:45 +02:00
github-actions[bot] b4c27dac05 Updating readme file for macOS-11 version 20220815.1 (#6095)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-17 18:19:36 +00:00
github-actions[bot] b7e70987ff Updating readme file for win22 version 20220816.1 (#6102)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-08-17 17:19:56 +00:00
Erik Bershel c22e0f8ec8 [macOS] CodeQL test correction (#6092) 2022-08-17 11:06:58 +02:00
github-actions[bot] 0f9ec68b45 Updating readme file for ubuntu22 version 20220815.3 (#6096)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-08-17 09:00:29 +00:00
Dusko Dobranic 2e8e30099e [all OSs] Change title in workflow log (#6058)
* [all OSs] Change title in workflow log

* Update images/linux/scripts/installers/preimagedata.sh

Co-authored-by: Sam Tran <samvantran@github.com>

* Resolve comments

* Revert to 'Runner Image' and 'Image' labels

Co-authored-by: Sam Tran <samvantran@github.com>
2022-08-16 17:01:50 +02:00
github-actions[bot] 2258424a33 Updating readme file for win19 version 20220814.1 (#6079)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-16 13:28:06 +00:00
github-actions[bot] 0794fd91bd Updating readme file for win22 version 20220814.1 (#6078)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-16 13:06:08 +00:00
Mikhail Koliada 55b724ed82 [Ubuntu] fix README for 20.04 (#6093) 2022-08-16 14:32:34 +02:00
github-actions[bot] df2b544093 Updating readme file for ubuntu20 version 20220814.1 (#6077)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-16 12:13:06 +00:00
Mikhail Koliada 2309f23a21 [Ubuntu] fix Software report for OpenShift CLI (#6080) 2022-08-16 14:06:37 +02:00
Mikhail Koliada 14b3afe238 [Ubuntu] put Microsoft repo higher for dotnet (#6084) 2022-08-16 11:03:03 +02:00
Aleksandr Chebotov c733edf13c Set max_retries to 3 (#6085) 2022-08-16 09:55:11 +02:00
Aleksandr Chebotov 47039fc7d4 Add Component.Xamarin for Visual Studio 2022 (#6083) 2022-08-16 09:54:22 +02:00
Erik Bershel c25ce452cb [macOS] Added CodeQL Action Bundle to macOS 11 and macOS 12 (#6068)
* [macOS] CodeQL Action Bundle added to macOS 11 and 12 images

* [macOS] Added CodeQL Action Bundle to macOS 11 and macOS 12

* [macOS] Added CodeQL Action Bundle to macOS 11 and macOS 12
2022-08-15 19:36:32 +02:00
Aleksandr Chebotov b135fb8a59 Update python3 to 3.10 version (#6081) 2022-08-15 14:56:29 +02:00
Aleksandr Chebotov 7ca1ca6a5c Add ARM64EC workload for Visual Studio 2019 (#6075) 2022-08-15 13:19:48 +02:00
Aleksandr Chebotov 31eba923af Add VC.14.29.16.11.ARM component (#6064) 2022-08-12 19:25:31 +02:00
Dusko Dobranic d48bfb5671 Revert "[macOS] Added CodeQL (#6059)" (#6066)
This reverts commit d2c52297ae.
2022-08-12 09:46:38 +02:00
github-actions[bot] fa638dd3d6 Updating readme file for ubuntu22 version 20220807.1 (#6032)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-11 18:10:38 +00:00
Erik Bershel d2c52297ae [macOS] Added CodeQL (#6059)
* Go update to version 1.19

* Revert "Go update to version 1.19"

This reverts commit ec418d789f.

* Update of Go packages. Version 1.19.0 added.

* Revert "Update of Go packages. Version 1.19.0 added."

This reverts commit cc970ae829.

* [macOS] Added CodeQL to macOS 11 and 12.

Co-authored-by: Erik Bershel <110455084+re-gent@users.noreply.github.com>
2022-08-11 16:46:59 +02:00
Alexis Saettler 1c49c133ea [Windows] remove vcredist_2010_x64 duplicate test (#6060)
* [Windows] re-add vcredist_140 test

* remove vcredist_140 test
2022-08-11 16:45:40 +02:00
github-actions[bot] 52221a939c Updating readme file for win22 version 20220808.1 (#6037)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-11 14:04:11 +00:00
Mikhail Koliada 2fd91c95fc [Packer] Disable colored output on Ubuntu (#6057) 2022-08-11 10:09:05 +02:00
Aleksandr Chebotov 35be8465ea [macOS] Software Updates 2022 Week 33 (#6045)
* [macOS] Software Updates 2022 Week 33

* Set default bundle to 6_12_19
2022-08-10 19:42:33 +02:00
Mikhail Koliada 8d5e233acf [macOS] remove go-1.16.x (#6048) 2022-08-10 18:53:47 +02:00
Mikhail Koliada 662c5c5248 [Ubuntu] remove go-1.16.x (#6047) 2022-08-10 18:53:00 +02:00
Mikhail Koliada bf8d2862f8 [Windows] remove go-1.16.x (#6046) 2022-08-10 18:51:59 +02:00
Jacob Gillespie 40e93383ae Fix README typos (#6035) 2022-08-10 16:57:04 +02:00
github-actions[bot] 93791cc2a2 Updating readme file for macOS-12 version 20220809.1 (#6044)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-10 14:47:04 +00:00
Aleksandr Chebotov e19725fcbe Replace virtual-environments to runner images (#6050) 2022-08-10 15:51:15 +02:00
github-actions[bot] 9d12e06dbc Updating readme file for macOS-11 version 20220807.1 (#6040)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-10 13:49:37 +00:00
Casper da Costa-Luis 4994130a96 virtual-environments => runner-images (#6033)
* virtual-environments => runner-images

- as per https://github.blog/changelog/2022-08-08-github-actions-runner-images-repository-refresh

* revert readme changes

- as per https://github.com/actions/runner-images/pull/6033#discussion_r941173809
2022-08-10 14:55:34 +02:00
Vladimir Safonkin 03b7305ca1 Add Xcode 14 to macos-12 toolset (#6043) 2022-08-09 22:11:16 +02:00
github-actions[bot] 54ec59e5ee Updating readme file for ubuntu20 version 20220807.1 (#6031)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-09 09:16:53 +00:00
Larissa Fortuna ce8db94ed2 Virtual environment rebrand - readme updates (#6006)
* Create release-preview.md

* Update release-preview.md

* Update release-preview.md

* Update release-preview.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* update support policy wording

* Update README.md

* Preparing for upstream PR

deleted a test file I made

* fixing some linting errors

* Update README.md

* Apply suggestions from code review

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

* Updating per PR suggestions

* Delete software-and-images-guidelines.md

* Updates per Steve's suggestion

* Update README.md

* Apply suggestions from code review

Co-authored-by: Sam Tran <samvantran@github.com>

* Update README.md

* Revert "Update README.md"

This reverts commit 9ff7d224e3.

* docs: fix markdownlint errors

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Sam Tran <samvantran@github.com>
2022-08-08 08:25:58 -07:00
Aleksandr Chebotov bf34dfb00a Wait for mongodb service running (#6030) 2022-08-08 15:55:18 +02:00
Aleksandr Chebotov f1bb031e43 [Windows] Disable mongodb service by default (#6023)
* Disable mongodb service by default

* Add ErrorAction Ignore
2022-08-05 20:50:37 +02:00
github-actions[bot] 58ba4559eb Updating readme file for macOS-11 version 20220801.1 (#5996)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-05 15:20:47 +00:00
Mikhail Timofeev e033c5a564 Change NDK latest to NDK root (#6025) 2022-08-05 13:36:32 +03:00
Erik Bershel aa72ffdfa5 [Windows] Add go 1.19 (#6017) 2022-08-04 23:00:36 +03:00
Erik Bershel 9405db0ad6 [macOS] Add Go 1.19 (#6018) 2022-08-04 23:00:05 +03:00
Erik Bershel 3f18bb3a7f [Ubuntu] Add Go 1.19 (#6019) 2022-08-04 22:59:41 +03:00
github-actions[bot] 191165a280 Updating readme file for win19 version 20220801.1 (#6005)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-03 13:39:11 +00:00
Aleksandr Chebotov 2ec5b2e02e Fix installer pattern to support macOS beta version (#6012) 2022-08-03 13:12:07 +03:00
github-actions[bot] f4fb14342c Updating readme file for ubuntu20 version 20220729.1 (#6000)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-03 10:05:48 +00:00
github-actions[bot] 6e9102ff56 Updating readme file for ubuntu18 version 20220729.1 (#5999)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-03 09:53:28 +00:00
github-actions[bot] a6fdb2785e Updating readme file for macOS-12 version 20220801.1 (#5997)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-03 09:25:47 +00:00
github-actions[bot] 2900984662 Updating readme file for win22 version 20220731.1 (#5993)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-02 15:11:51 +00:00
Mikhail Koliada 48e269b777 Do not remove release doc refs manually (#6004) 2022-08-02 13:51:54 +03:00
github-actions[bot] 7462d17cd2 Updating readme file for ubuntu22 version 20220731.1 (#5995)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-08-02 10:05:48 +00:00
Aleksandr Chebotov 8c24b03a8d Remove Windows Server 2016 related code from the repository (#5994) 2022-08-01 16:35:36 +03:00
Mikhail Timofeev 493f3c3ee1 [windows] Add exe installation of MicrosoftAnalysisServices Visual Studio extension (#5989)
* Add exe installation of MicrosoftAnalysisServices

* Change condition to check FileName.EndsWith
2022-07-29 22:13:23 +04:00
Mikhail Timofeev 77dfaa7c15 Add ndk-related environment variables to windows (#5985) 2022-07-29 12:08:30 +03:00
Mikhail Timofeev 1c6ef2dda5 Add ndk-related environment variables (#5984) 2022-07-29 09:50:39 +03:00
Mikhail Timofeev cd98711e9d Add ndk-related environment variables to ubuntu (#5983) 2022-07-28 17:08:57 +03:00
Dusko Dobranic 394c19d408 [macOS] Add Cmake 3.22.1 for Android (#5975) 2022-07-27 20:30:22 +03:00
Dusko Dobranic 1711b3f569 [Windows] Add Cmake 3.22.1 for Android (#5974) 2022-07-27 18:11:10 +03:00
Dusko Dobranic afa73a0f10 [Ubuntu] Add Cmake 3.22.1 for Android (#5973) 2022-07-27 16:40:35 +03:00
Aleksandr Chebotov 72b53f53de Create symlink for mongodb@5.0 (#5972) 2022-07-27 14:56:25 +03:00
github-actions[bot] f9f1f82374 Updating readme file for macOS-12 version 20220724.1 (#5963)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-27 11:13:47 +00:00
github-actions[bot] 0f7e5403eb Updating readme file for macOS-11 version 20220724.1 (#5965)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 17:22:40 +00:00
github-actions[bot] cafc238073 Updating readme file for macOS-10.15 version 20220724.1 (#5968)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 13:16:08 +00:00
github-actions[bot] 185a0cd1a0 Updating readme file for win22 version 20220724.1 (#5957)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 13:00:50 +00:00
LoveSy 46c1fd7e8d [Windows] add Android NDK 25 (#5905)
* [Windows] add Android NDK 25

* Update toolset-2022.json
2022-07-26 13:20:44 +03:00
LoveSy f1224c3d75 [Ubuntu] add Android NDK 25 (#5902) 2022-07-26 13:20:30 +03:00
Igor Boskovic 2e7646b11d [Mac OS] add Android NDK 25 (#5951) 2022-07-26 13:20:07 +03:00
github-actions[bot] ca5d04c7da Updating readme file for ubuntu20 version 20220724.1 (#5959)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 10:14:32 +00:00
github-actions[bot] 79a8a5a4e5 Updating readme file for ubuntu18 version 20220724.1 (#5962)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 09:43:46 +00:00
github-actions[bot] 20aeea43ae Updating readme file for ubuntu22 version 20220724.1 (#5961)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 09:38:02 +00:00
github-actions[bot] 22245583b4 Updating readme file for win19 version 20220724.1 (#5958)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-26 09:27:52 +00:00
Aleksandr Chebotov cbcc50c80d Bypass Windows Defender false alarm (#5969) 2022-07-26 10:09:24 +03:00
Mikhail Timofeev 11cfd9eac0 Add mono package to ubuntu 22 (#5950) 2022-07-25 12:26:39 +03:00
Aleksandr Chebotov d746320dd3 Fix libssl1.1 installation (#5956) 2022-07-25 12:21:50 +03:00
Mariusz Ferdyn 4afedce20d Added step for download & install git (#5955) 2022-07-25 12:15:26 +03:00
github-actions[bot] 79c921a4c1 Updating readme file for macOS-10.15 version 20220709.1 (#5889)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-22 19:41:34 +00:00
Aleksandr Chebotov 2226408acc Add azure_tag (#5946)
Replace list to map

Remove all values

add space

add space
2022-07-22 12:53:00 +03:00
github-actions[bot] 4f552247b1 Updating readme file for macOS-11 version 20220719.1 (#5940)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-21 18:21:18 +00:00
Mikhail Timofeev a26e424787 Add dotfuscator component to VS2022 (#5944) 2022-07-21 20:11:00 +03:00
Aleksandr Chebotov 5be8ca11a1 [Windows] Add MSVC++ 14.32 (#5939)
* Add MSVC++ 14.32

* Remove duplicates and add ARM components

* Add ATL and MFC ARM components

* Remove ARM64EC
2022-07-21 18:16:29 +03:00
github-actions[bot] 150bd6d922 Updating readme file for macOS-12 version 20220717.1 (#5924)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-21 14:56:25 +00:00
Mikhail Timofeev a41909d0c5 [Windows] Remove ndk-bundle (#5927)
* Remove ndk-bundle from windows

* Remove NDK-related variables
2022-07-21 10:33:38 +03:00
Mikhail Timofeev 593ab19a0f Remove ndk-bundle + old ndk versions from macOS (#5929) 2022-07-21 10:33:26 +03:00
Aleksandr Chebotov ef8f8086d5 Add ProBITools.MicrosoftAnalysisServicesModelingProjects2022 3.0.4 (#5937) 2022-07-20 15:34:03 +03:00
github-actions[bot] 17dbe2ac54 Updating readme file for macOS-11 version 20220710.1 (#5890)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-20 11:16:01 +00:00
github-actions[bot] 595ca70a29 Updating readme file for win19 version 20220717.1 (#5928)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-19 13:57:25 +00:00
github-actions[bot] 300269fa36 Updating readme file for ubuntu18 version 20220717.1 (#5921)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-19 10:10:58 +00:00
Aleksandr Chebotov f4d7f82bf7 Remove ProBITools.MicrosoftAnalysisServicesModelingProjects2022 (#5933) 2022-07-19 13:09:08 +03:00
Mikhail Timofeev 893e347c8e Remove ndk-bundle from ubuntu (#5926) 2022-07-19 13:06:31 +03:00
github-actions[bot] ce779a6f6e Updating readme file for ubuntu20 version 20220717.1 (#5922)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-19 10:05:18 +00:00
github-actions[bot] 0b9bb00cf4 Updating readme file for ubuntu22 version 20220717.1 (#5923)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-07-19 09:25:02 +00:00
Mikhail Timofeev ec11088c91 Xcversion is not depend on old CLAide version anymore (#5913) 2022-07-15 18:47:59 +03:00
Aleksandr Chebotov 92f8e13d53 Add .Net 6.0 latest version (#5912) 2022-07-15 15:01:11 +03:00
Mikhail Timofeev 907e9a0f30 Revert "Reverting ORAS CLI to version 0.12 (#5907)" (#5914)
This reverts commit 5a92cfc1a0.
2022-07-15 13:38:14 +03:00
Mikhail Koliada e621b60110 Revert "[Ubuntu] Apply esl-erlang workaround for 20.04 (#5867)" (#5909)
This reverts commit 8bef3e3651.
2022-07-15 08:04:15 +02:00
Suyash Saluja 5a92cfc1a0 Reverting ORAS CLI to version 0.12 (#5907) 2022-07-14 18:28:42 +03:00
Aleksandr Chebotov 519c874a5b Add Microsoft Analysis Services Projects 2022 (#5898) 2022-07-13 17:22:34 +03:00
github-actions[bot] 76dc052e15 Updating readme file for macOS-12 version 20220710.1 (#5888)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-13 11:26:59 +00:00
github-actions[bot] 68eabdf497 Updating readme file for win19 version 20220710.1 (#5884)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-12 10:55:46 +00:00
github-actions[bot] 0e0c1b467a Updating readme file for win22 version 20220710.1 (#5886)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-12 10:27:49 +00:00
github-actions[bot] eb3d502914 Updating readme file for ubuntu20 version 20220710.1 (#5885)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-12 10:22:32 +00:00
github-actions[bot] 1e586b007f Updating readme file for ubuntu18 version 20220710.1 (#5882)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-12 09:29:32 +00:00
github-actions[bot] 4e593327cd Updating readme file for ubuntu22 version 20220710.1 (#5883)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-12 09:18:15 +00:00
Aleksandr Chebotov 0dac8e59cd Check vm in failed status (#5893) 2022-07-12 11:52:06 +03:00
Aleksandr Chebotov 70019eaa8f [Windows] Replace Win32_Product call to registry query (#5887)
* Replace Win32_Product call to registry query

* Update properties
2022-07-12 10:10:32 +03:00
Mikhail Koliada 82c8123cac [Ubuntu] Add Microsoft Edge Web Driver (#5878)
* [Ubuntu] Add Edge Web Driver

* take part 0 in sw report
2022-07-09 08:49:21 +02:00
Aleksandr Chebotov ae186119be Fix invoking confirm-identified-developers.scpt script (#5876) 2022-07-08 10:40:48 +02:00
Aleksandr Chebotov 6de62ee5a4 Apt Always-Include-Phased-Updates (#5873) 2022-07-08 08:49:35 +03:00
Mikhail Koliada e91961e2f2 [Ubuntu] Add Microsoft Edge (#5874)
trailing whitespace
2022-07-08 08:49:17 +03:00
Dusko Dobranic b87bdfb146 Revert "[macOS] Set properties for device set list (#5700)" (#5871)
This reverts commit 4c876760ca.
2022-07-07 10:44:13 +03:00
Mikhail Timofeev e657930a55 [Ubuntu] Update link to openssl (#5870)
* Update link to openssl

* Fix filename in dpkg invocation
2022-07-07 10:20:52 +03:00
Mikhail Koliada 8bef3e3651 [Ubuntu] Apply esl-erlang workaround for 20.04 (#5867) 2022-07-06 19:59:48 +03:00
Aleksandr Chebotov 29468988d5 Fix output file (#5868) 2022-07-06 19:20:15 +03:00
AlexanderGitin 4c876760ca [macOS] Set properties for device set list (#5700)
* [macOS] Set properties for device set list

* replaced /Users/runner to $HOME

* Added comment
2022-07-06 13:59:35 +02:00
Aleksandr Chebotov a1c2e5e24d Update LLVM to version 14 (#5862) 2022-07-06 12:52:52 +03:00
Dusko Dobranic f62d8d956d [Windows\Linux] Update Az powershell to 7.5 (#5858) 2022-07-06 08:10:20 +02:00
Aleksandr Chebotov 0dd1c396a1 Update LLVM to version 14 (#5863) 2022-07-06 01:00:28 +02:00
Mikhail Koliada 24b25c7891 [macOS] set Xcode 13.4.1 as default (#5864) 2022-07-06 00:59:38 +02:00
Mikhail Timofeev d0d2b9239f Add vagrant to macOS-12 (#5854) 2022-07-04 13:35:52 +03:00
github-actions[bot] d5815d8d53 Updating readme file for win19 version 20220626.1 (#5830)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-02 13:03:30 +00:00
github-actions[bot] c7db1b7cbb Updating readme file for win22 version 20220626.1 (#5826)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-07-02 12:19:52 +00:00
Aleksandr Chebotov 64759ce1a3 Create IIS Express Development Certificate (#5852) 2022-07-01 11:43:40 +03:00
github-actions[bot] 054266a4b3 macOS 10.15 (20220627 update) (#5837)
* Updating readme file for macOS-10.15 version 20220627.1

* Update link to llvm@13

* Correct Clang/LLVM version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-30 10:19:48 +00:00
Henry Mercer b3b4deba3b Use v2 branch to get the Linux CodeQL bundle too (#5840)
https://github.com/actions/virtual-environments/pull/5307 did this for Windows; let's do Linux too.
2022-06-30 12:49:27 +03:00
github-actions[bot] 7ff67b1a39 macOS 11 (20220627 update) (#5832)
* Updating readme file for macOS-11 version 20220627.1

* Update link to llvm@13

* Fix brew clang version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-30 07:42:11 +00:00
Steve-Glass 3a88a04e47 macOS 10.15 deprecation status (#5842) 2022-06-29 17:25:43 +03:00
Aleksandr Chebotov 02d4539cae [Windows] Add WDK on Windows Server 2022 without VSIX (#5838)
* Add WDK on Windows Server 2022 without VSIX

* Fix extension names
2022-06-29 16:46:22 +03:00
github-actions[bot] 45da727c67 macOS 12 (20220627 update) (#5833)
* Updating readme file for macOS-12 version 20220627.3

* Update link to llvm@13

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-29 09:52:43 +00:00
Mikhail Timofeev baa8144439 Remove workaround for Mono download url (#5839) 2022-06-28 21:37:33 +03:00
Aleksandr Chebotov adff5b4649 Add llvm brew version (#5834) 2022-06-28 18:54:57 +03:00
github-actions[bot] 3482f716a3 Updating readme file for ubuntu20 version 20220626.1 (#5828)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-28 14:33:59 +00:00
github-actions[bot] 6d1b6d0d02 Updating readme file for ubuntu18 version 20220626.1 (#5825)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-28 13:46:57 +00:00
github-actions[bot] 2e10aa4cfd Updating readme file for ubuntu22 version 20220626.1 (#5827)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-28 11:32:05 +00:00
Aleksandr Chebotov b495a035c4 Update Clang/LLVM test to use absolute path (#5819) 2022-06-28 09:48:08 +03:00
Sander Trijssenaar 5b652198fe Removing mandatory VNET (#5821) 2022-06-27 13:41:19 +03:00
Mikhail Koliada e40657de17 [Ubuntu] Enable systemd lingering (#5812) 2022-06-27 10:05:28 +02:00
github-actions[bot] 1ede920d60 Updating readme file for macOS-11 version 20220622.7 (#5805)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-24 11:29:53 +00:00
github-actions[bot] bc2fdf77ff Updating readme file for macOS-12 version 20220622.2 (#5801)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-24 09:36:17 +00:00
github-actions[bot] 35e579b61b Updating readme file for macOS-10.15 version 20220622.2 (#5804)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-23 19:20:01 +00:00
github-actions[bot] 96c2ea8956 Updating readme file for win22 version 20220619.1 (#5783)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-23 14:37:16 +00:00
github-actions[bot] a94f92b4f9 Updating readme file for win19 version 20220619.1 (#5784)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-23 14:31:40 +00:00
Aleksandr Chebotov 86e4ccb246 Fix az cli warnings (#5803) 2022-06-23 13:58:16 +03:00
Aleksandr Chebotov e38f75e512 Update openssl 1.1 on Ubuntu 22.04 (#5798) 2022-06-23 12:37:51 +03:00
github-actions[bot] 56dc323e71 Updating readme file for ubuntu22 version 20220619.1 (#5785)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-23 09:20:46 +00:00
github-actions[bot] 17683c89ff Updating readme file for ubuntu18 version 20220619.1 (#5787)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-23 09:20:17 +00:00
Aleksandr Chebotov f83d069814 [macOS] Fix utils.sh: line 130: null: command not found (#5790)
* Fix utils.sh: line 130: null: command not found

* revert changes
2022-06-22 22:07:48 +03:00
Mikhail Timofeev 160d3cc825 Recreate nuget.config with a proper feed for macos (#5793) 2022-06-22 21:20:37 +03:00
github-actions[bot] 8fd4d28990 Updating readme file for ubuntu20 version 20220619.1 (#5786)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-22 18:10:30 +00:00
Aleksandr Chebotov 220c7ad69b Add dash version into documentation (#5796) 2022-06-22 18:23:30 +03:00
Aleksandr Chebotov 03d3125c20 Add permissions and run configure-machine.sh without sudo (#5789) 2022-06-22 08:46:22 +03:00
AlexanderGitin 02b78d07f4 [MacOs] Add Xamarin & bump bundle to 6.12.17 (#5764) 2022-06-22 01:58:02 +04:00
Aleksandr Chebotov ceb7831e50 [Packer] Fix anka packer template (#5778)
* Fix anka packer template

Fix indentation

Use sources

* Update boostrap path
2022-06-20 18:40:42 +02:00
github-actions[bot] 2f3323ba68 Updating readme file for macOS-10.15 version 20220615.1 (#5761)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-20 06:39:07 +00:00
Aleksandr Chebotov 39c4b5ac92 [Packer] Add anka macos12 hcl template (#5765)
* Add macOS-12 Anka packer template

* Fix indenation

* Update cpu and memory

* Move ] to next line

* Add default value
2022-06-20 09:32:07 +03:00
Aleksandr Chebotov e42b607790 [Windows] Set WSLv1 version on Windows Server 2022 (#5762)
* Set WSLv1 version on Windows Server 2022

* Create path if missing
2022-06-17 09:24:02 +02:00
github-actions[bot] a58f12fe95 Updating readme file for macOS-12 version 20220615.1 (#5756)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-17 05:51:58 +00:00
github-actions[bot] 4790ac0a20 Updating readme file for macOS-11 version 20220614.2 (#5757)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-16 23:02:04 +00:00
Johan Laanstra 6a2f3acb88 Adds the Windows SDK (10.0.22621) for Windows 11, version 22H2 (#5755) 2022-06-16 18:16:25 +03:00
Andrew Brown 89ee433676 Update MinGW on Windows 2022 (#5729)
* Update MinGW on Windows 2022

Previously, the GitHub virtual environments only had MinGW v8.1.0
installed. That version was released in October of 2018 and, since then,
MinGW has released versions all the way up to v11.2.0. This change
updates the MinGW version to the latest available on Chocolatey for the
Windows 2022 environment. Windows 2019 retains the current v8.1.0
version. Fixes #5530.

* Update MinGW documentation

* Additionally update win-2016 version

* Revert "Update MinGW documentation"

This reverts commit cb7a72ff0f.

* fix: modify the pattern used for retrieving the MinGW version
2022-06-16 18:15:38 +03:00
Aleksandr Chebotov 70cbad1d25 Rename macOS-11 anka hcl template (#5758) 2022-06-16 14:57:18 +04:00
Semen Zhydenko f8c0aa0241 Ss18/typos (#5753)
* FIX: typo becuase -> because

* FIX: typo succesfully -> successfully
2022-06-16 12:32:30 +03:00
github-actions[bot] 5edad1303c Updating readme file for win19 version 20220614.0 (#5749)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-16 09:27:55 +00:00
github-actions[bot] 58b9c4ec45 Updating readme file for ubuntu18 version 20220614.0 (#5748)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-16 09:21:48 +00:00
github-actions[bot] 7de34e33a8 Updating readme file for ubuntu20 version 20220614.0 (#5747)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-16 09:15:11 +00:00
Mikhail Koliada 199bdd9dd9 [Ubuntu] Install aws-cli v2 on 18.04 (#5743) 2022-06-16 12:09:45 +03:00
github-actions[bot] 4bbb6eb6ae Updating readme file for win22 version 20220614.0 (#5745)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-16 09:06:15 +00:00
github-actions[bot] cdde5f7f12 Updating readme file for ubuntu22 version 20220614.0 (#5750)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-06-16 08:33:08 +00:00
Mikhail Timofeev c9a93eb735 Revert "Add Xcode 14 to macOS 12 image (#5703)" (#5742)
This reverts commit 5bb008fe60.
2022-06-14 16:16:43 +03:00
Steve-Glass 65f4b83103 Remove macOS 12 beta reference (#5732) 2022-06-14 16:16:13 +03:00
Aleksandr Chebotov 959274c3fc Improve github releases parser (#5738) 2022-06-14 15:52:15 +03:00
Mikhail Koliada bf4d034f1d [macOS] get double quotes back in sw report for VS (#5741) 2022-06-14 15:14:05 +04:00
Aleksandr Chebotov 04f68be19e [Windows] Improve Get-GitHubPackageDownloadUrl function (#5724)
* Improve Get-GitHubPackageDownloadUrl function

* Use Select-String
2022-06-14 09:34:46 +02:00
Aleksandr Chebotov 9cf1ebd754 Improve github releases parser (#5717) 2022-06-13 16:54:27 +02:00
Mikhail Koliada 38ada90269 fix SW report regarding VS for macOS (#5727) 2022-06-13 16:49:22 +02:00
Aleksandr Chebotov be40e97a97 Update erlang repo (#5722) 2022-06-13 13:37:41 +02:00
Dusko Dobranic 2b9e9f4302 Fix maven install on Ubuntu (#5721) 2022-06-13 11:43:08 +02:00
github-actions[bot] 5181bf0714 Updating readme file for macOS-12 version 20220605.1 (#5714)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 23:09:51 +00:00
github-actions[bot] 2950cbfeab Updating readme file for win22 version 20220607.3 (#5713)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 18:43:35 +00:00
github-actions[bot] 95feb85cb8 Updating readme file for ubuntu20 version 20220605.1 (#5696)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 18:33:23 +00:00
github-actions[bot] 6466abe35e Updating readme file for ubuntu18 version 20220605.1 (#5694)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 18:27:47 +00:00
github-actions[bot] f015f9e660 Updating readme file for ubuntu22 version 20220605.1 (#5695)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 17:21:23 +00:00
github-actions[bot] 161fb6f4d1 Updating readme file for macOS-11 version 20220605.1 (#5698)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 15:55:10 +00:00
github-actions[bot] e636e5e9b4 Updating readme file for win19 version 20220606.1 (#5705)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 14:20:05 +00:00
github-actions[bot] 0db794c553 Updating readme file for macOS-10.15 version 20220605.1 (#5697)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-09 11:19:07 +00:00
Aleksandr Chebotov 9f92c57e69 Remove step to install Microsoft GPG public key (#5710) 2022-06-08 17:31:08 +03:00
Aleksandr Chebotov 7aa16adef0 Update bazel cache once (#5709) 2022-06-08 17:30:31 +03:00
Aleksandr Chebotov 5690ae9183 Revert "Add WDK on Windows Server 2022 (#5652)" (#5711)
This reverts commit 16f6912f37.
2022-06-08 17:26:18 +03:00
Mikhail Timofeev 76f5a7d73e Add a note about VS 2019 usage (#5701) 2022-06-07 09:37:38 +03:00
Mikhail Timofeev 5bb008fe60 Add Xcode 14 to macOS 12 image (#5703) 2022-06-07 09:36:34 +03:00
Mikhail Koliada 8b4d799f25 [Ubuntu] Remove apt-key from GCP installer (#5687) 2022-06-06 17:06:55 +03:00
Aleksandr Chebotov f380cc1031 Add miniconda to macOS 12 (#5693) 2022-06-06 15:39:50 +03:00
Mikhail Koliada 787d6f6ee7 [Ubuntu] install Temurin gpg key manually on 22.04 (#5676) 2022-06-06 13:49:12 +03:00
Mikhail Koliada 7d31b635ea [Ubuntu] Remove apt-key from rlang install script (#5685) 2022-06-06 13:32:35 +03:00
Mikhail Koliada 1583fd17e7 [Ubuntu] Remove apt-key from postgresql installer (#5686) 2022-06-06 13:32:21 +03:00
Aleksandr Chebotov d63f3cf0f4 Use direct link to download latest yq version (#5689) 2022-06-06 09:30:14 +02:00
Mikhail Timofeev 184da3fa5c Add xcode 13.4.1 to macOS12 image (#5684) 2022-06-03 14:49:13 +03:00
Mikhail Koliada 9e4822e54e [Ubuntu] rework Microsoft repo installation (#5680) 2022-06-03 14:48:40 +03:00
github-actions[bot] 36df9267d0 Updating readme file for win22 version 20220529.1 (#5647)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 12:58:33 +00:00
github-actions[bot] 37ee313287 Updating readme file for win19 version 20220529.1 (#5646)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 09:58:40 +00:00
github-actions[bot] 3c0d5a6a78 macOS 10.15 (20220531 update) (#5667)
* Updating readme file for macOS-10.15 version 20220531.1

* Update macos-10.15-Readme.md

Add Microsoft Edge WebDriver 102.0.1245.2

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 09:54:36 +00:00
github-actions[bot] b0853ccdf3 Ubuntu 20.04 (20220529 update) (#5649)
* Updating readme file for ubuntu20 version 20220529.1

* Add php 8.0.19

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 09:41:00 +00:00
github-actions[bot] 51480d4573 Updating readme file for macOS-11 version 20220530.2 (#5673)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 09:31:59 +00:00
github-actions[bot] 5e4e06dbc3 Ubuntu 18.04 (20220529 update) (#5650)
* Updating readme file for ubuntu18 version 20220529.1

* Add php 8.0.19

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 08:37:37 +00:00
github-actions[bot] 3b183c64ee Updating readme file for ubuntu22 version 20220601.2 (#5665)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 08:37:00 +00:00
github-actions[bot] ee0e8358f2 macOS 12 (20220531 update) (#5662)
* Updating readme file for macOS-12 version 20220531.1

* Add Microsoft Edge WebDriver 102.0.1245.2

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-06-02 06:20:49 +00:00
Mikhail Koliada ebef5188d0 [macOS] Add Android NDK 24 (#5671) 2022-06-02 00:00:09 +03:00
Mikhail Koliada 044a4394ad [Windows] Add Android NDK 24 (#5672) 2022-06-01 23:09:55 +03:00
Mikhail Koliada a0452b1439 [Ubuntu] add Android NDK 24 (#5670) 2022-06-01 22:56:32 +03:00
Mikhail Timofeev e9c9ab26f1 Fix msedge driver output in readme (#5664) 2022-06-01 22:50:20 +03:00
Mikhail Timofeev 5da9968af3 Add platform field, rework some points (#5660) 2022-06-01 22:49:17 +03:00
Aleksandr Chebotov 6f162dda04 Downgrade aws cli v1 to 1.24.10 (#5663) 2022-06-01 17:27:13 +03:00
Aleksandr Chebotov 16f6912f37 Add WDK on Windows Server 2022 (#5652) 2022-06-01 15:13:31 +02:00
Aleksandr Chebotov e27faa696e [Ubuntu] Do not add adoptopenjdk ppa to Ubuntu Server 22.04 (#5659)
* Do not add adoptopenjdk ppa to Ubuntu Server 22.04

* typo fi
2022-06-01 13:46:04 +03:00
AlexanderGitin d929386a18 [Windows] Add Microsoft Reporting Services Projects support (#5485)
* [Windows] Add Microsoft Reporting Services Projects support

* Hardcode MSReport URL for VS2022

* Сhanged MSReport URL for VS2022
2022-06-01 10:17:05 +02:00
Aleksandr Chebotov 36ddf7491f Remove ssh legacy fix for Ubuntu Server 22.04 (#5645) 2022-06-01 11:08:42 +03:00
Dusko Dobranic 0fec5d8152 Fix PHP8.0.x version in software report (#5653)
* Fix PHP8.0.x version in software report

* Remove hardcoded value for epoch

* Using updated regex to match epoch version
2022-05-31 21:35:28 +03:00
Aleksandr Chebotov fbbf35456f [macOS] Install latest Android cmdline-tools (#5641)
* Install latest Android cmdline-tools

* Use cmdlineToolsVersion variable
2022-05-31 11:07:01 +03:00
Aleksandr Chebotov 82d552ac56 [Ubuntu] Install latest Android cmdline-tools (#5639)
* [Ubuntu] Install latest Android cmdline-tools

* Move yq installation
2022-05-31 11:05:22 +03:00
Bryan Ricker 1938bdf841 [Ubuntu] add out-of-the-box SourceKitten support (#5634)
[SourceKitten](https://github.com/jpsim/SourceKitten), a popular Swift
library for interacting with SourceKit, needs to know (or be told) the
location of the sourcekitd framework. SourceKitten is somewhat
[ubiquitous](https://github.com/jpsim/SourceKitten#projects-built-with-sourcekitten);
most Swift projects I've seen or worked on used SourceKitten in some
way.

On macOS, the sourcekit framework is baked-in to the Xcode toolchain(s) and
therefore its location is generally known. On Linux, the location of the
sourcekit framework is wherever swift is installed, which is unknown to
libraries like SourceKitten.

SourceKitten searches for the sourcekit framework in [a few
locations](https://github.com/jpsim/SourceKitten/blob/f7cf1e3b6328f21e344e83450ae1298af69de281/Source/SourceKittenFramework/library_wrapper.swift#L51-L104),
but it's unable to infer the location of the framework on these ubuntu
images. The result when attempting to run any SourceKitten-based tool in
Github Actions on an ubuntu VM is the following error:

```
SourceKittenFramework/library_wrapper.swift:31: Fatal error: Loading libsourcekitdInProc.so failed
/home/runner/work/_temp/cb002a5e-1916-4e05-ba4d-f70ad3bb2266.sh: line 1:  3944 Illegal instruction     (core dumped) mint run swiftlint .
```

(to be clear, this error is not specific to the Github Actions ubuntu
VMs. The same error occurs on any Ubuntu system).

Individual users can work around this by setting the following
environment variable:

```
LINUX_SOURCEKIT_LIB_PATH="/usr/share/swift/usr/lib"
```

This is not a good workaround for the following reasons:

1. The end user doesn't necessarily know where swift is installed.
2. A change to the location of the swift installation would break this
   workaround.
3. The error will occur virtually 100% of the time on a user's first
   attempt to run SourceKitten on ubuntu, and takes at least a
   few minutes to troubleshoot. This will quickly add up to a
   non-trivial amount of lost productivity.

So, anyways, my proposal is to just link sourcekitd to a location where
SourceKitten will find it, so most developers don't have to think about it.
`LINUX_SOURCEKIT_LIB_PATH` can be defined by the user if they have an
unusual setup.

Alternative:

- Don't symlink, add `LINUX_SOURCEKIT_LIB_PATH` to `/etc/environment`.
2022-05-31 08:50:57 +02:00
Aleksandr Chebotov b07aceb7a4 [Windows] Install parcel after python3 (#5629) 2022-05-31 03:24:33 +04:00
Blake f61057f208 fix script (#5644) 2022-05-30 23:41:16 +02:00
Aleksandr Chebotov f4e9588993 [Windows] Install latest Android cmdline-tools (#5619)
* Install latest Android cmdline-tools

* Use Get-ToolsetContent

* Fix variable typo

* replace variable

* Fix Windows 2016
2022-05-30 16:39:37 +02:00
Mikhail Koliada 47e8783e7e [macOS] deprecate xcode 13.2 on Big Sur (#5638) 2022-05-30 15:49:56 +02:00
jeffpuckett 520f852a21 Add option to auto clean up packer resources if there is an error during packer image creation (#5635)
* Add option to auto clean up packer resources if there is an error during packer image creation

* Add option to auto clean up packer resources if there is an error during packer image creation

* Add option to auto clean up packer resources if there is an error during packer image creation

Co-authored-by: Jeff Puckett <jpuckett@yprime.com>
2022-05-30 14:40:06 +02:00
Larissa Fortuna a814bcd513 Adding beta indicator (#5628)
Ubuntu 22 and macOS12 are in beta - we need to indicate that here.
2022-05-28 09:14:05 +02:00
Mikhail Timofeev 0d30c1390d Downgrade parcel to 2.5.0 (#5627) 2022-05-27 15:50:29 +03:00
github-actions[bot] 6b6c1beded macOS 10.15 (20220523 update) (#5604)
* Updating readme file for macOS-10.15 version 20220523.3

* Update macos-10.15-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-27 11:34:52 +00:00
Mikhail Timofeev 992c2d3508 Fix software report output for cargo audit package (#5625) 2022-05-27 13:01:49 +03:00
Mikhail Timofeev 3c0d3f8709 Fix software report for cargo audit (#5624) 2022-05-27 11:14:16 +03:00
Mikhail Timofeev c61cbbf296 [Ubuntu] Add java dependent tools back to ubuntu 22 (#5618)
* Get back kotlin and selenium

* Get back leiningen and android tools
2022-05-27 09:46:59 +03:00
Aleksandr Chebotov 1d519b89d7 [macOS] Set Visual Studio 2022 for Mac by default (#5614)
* Set Visual Studio 2022 for Mac by default

* add isDefault
2022-05-26 18:05:57 +03:00
github-actions[bot] bf4c35eee5 Updating readme file for macOS-12 version 20220523.1 (#5596)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 13:09:41 +00:00
github-actions[bot] 0f372a0a73 macOS 11 (20220523 update) (#5605)
* Updating readme file for macOS-11 version 20220523.2

* Update macos-11-Readme.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 13:01:55 +00:00
github-actions[bot] 5db9b2ac4c Updating readme file for win19 version 20220522.1 (#5599)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 11:18:36 +00:00
github-actions[bot] 189927b46f Updating readme file for win22 version 20220522.1 (#5588)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-26 10:48:15 +00:00
Igor Boskovic 65955e2fb1 image build issue (#5613) 2022-05-26 11:53:27 +02:00
Mikhail Timofeev eabc37ce41 Add java tools installation to Ubuntu22 (#5612) 2022-05-25 23:11:06 +03:00
Mikhail Timofeev 9e72341e34 Add clang 13&14 instead of 10&11, make 14 default (#5610) 2022-05-25 20:28:50 +03:00
Mikhail Timofeev 4393b58dce Get back container tools on Ubuntu 18&20 (#5611) 2022-05-25 19:25:12 +03:00
Dusko Dobranic 102af04076 [macOS] Fix cargo audit version in software report (#5606) 2022-05-25 17:04:34 +03:00
Mikhail Timofeev 7a7fafda99 [macOS] Add virtualbox to macOS-12 (#5594)
* Add virtualbox to macOS-12

* Fix Get_OSVersion function as isBigSur didn't work

* Use proper comparison
2022-05-24 22:48:57 +03:00
Aleksandr Chebotov 12cbf387ca Update allowed_inbound_ip_addresses default condition (#5602) 2022-05-24 19:40:15 +03:00
Aleksandr Chebotov c3fb682f73 [ImageGen] Fix allowed_inbound_ip_addresses error (#5597)
* Fix allowed_inbound_ip_addresses error

* Add space
2022-05-24 14:30:13 +03:00
github-actions[bot] de68d8faea Updating readme file for ubuntu22 version 20220522.1 (#5589)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-24 08:41:22 +00:00
juliancarrivick 64e497aba9 Add clang-tidy to Ubuntu images (#5541) 2022-05-23 16:50:28 +03:00
Shohei Maeda f8f8c93509 [Ubuntu] Use new Hashicorp Releases API (#5587) 2022-05-23 16:47:07 +03:00
Mikhail Koliada 1996a78b43 fix Ubuntu 22.04 template extension (#5591) 2022-05-23 15:04:06 +03:00
Mikhail Koliada e4d58452f4 [Ubuntu] Rework podman and tools installation (#5580) 2022-05-20 16:40:31 +03:00
github-actions[bot] 984b0a83de Updating readme file for macOS-10.15 version 20220515.1 (#5552)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-20 11:24:00 +00:00
Aleksandr Chebotov c93738bd53 Replace client_secret to client_cert_path (#5579) 2022-05-20 13:51:55 +03:00
Mikhail Timofeev dc7d03e49d [Ubuntu] Make software and release URLs using variables instead of hardcode (#5572)
* Make urls using variables instead of hardcode

* Simplify versions retrieval
2022-05-19 21:47:48 +02:00
Aleksandr Chebotov 0aa72a7eba Add appcenter-cli (#5571) 2022-05-19 19:53:47 +03:00
github-actions[bot] 0dd8232afe Updating readme file for macOS-11 version 20220517.4 (#5568)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 14:45:03 +00:00
Igor Boskovic 9a469f0216 add Ubuntu 22.04 badge readme url (#5570) 2022-05-19 17:27:55 +03:00
github-actions[bot] 8f236daf09 Updating readme file for win22 version 20220515.1 (#5558)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 12:41:29 +00:00
github-actions[bot] 17ccb0bc75 Updating readme file for win19 version 20220515.1 (#5551)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 09:11:58 +00:00
github-actions[bot] ca7fca068a Updating readme file for ubuntu20 version 20220515.1 (#5546)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 08:08:45 +00:00
AlexanderGitin e3079f0476 [Windows] Add safe directory to gitconfig (#5453) 2022-05-19 11:07:43 +03:00
github-actions[bot] 9aa72c4482 Updating readme file for ubuntu18 version 20220515.1 (#5545)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-19 07:46:58 +00:00
github-actions[bot] 74d2bc3b8b Ubuntu 22.04 (20220515 update) (#5547)
* Updating readme file for ubuntu22 version 20220515.1

* Update Ubuntu2204-Readme.md

Fix cargo outdated version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-18 20:57:08 +00:00
Aleksandr Chebotov 82d69fd301 [macOS] Add VSForMac 2022 Preview (#5561) 2022-05-18 17:49:37 +03:00
Aleksandr Chebotov 536cfa24b0 [Ubuntu] Revert powershell fix for Ubuntu 22.04 (#5567)
* Revert powershell fix for Ubuntu 22.04

* Move libssl1.1 dependency

* fix typo

* remove comment
2022-05-18 15:39:37 +03:00
github-actions[bot] 20158a6906 Updating readme file for macOS-12 version 20220516.1 (#5557)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-17 11:53:43 +00:00
Aleksandr Chebotov 5f0efafcaa Add Microsoft.VisualStudio.Component.VC.Runtimes.ARM.Spectre (#5559) 2022-05-17 14:39:04 +03:00
Mikhail Koliada 260acc1b51 [macOS] Add Xamarin.Android 12.1 & bump bundle to 6.12.16 (#5548) 2022-05-16 22:50:16 +03:00
Dusko Dobranic bc7bb8bf96 [Ubuntu] Fix cargo outdated version in report (#5550) 2022-05-16 20:41:45 +03:00
Aleksandr Chebotov 17d10f6889 Add amazon-ecr-credential-helper (#5544) 2022-05-16 18:49:51 +03:00
Mikhail Timofeev 888d89126b Add MFC ARM Spectre components (#5536) 2022-05-13 23:37:07 +04:00
Mikhail Timofeev 16fb116cf0 Add Xcode 13.4 to macOS-12 image (#5534) 2022-05-13 18:55:13 +03:00
github-actions[bot] 6c66ae2ee4 Updating readme file for ubuntu20 version 20220508.1 (#5503)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-13 06:31:50 +00:00
github-actions[bot] 511d9fa7ba Updating readme file for win19 version 20220511.2 (#5528)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-13 04:38:25 +00:00
github-actions[bot] 78d8bca4d3 Updating readme file for win22 version 20220511.2 (#5526)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-12 15:42:00 +00:00
github-actions[bot] bf517ce489 Updating readme file for macOS-10.15 version 20220508.1 (#5508)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-12 14:13:55 +00:00
github-actions[bot] 70118fee99 Updating readme file for macOS-11 version 20220508.1 (#5509)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-12 12:29:05 +00:00
alex-3sr 66359f61ec Add new feature for permit azure tags (#5467) 2022-05-12 13:49:15 +03:00
github-actions[bot] 453dccc462 Updating readme file for macOS-12 version 20220508.1 (#5505)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-12 10:37:36 +00:00
Mikhail Koliada 632693ff4a [macOS] set Xcode-13.3.1 as default (#5523) 2022-05-12 11:55:22 +03:00
Rob Herley 1bd639f31d add ecdsa & ed25519 gh host keys (#5520) 2022-05-12 11:53:25 +03:00
github-actions[bot] 7b9a92f719 Updating readme file for ubuntu18 version 20220511.2 (#5524)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-12 08:19:40 +00:00
Ross Smith II 459f6845b1 Fix: typo in create-image-and-azure-resources.md (#5527) 2022-05-12 10:29:08 +03:00
Alexis Saettler 0ca5e834c0 Refactor Get-DotnetFrameworkTools and allow multiple SDKs installation (#5464) 2022-05-11 18:59:46 +03:00
AlexanderGitin 63c06b0c58 [MacOS] Add safe directory setting to git config (#5452) 2022-05-11 18:55:42 +03:00
Mikhail Koliada 0576062396 [Ubuntu] Migrate 22.04 from json to hcl (#5517) 2022-05-11 16:53:55 +03:00
Aleksandr Chebotov f2c7e4b929 Cleanup AD principal resources (#5481) 2022-05-10 11:26:57 +03:00
Aleksandr Chebotov 3caf4a3e5c [Windows] Add docker-compose v2 (#5504) 2022-05-10 11:23:19 +03:00
Aleksandr Chebotov 75a62205e9 Update cobertura link (#5502) 2022-05-09 13:43:19 +03:00
AlexanderGitin 54dc44b7a2 [macOS] Fix GHCup version output (#5455)
* [macOS] Fix GHCup version output

* Remove 'v' in GHCup version

* Revert GHCup version
2022-05-08 08:32:24 +02:00
Aleksandr Chebotov 5a2cb18a48 [Ubuntu] OpenSSL disable to load providers (#5496)
* [Ubuntu] OpenSSL disable to load providers

* Add link to vsts-agent issue

* Add Ubuntu22 check condition
2022-05-06 12:54:50 +02:00
Aleksandr Chebotov 8ee6ce76e4 Update libssl for Ubuntu22 (#5497) 2022-05-06 10:11:47 +02:00
Aleksandr Chebotov 17e6dc8298 [macOS] Add SwiftFormat for macOS 12 (#5495)
* Add SwiftFormat for macOS 12

* Update docs and pester test
2022-05-06 09:15:33 +02:00
github-actions[bot] df8580f2f0 Updating readme file for win19 version 20220503.1 (#5477)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-05 14:51:29 +00:00
github-actions[bot] ea50637d16 Updating readme file for win22 version 20220503.1 (#5475)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-05 14:30:24 +00:00
Dusko Dobranic ad4871d86c Fix kubectl version in software report (#5491) 2022-05-05 16:04:43 +02:00
github-actions[bot] ad831b8f26 Ubuntu 20.04 (20220503 update) (#5474)
* Updating readme file for ubuntu20 version 20220503.1

* Update Ubuntu2004-Readme.md

Updated kubectl version.

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-05 10:04:47 +00:00
Mikhail Timofeev d87f781615 Add ubuntu 22 to issue templates (#5492) 2022-05-05 10:57:34 +03:00
Mikhail Timofeev 3514f6ff69 Add readme for Ubuntu 22 image (#5488) 2022-05-05 10:37:47 +03:00
github-actions[bot] 03116894b3 Updating readme file for macOS-11 version 20220501.1 (#5471)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-05 02:38:19 +00:00
Mikhail Koliada ef69c49622 [Ubuntu] Add Ruby 3.1 to 22.04 toolcache (#5486) 2022-05-04 22:07:06 +03:00
Dusko Dobranic b86d5523dd [Ubuntu] Fix kubectl version report (#5479) 2022-05-04 18:09:51 +03:00
Aleksandr Chebotov ba6c9512a3 [CI] Set TLS12 (#5482) 2022-05-04 17:30:11 +03:00
Mikhail Koliada c4f55aa749 [Ubuntu] Add node toolcache to 22.04 (#5480) 2022-05-04 16:26:55 +03:00
Mikhail Koliada 97fd5e03b4 [Ubuntu] Add python toolcache to 22.04 (#5478) 2022-05-04 14:54:56 +03:00
github-actions[bot] 30007c5703 Updating readme file for macOS-10.15 version 20220501.1 (#5466)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-04 09:19:56 +00:00
Aleksandr Chebotov a27099b057 Add Ubuntu2204 ImageType (#5476)
* Add Ubuntu2204 ImageType

* Update json path
2022-05-04 12:19:49 +03:00
github-actions[bot] f1b7652904 Ubuntu 18.04 (20220503 update) (#5473)
* Updating readme file for ubuntu18 version 20220503.1

* Update Ubuntu1804-Readme.md

Fix kubectl version.

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
2022-05-04 10:33:53 +02:00
github-actions[bot] db20cb8390 Updating readme file for macOS-12 version 20220429.1 (#5465)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-05-04 07:36:57 +00:00
Mikhail Timofeev ed9d42f033 Add ImageRepositoryPath env variable for Ubuntu 22 (#5462)
* Use image_repository_path variable

* Add ImageRepositoryPath to build image script
2022-05-02 17:51:16 +03:00
Zoran Bjelica 8573385d4c [MacOS] Add ImageMagick (#5445) 2022-05-02 12:05:31 +03:00
Aleksandr Chebotov 9d80842cc3 [Ubuntu] Add Ubuntu Server 22.04 LTS template (#5454) 2022-05-02 11:46:10 +03:00
github-actions[bot] 623df76820 Updating readme file for ubuntu20 version 20220425.1 (#5442)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-28 19:46:00 +00:00
github-actions[bot] 3d7addb8fc Updating readme file for win22 version 20220426.1 (#5449)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-28 18:53:00 +00:00
github-actions[bot] 23358eeb17 Updating readme file for ubuntu18 version 20220426.1 (#5447)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-28 09:03:25 +00:00
Mikhail Koliada cd32655cd2 LICENSE: update year (#5451) 2022-04-27 17:12:04 +03:00
Mikhail Koliada b2b196182c Add README redirect to macOS 12 badge (#5450) 2022-04-27 17:01:45 +03:00
github-actions[bot] 95b5b968a6 Updating readme file for macOS-11 version 20220424.1 (#5441)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-27 13:01:41 +00:00
github-actions[bot] 546688dac4 Updating readme file for macOS-10.15 version 20220424.1 (#5440)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-27 11:16:53 +00:00
github-actions[bot] 99997cd292 Updating readme file for macOS-12 version 20220425.3 (#5443)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-04-27 09:55:11 +00:00
Steve-Glass c2f87e9170 Update table with macOS 12 Public Beta info (#5438)
* Update table with macOS 12 Public Beta info

* Add link to the badge

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-04-26 20:49:54 +03:00
Mikhail Timofeev 94788ae5ea Change pattern for Rscript output (#5437) 2022-04-26 15:26:51 +03:00
Mikhail Timofeev d6ddbcd278 Install Xcodeclt & Homebrew first (#5430) 2022-04-25 22:09:04 +03:00
github-actions[bot] 7f12aaf402 Updating readme file for macOS-11 version 20220419.3 (#5422)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-23 20:29:37 +00:00
github-actions[bot] 6b8f86f1de Updating readme file for macOS-10.15 version 20220419.2 (#5423)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-22 05:04:58 +00:00
github-actions[bot] b40f9b9685 Updating readme file for macOS-12 version 20220419.1 (#5421)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-21 18:33:57 +00:00
Mikhail Timofeev 1e6e5cf82e [Ubuntu] Add safe directory setting to git config (#5420)
* Add safe directory setting to git config

* Change git config file to /etc/gitconfig
2022-04-21 01:15:17 +03:00
Aleksandr Chebotov 961aac86a3 [macOS] enable automationmode without authentication (#5417) 2022-04-20 18:25:58 +03:00
Mikhail Timofeev e1b218a38a [Windows] Add retries to Get-VsixExtenstionFromMarketplace function (#5418)
* Add retries to Get-VsixExtenstionFromMarketplace

* Use Invoke-SBWithRetry function
2022-04-20 15:23:32 +03:00
Mikhail Timofeev 503b916ab7 Install git 2.35.1 for windows (#5414) 2022-04-19 21:59:08 +03:00
Zoran Bjelica 4e34a25806 [Ubuntu] Add AzModule 7.3.2 (#5405) 2022-04-19 21:49:37 +03:00
Aleksandr Chebotov a7e8bf34bc [macOS] Install git 2.35.1 for macOS (#5415) 2022-04-19 14:40:06 +03:00
Igor Boskovic 6645a9fa93 [macOS] Software Updates 2022 Week 16 (#5406) 2022-04-19 13:15:12 +03:00
Davide Maccarrone 9364605355 [Ubuntu] Pull previous version of Chromium if revision is 4 digits long (#5407)
* pull previous version of chromium if revision is 4 digits long

* add example revisions that break build

* use json instead of csv when retrieving previous versions

* grab revision, not version
2022-04-19 10:04:36 +03:00
Aleksandr Chebotov ff63cfd072 Create codeql workflow (#5411) 2022-04-18 13:07:09 +03:00
github-actions[bot] e6517681d6 Updating readme file for macOS-11 version 20220410.1 (#5382)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-14 20:55:48 +00:00
github-actions[bot] d8f7b14d80 Updating readme file for win19 version 20220410.1 (#5379)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-14 15:34:17 +00:00
github-actions[bot] 631fc5df2f Updating readme file for ubuntu20 version 20220410.2 (#5388)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-14 14:47:51 +00:00
github-actions[bot] 2154ca5dea Updating readme file for win22 version 20220410.1 (#5378)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-14 14:20:03 +00:00
github-actions[bot] a5e931f672 Updating readme file for ubuntu18 version 20220410.2 (#5389)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-14 12:16:16 +00:00
Aleksandr Chebotov be94fa2215 [macOS] Install Az module latest version (#5401) 2022-04-14 10:02:56 +03:00
github-actions[bot] ce72be82fb Updating readme file for macOS-10.15 version 20220408.1 (#5380)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-13 19:33:02 +00:00
github-actions[bot] 4549caa570 Updating readme file for macOS-12 version 20220412.1 (#5397)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-13 19:19:32 +00:00
Zoran Bjelica 1da2217ce8 [MacOS] Add Ruby 3.1 to 11/12 (#5395) 2022-04-13 19:37:54 +03:00
Zoran Bjelica 8a42776d3f [Windows] Add Ruby 3.1 to Windows 2019/2022 (#5392)
* [Windows] Add Microsoft Reporting Services Projects support

* [Windows] Add Ruby 3.1 to Windows 2019/2022
2022-04-13 15:48:06 +03:00
Aleksandr Chebotov 01f34021dc [Ubuntu] Remove hard-coded composer version (#5399) 2022-04-13 13:04:04 +03:00
Teemu Tapanila 5da7f5bd60 Limit storageaccount name length to 24 characters (#5396)
* Limit storageaccount name length to 24 characters

* Check if the length of storageAccountName is more than 24
2022-04-13 11:57:22 +03:00
Aleksandr Chebotov 4f62f8e999 Fix missing then (#5400) 2022-04-13 12:05:32 +04:00
Mikhail Koliada 11d669e34b [Ubuntu] remove php 7.1 from Bionic Beaver (#5390) 2022-04-12 21:29:43 +03:00
Pat Myron a388002a57 toolcache ruby 3.1 (#5375) 2022-04-12 18:59:55 +03:00
Aleksandr Chebotov f5ca411fa7 [Ubuntu] Use OpenSSL package version in output (#5384) 2022-04-12 11:03:33 +03:00
Mikhail Timofeev 1ce167f82d Add Xcode 13.3.1 (#5387) 2022-04-11 22:46:50 +03:00
Dusko Dobranic 06446ddb68 Update default Go version to 1.16 or higher (#5336) 2022-04-08 19:03:25 +03:00
github-actions[bot] f9eb5d95a5 Updating readme file for macOS-11 version 20220402.1 (#5337)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-08 12:10:54 +00:00
Aleksandr Chebotov b13a40744d [Windows] Update Az module to 7.3.2 version (#5346) 2022-04-08 10:01:34 +03:00
github-actions[bot] fe1ff6476c Updating readme file for ubuntu20 version 20220405.4 (#5355)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-07 19:44:28 +00:00
github-actions[bot] 417ce97d05 Updating readme file for macOS-12 version 20220403.1 (#5338)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-07 19:01:51 +00:00
github-actions[bot] aa79acfab2 Updating readme file for macOS-10.15 version 20220403.1 (#5339)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-07 18:59:34 +00:00
github-actions[bot] 4d0aaf97de Updating readme file for ubuntu18 version 20220405.3 (#5356)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-07 14:43:52 +00:00
Aleksandr Chebotov 5e72f7eb77 [Ubuntu] Add automake autoconf libtool output version (#5362) 2022-04-07 13:49:19 +03:00
Aleksandr Chebotov e822ae7acb [Windows] Add V142 ATL/MFC Component (#5358) 2022-04-07 09:27:58 +03:00
github-actions[bot] 702823499e Updating readme file for win19 version 20220330.1 (#5324)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-06 15:38:23 +00:00
github-actions[bot] c382ff1308 Updating readme file for win22 version 20220330.1 (#5325)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-06 14:51:42 +00:00
github-actions[bot] 1ede8085f5 Updating readme file for ubuntu20 version 20220330.0 (#5314)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-04 09:43:46 +00:00
github-actions[bot] 8863b25212 Updating readme file for ubuntu18 version 20220330.0 (#5315)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-04-04 09:33:51 +00:00
Martin G 2f36af5003 Fixed Composer "empty" version (#5334)
Although https://github.com/martingem/virtual-environments/commit/137c29497d4b02e00551c45bc94e469bc90f12c0 fixed the previous issue, they've done something: https://github.com/composer/composer/commit/03b7882ac231d19e9373ed33a8e71d7bb5b280c1
Returns "Composer 2.3.3" as expected.
2022-04-04 12:29:17 +03:00
Aleksandr Chebotov 710d5de922 [Ubuntu] Fix composer version (#5335) 2022-04-04 12:26:27 +03:00
Mikhail Timofeev 062b07565e Add macOS-12, remove win-16 in the issue templates (#5329) 2022-04-01 11:19:04 +03:00
Aleksandr Chebotov f052b4c10f [Ubuntu] Tight composer version to 2.2.9 for Ubuntu Server 18 (#5321)
* [Ubuntu] Tight composer verstion to 2.2.9 for Ubuntu Server 18

* Remove extra line

* remove double quotes
2022-04-01 11:18:38 +03:00
Aleksandr Chebotov a5d2e20fbc [macOS] Software Updates 2022 Week 14 (#5327) 2022-04-01 11:06:09 +03:00
Mikhail Timofeev d3de894568 Install latest 8.0.* version for windows 2022 (#5318) 2022-03-31 16:51:18 +03:00
Dusko Dobranic 52f93c6183 Remove Ubuntu20 mysql workaround (#5306)
* Remove Ubuntu20 mysql workaround

* Removing unneded init script and related test
2022-03-31 08:11:08 +02:00
Aleksandr Chebotov 137c29497d [Windows] Fix composer output version (#5313) 2022-03-30 21:28:46 +03:00
Mikhail Timofeev 0193114231 Change windows-latest agentspec in the Readme (#5312) 2022-03-30 17:22:24 +03:00
Aleksandr Chebotov 69e130c704 [Windows] Add pip.exe alias if missing (#5308) 2022-03-30 17:03:23 +03:00
Edoardo Pirovano e7a6a9a375 Use v2 branch to get CodeQL bundle (#5307) 2022-03-30 15:29:42 +03:00
Aleksandr Chebotov 63cd495e98 [macOS] fix kcpassword issue for passwords exactly 11 bytes long (#5305) 2022-03-30 14:04:17 +04:00
github-actions[bot] e4da6b3499 Updating readme file for macOS-11 version 20220322.1 (#5269)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-30 08:37:50 +00:00
Aleksandr Chebotov d1a2a0f134 [macOS] Update dotnet-install.sh download link (#5302)
* [macOS] Update dotnet-install.sh download link

* remove space in url
2022-03-30 11:29:25 +03:00
github-actions[bot] b1fae5fe50 Updating readme file for macOS-12 version 20220323.2 (#5276)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-29 12:49:02 +00:00
Aleksandr Chebotov 40f823846d Fix setAutoLogin.sh script (#5298) 2022-03-29 10:31:12 +03:00
github-actions[bot] 0e61e0bbc0 Updating readme file for win19 version 20220316.1 (#5246)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-28 22:46:09 +00:00
github-actions[bot] 8d2a20ab9b Updating readme file for ubuntu18 version 20220316.1 (#5248)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-28 16:10:17 +00:00
github-actions[bot] 0d6b2761a2 Updating readme file for win22 version 20220316.1 (#5249)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-28 14:50:44 +00:00
Mikhail Timofeev bdd8f81329 Install llvm version correctly (#5288)
* Install llvm version correctly

* Move llvm installation to script for win22
2022-03-26 22:24:26 +03:00
ddobranic 7fc477ed20 Add go 1.18 to MacOS (#5281) 2022-03-26 16:19:37 +01:00
giacomofurlan 4a39d1de00 Update Go to version 1.18.* (#5261)
* changed go default version to v1.16

* removed mac changes

* added go 1.18 and move default version to 1.17

* fixed default version in readme

* update ubuntu2004 readme to golang 1.17.8

* removed changes on readme and moved default version back to 1.15
2022-03-25 14:58:49 +03:00
github-actions[bot] fcb51fbe6d Updating readme file for macOS-10.15 version 20220322.1 (#5273)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-25 07:55:11 +00:00
Andre Hofmeister 113127583a [Windows] CPack command alias is not part of Choco anymore (#5278) 2022-03-24 21:09:18 +03:00
Aleksandr Chebotov 9e380e00a9 Add Microsoft.Graph module (#5277) 2022-03-24 14:24:20 +03:00
Mikhail Timofeev 0448e95fef Fix issues with release version and apply pattern (#5265) 2022-03-24 11:44:59 +03:00
Mikhail Koliada c0e7d2e45d [Windows] use latest version of alyuin-cli from CDN (#5271) 2022-03-23 23:34:40 +03:00
Igor Boskovic 837669d1ac [Ubuntu] Fix issues with aliyun-cli URL #3468 (#5272) 2022-03-23 23:16:32 +03:00
Maxim Lobanov c117abf0ab Add docs for macOS 12 preview (#5270) 2022-03-23 14:17:31 +03:00
Igor Boskovic f439d173c2 [MacOS] Add YQ tool to macOS images(#5144) (#5173)
* Update toolset-10.15.json

* Update toolset-11.json

* Added Pester test and documentation update for YQ tool.

* Change YQ version to full description with URL.

* Add YQ to MacOS 12
2022-03-23 13:20:36 +03:00
github-actions[bot] af8332e66d Updating readme file for win16 version 20220306.1 (#5204)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-21 21:03:22 +00:00
Andre Hofmeister 87fa95250b [Windows] Use Chrome standalone installer (#5203) (#5252) 2022-03-21 20:51:07 +03:00
Igor Boskovic 9042e01fb9 Update toolset-2022.json (#5171) 2022-03-21 20:21:32 +03:00
Alejandro Pauly ef96ff8f47 Merge pull request #5228 from clearbank/maven_385
maven 3.8.5
2022-03-16 13:00:45 -04:00
Maxim Lobanov 00131be336 Make kcpassword works with Python 3 (#5234) 2022-03-16 11:23:28 +01:00
github-actions[bot] 826e19618f Updating readme file for macOS-11 version 20220307.1 (#5200)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-15 11:24:38 +00:00
github-actions[bot] 8c9430638e Updating readme file for macOS-10.15 version 20220307.1 (#5201)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-15 00:36:04 +00:00
Henry Buckle fdd56cacb3 maven 3.8.5 2022-03-14 09:11:12 +00:00
Matthew Rosenbaum 19aa28b499 Merge pull request #5223 from actions/revert-ubuntu20.04-release-notes
Revert "Updating readme file for ubuntu20 version 20220306.1"
2022-03-11 14:12:55 -08:00
Matthew Rosenbaum d6a40056d2 Revert "Updating readme file for ubuntu20 version 20220306.1"
This reverts commit 12fa229b4a.
2022-03-11 21:46:12 +00:00
github-actions[bot] 0e307e3de2 Updating readme file for ubuntu18 version 20220306.1 (#5190)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-03-10 16:00:28 +00:00
Alejandro Pauly 1a01a1e7bb Merge pull request #5217 from alepauly/ale/kubFix
Fix match regex in Kubernetes tools downloads.
2022-03-10 09:39:16 -05:00
Alejandro Pauly c9f328930d Fix match regex in Kubernetes tools downloads. 2022-03-10 09:25:42 -05:00
Alejandro Pauly c8b6306344 Merge pull request #5188 from actions/releases/ubuntu20/20220306-docs
Ubuntu 20.04 (20220306 update)
2022-03-07 12:36:20 -05:00
Alejandro Pauly 548a980006 Merge pull request #5186 from actions/releases/win22/20220306-docs
Windows Server 2022 (20220306 update)
2022-03-07 12:34:42 -05:00
Alejandro Pauly 18b587baeb Merge pull request #5187 from actions/releases/win19/20220306-docs
Windows Server 2019 (20220306 update)
2022-03-07 12:33:12 -05:00
Image generation service account 12fa229b4a Updating readme file for ubuntu20 version 20220306.1 2022-03-07 16:44:49 +00:00
Image generation service account a018d0a18d Updating readme file for win19 version 20220306.1 2022-03-07 16:44:09 +00:00
Image generation service account 2a1712d0f3 Updating readme file for win22 version 20220306.1 2022-03-07 16:43:24 +00:00
Aleksandr Chebotov bbc911baca [Anka] Add setup autologin bash script (#5153) 2022-03-01 15:13:02 +03:00
Alex Gaynor 305d2ef620 [windows] When installing Rust, add the i686 target to enable building 32-bit binaries (#5116)
* [windows] When installing Rust, add the i686 target to enable building 32-bit binaries

* Move code so that rustup is on the path
2022-02-28 17:45:24 +03:00
Aleksandr Chebotov b7e6ffd8d3 [Ubuntu] Convert non valid java semver (#5131)
* Convert non valid java semver

* remove whitespace

* Update regex
2022-02-25 15:55:30 +03:00
github-actions[bot] 5b141f6a20 Updating readme file for win16 version 20220223.1 (#5130)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-25 10:16:09 +00:00
Aleksandr Chebotov 32b225ca7f Anka close Python 2.7 window (#5135) 2022-02-25 10:55:47 +03:00
Nikolay Frolov b2999beaf8 [macOS] Add PyPy 3.9 (#5132) 2022-02-25 10:51:43 +03:00
Nikolay Frolov 6f72963535 [Ubuntu] Add PyPy 3.9 (#5134) 2022-02-25 10:50:52 +03:00
Nikolay Frolov 02c5be558e [Windows] Add PyPy 3.9 (#5133) 2022-02-25 10:50:38 +03:00
github-actions[bot] b410b609eb Updating readme file for win19 version 20220223.1 (#5129)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-25 06:40:15 +00:00
Mikhail Timofeev 0ecbd128e3 Use mode:vm in sysprep to skip modules installation (#5136) 2022-02-25 00:23:26 +03:00
Steve-Glass 95a5527ae9 Update deprecation guidance (#5127)
* Update deprecation guidance

* Update docs/software-and-images-guidelines.md

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-02-24 23:36:50 +03:00
Aleksandr Chebotov c2797f37cd [macOS] Migrating python 2 scripts to python 3 (#5115) 2022-02-24 20:05:24 +03:00
github-actions[bot] 009a1bea38 Updating readme file for macOS-11 version 20220220.1 (#5118)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-24 16:48:38 +00:00
Nikolay Frolov de56bc6444 [Windows] Update Intstall Edge logic (#5106) 2022-02-24 19:45:57 +03:00
github-actions[bot] 547b6890b9 Updating readme file for macOS-10.15 version 20220219.1 (#5114)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-24 16:32:49 +00:00
github-actions[bot] c0d57013e1 Updating readme file for win22 version 20220220.1 (#5113)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-22 19:48:30 +00:00
Aleksandr Chebotov 55a07214fe [Windows] Update cabal pester test (#5121)
* [Windows] Update cabal pester test

* Add CABAL_DIR test
2022-02-22 19:20:26 +03:00
github-actions[bot] bb7ee95a7b Updating readme file for ubuntu20 version 20220220.1 (#5111)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-22 08:11:34 +00:00
github-actions[bot] d20a8350a1 Updating readme file for ubuntu18 version 20220220.1 (#5112)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-02-22 07:55:49 +00:00
github-actions[bot] 60dc1b5f7a Updating readme file for ubuntu20 version 20220213.1 (#5071)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-18 09:23:18 +00:00
Maksim Shilov 4d4f454424 [All OS] Output full version of git to software report (#5097) 2022-02-18 10:23:34 +03:00
Jacob Blanco 2269ded856 FIX: Write-Host Incorrect calls to variables. (#5102) 2022-02-18 10:22:33 +03:00
github-actions[bot] 8432c6614b Updating readme file for ubuntu18 version 20220213.1 (#5072)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-17 18:43:23 +00:00
Aleksandr Chebotov 6f2c6fa6d1 [macOS] Software Updates 2022 Week 8 (#5094) 2022-02-17 16:06:29 +03:00
github-actions[bot] 0a3da31bf9 Updating readme file for macOS-10.15 version 20220213.1 (#5074)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-17 11:25:45 +00:00
github-actions[bot] 054dab12c8 Updating readme file for macOS-11 version 20220212.1 (#5075)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-17 11:21:45 +00:00
igorboskovic3 bf9a61a3c2 Remove .NET 2.1.x from images (#5087)
Co-authored-by: Igor Boskovic <igor.boskovic3@outlook.com>
2022-02-17 11:42:56 +03:00
igorboskovic3 c5f3a44d55 Remove .NET 2.1.x from image (#5086)
Co-authored-by: Igor Boskovic <igor.boskovic3@outlook.com>
2022-02-17 11:42:43 +03:00
Joshua Miner c344d3b25a add AWSPowershell module (#5091)
* add AWSPowershell module

* remove readme changes because they are auto genera

Co-authored-by: Joshua Miner <josh.miner@teleopti.com>
2022-02-17 11:41:07 +03:00
Aleksandr Chebotov cb5ab38b09 Run osascript with retry (#5090) 2022-02-17 11:40:06 +03:00
Mikhail Timofeev cc2a6e1158 Skip preview android sdk platforms installation (#5089) 2022-02-16 22:23:56 +03:00
Mikhail Timofeev 000b805803 Add exit 1 to each error case (#5092) 2022-02-16 19:56:48 +03:00
igorboskovic3 5e8049b8dc Remove .NET 2.1.x from images (#5080)
Co-authored-by: Igor Boskovic <igor.boskovic3@outlook.com>
2022-02-16 18:59:56 +03:00
Kévin Dunglas db5ec5cf33 feat: explain how to start PostgreSQL (#4909) 2022-02-16 10:55:13 +03:00
github-actions[bot] 182b14b8ec Updating readme file for win22 version 20220207.1 (#5050)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-16 06:43:28 +00:00
Aleksandr Chebotov 7f1bc9ed1e Set condition to install 98.0.1108.50 instead of 98.0.1108.51 (#5070) 2022-02-14 12:07:00 +03:00
Aleksandr Chebotov 6d6a64bbbe Anka disable keyboard window (#5062) 2022-02-11 19:23:37 +03:00
Aleksandr Chebotov cd64c6838e Install Azure DevOps extension for AZ CLI (#5057) 2022-02-11 12:53:36 +03:00
Aleksandr Chebotov 8dfa279755 Add tccdb permissions for Anka (#5061) 2022-02-11 11:49:12 +03:00
Rob Mensching 63f134ecf5 [Windows] Add ARM/ARM64 libraries to windows-2022 (#5056) (#5058) 2022-02-10 19:26:58 +03:00
github-actions[bot] 62363d8021 Updating readme file for macOS-10.15 version 20220207.1 (#5042)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-10 16:07:18 +00:00
github-actions[bot] 3911115764 Updating readme file for macOS-11 version 20220207.1 (#5043)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-10 16:06:57 +00:00
Aleksandr Chebotov a31ed06b10 [macOS] Add test to check opened windows (#5052)
* Add test to check opened windows

* Move check before xcode

* Move check after homebrew

* Exclude NotificationCenter

* Update pester test
2022-02-10 18:10:43 +03:00
github-actions[bot] 84450e8a9d Updating readme file for ubuntu20 version 20220207.1 (#5040)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-10 12:39:17 +00:00
github-actions[bot] 6fd48d0a3a Updating readme file for ubuntu18 version 20220207.1 (#5041)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-10 08:37:35 +00:00
Dibir Magomedsaygitov 52011e5c44 update get_github_package_download_url helper (#5051) 2022-02-09 15:52:28 +03:00
Aleksandr Chebotov a9fba6b110 [macOS] Add DeveloperIDG2CA.cer certificate (#5044)
* Add DeveloperIDG2CA.cer certificate

* Update certificate test
2022-02-09 10:34:31 +03:00
Dibir Magomedsaygitov 404da76e17 [Ubuntu] Implement helper to get GitHub package download URL (#4947) 2022-02-08 19:41:23 +03:00
Aleksandr Chebotov cb8931646f [Windows] Configure Windows settings,disable services and scheduled tasks (#5017)
* Configure Windows settings,disable services and scheduled tasks

* some settings are not available on Win16

* Add import New-ItemPath function

* Suppress output

* Disable Chrome and Edge tasks
2022-02-08 17:09:32 +03:00
Nikolay Frolov f160c496ff [Windows] Add Windows10SDK.17763 to Win22 (#4980) 2022-02-07 20:53:07 +03:00
Dibir Magomedsaygitov f747f0983b [macOS] Implement helper to get GitHub package download URL (#4923) 2022-02-07 17:19:09 +03:00
Aleksandr Chebotov 5217af8068 Add GraalVM into Anka template (#5035) 2022-02-07 17:04:11 +03:00
Maxim Lobanov 9cd0d1ab64 [macOS] Update TCC.db to bypass Microsoft Defender installation (#5018)
* Approve Microsoft Defender installation

* Add comment
2022-02-07 13:44:34 +01:00
Mikhail Timofeev bb66e542a3 Make auth optional for nvm and ruby scripts (#5030) 2022-02-07 12:08:46 +03:00
Mikhail Koliada 0740ab86e6 [macOS] install tcl-tk explicitly (#5014) 2022-02-07 11:12:13 +03:00
Maksim Shilov 30ffa34849 Improve select-datastore with cluster based filtering (#5013) 2022-02-07 10:30:14 +03:00
Maksim Shilov c01e7d1ed8 [MacOS] Add R to macOS images (#4996)
* Add R to macOS images

* Remove redundant already existing functions and tests
2022-02-04 21:00:07 +03:00
Mikhail Timofeev b53758f5a5 Add UWP.VC.v142 VS22 component (#5012) 2022-02-04 10:54:06 +03:00
github-actions[bot] a765060351 Updating readme file for macOS-11 version 20220201.3 (#5002)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-04 07:50:21 +00:00
github-actions[bot] 7542155399 Updating readme file for macOS-10.15 version 20220201.2 (#5001)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-03 17:07:09 +00:00
Mikhail Timofeev a79f657a9f Add InnoSetup to windows-2022 (#5007) 2022-02-03 18:09:29 +03:00
github-actions[bot] 5cdc2e5f50 Updating readme file for ubuntu20 version 20220131.1 (#4993)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-03 14:20:13 +00:00
github-actions[bot] 9f9633ce6f Updating readme file for win22 version 20220131.1 (#4992)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-03 14:19:01 +00:00
github-actions[bot] 2ffa5631f5 Updating readme file for win19 version 20220131.1 (#4991)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-03 14:01:48 +00:00
github-actions[bot] 29907e0bf0 Updating readme file for win16 version 20220131.1 (#4990)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-03 11:08:21 +00:00
github-actions[bot] 3259f338d1 Updating readme file for ubuntu18 version 20220131.1 (#4994)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-02-03 08:36:35 +00:00
Aleksandr Chebotov 3433056f50 Add Component.MDD.Linux.GCC.arm component (#5000) 2022-02-02 18:41:02 +03:00
Aleksandr Chebotov 7dd1fab9d4 Add DslTools Component (#4988) 2022-02-02 12:16:38 +03:00
Maksim Shilov 8eabd4605b [MacOS] Add GraalVM to macOS 1015 and 11 images (#4959)
* Add GraalVM to macOS 1015 and 11 images

* Replace graalVM tests

* Resolve comments

* Fix native image install command path

* Fixing graalvm root path in tests

* Fix GRAALVM_11_ROOT path for software report

* Fix function name
2022-02-02 11:02:55 +03:00
Mikhail Timofeev aeebda1fcf Add an option to proceed to the discussions sections (#4997)
* Update bug-report.yml

* Update config.yml
2022-02-01 19:30:12 +03:00
Mikhail Timofeev 05025ab263 Add bug report label and mention discussions (#4995) 2022-02-01 16:27:06 +03:00
Mikhail Koliada 447d3b8988 [macOS] fix operands order on miniconda (#4989) 2022-02-01 11:23:03 +03:00
Mikhail Koliada b8d14c9f54 [Ubuntu] bind google-cloud-sdk version (#4984)
* [Ubuntu] bind google-cloud-sdk version

* Update google-cloud-sdk.sh
2022-01-31 20:23:56 +03:00
Nikolay Frolov 02547255ff [Ubuntu] Add .NET SDK 6.0 (#4958) 2022-01-29 19:28:21 +03:00
Mikhail Koliada e6c832339c [macOS] change miniconda directory permissions (#4963) 2022-01-29 16:21:25 +03:00
Aleksandr Chebotov 1a20af2405 Update dotnet tool path (#4961) 2022-01-29 13:00:14 +03:00
Mikhail Timofeev f09c8ab9f2 Change installation method to portable (#4967) 2022-01-28 21:08:32 +03:00
Mikhail Koliada e5d8f5af5c [macOS] upgrade xcode to 13.3_beta1 (#4969)
* [macOS] upgrade xcode to 13.3_beta1

* fix versioning
2022-01-28 16:20:44 +03:00
Aleksandr Chebotov 6865a4ccfe Update DACX 150 -> 160 path (#4966) 2022-01-28 14:18:57 +03:00
github-actions[bot] f54d2c7df5 Updating readme file for win19 version 20220123.1 (#4945)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-28 09:21:09 +00:00
github-actions[bot] 3351872cbe Updating readme file for macOS-11 version 20220124.1 (#4950)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-28 08:56:59 +00:00
github-actions[bot] 16848183dd Updating readme file for win16 version 20220123.1 (#4941)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-27 21:32:03 +00:00
github-actions[bot] f299f00c87 Updating readme file for ubuntu20 version 20220123.1 (#4940)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-27 20:31:14 +00:00
Mikhail Timofeev abc6b7b793 Revert "Hardcode swiftlint 0.46.0 (#4953)" (#4962)
This reverts commit 736f2fa165.
2022-01-27 23:13:11 +03:00
github-actions[bot] ec3c8b5326 Updating readme file for ubuntu18 version 20220123.1 (#4939)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-27 19:57:46 +00:00
Steve-Glass 5d614aa865 Update to macos-latest to run on macOS 11 (#4048)
* Update to macos-latest to run on macOS 11

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-01-27 22:00:43 +03:00
github-actions[bot] 28f8c710df Updating readme file for macOS-10.15 version 20220124.1 (#4951)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-27 17:06:43 +00:00
Mikhail Timofeev 736f2fa165 Hardcode swiftlint 0.46.0 (#4953) 2022-01-26 11:19:05 +03:00
Mikhail Koliada 4585d058c8 [macOS] create tcl/tk symlinks for cached python (#4943)
* [macOS] create tcl/tk symlinks for cached python

* add workaround notice

* move symlynks creation to commonutils
2022-01-25 20:29:59 +03:00
github-actions[bot] 129a56046f Updating readme file for ubuntu20 version 20220119.1 (#4916)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-24 07:39:52 +00:00
V-Zabayrachny df0e83c8f7 [Windows] Add WiX to VS on Windows-2022 (#4895)
* [Windows] Add wix to VS on Windows-2022

* [Windows] Move WiX in toolset on windows 16, 19
2022-01-21 18:40:37 +03:00
github-actions[bot] e2ebfcd1e9 Updating readme file for win22 version 20220116.1 (#4891)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-21 11:56:20 +00:00
Mikhail Timofeev 05fc7efd60 [Windows] Skip windows-2016 in the test (#4925) 2022-01-21 10:01:24 +03:00
V-Zabayrachny 480bba15df [Ubuntu] Remove python 3.5 (#4922) 2022-01-20 22:52:00 +03:00
V-Zabayrachny 42597cc6c5 [Windows] Remove python 3.5 on Windows 16, 19 (#4921) 2022-01-20 22:51:43 +03:00
Aleksandr Chebotov 023104e407 Wait for Windows Updates (#4924) 2022-01-20 22:23:57 +03:00
github-actions[bot] 9c73205ecc Updating readme file for win16 version 20220116.1 (#4890)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-20 17:19:19 +00:00
github-actions[bot] 39fd1a04b6 Updating readme file for macOS-11 version 20220118.8 (#4907)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-20 17:18:10 +00:00
V-Zabayrachny 3a86950eb0 [MacOS] Remove python 3.5 on MacOS 10.15 (#4919) 2022-01-20 19:39:19 +03:00
github-actions[bot] 825eebf51d Updating readme file for ubuntu18 version 20220116.1 (#4888)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-20 15:45:01 +00:00
Maksim Shilov afc8bd66cc [Windows] Add SQL OLEDB Driver to win19 and win22 (#4893)
* Add SQL OLEDB Driver to win19 and win22

* Update installation, improve install-binary and resolve comments

* Slight improvement of the installation. Fixing argument list for the WebPI

* Fix argument list for AzureCLI

* Fix software report
2022-01-20 15:59:37 +03:00
github-actions[bot] 6af7ac92b6 Updating readme file for win19 version 20220116.1 (#4892)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-20 12:26:52 +00:00
Mikhail Timofeev cdd8150e00 [macOS] Allow using GitHub PAT to enlarge api requests limit (#4917)
* Use gh api pat

* Add gh token to 10.15

* Add github_api_pat for macos-12
2022-01-20 13:41:21 +03:00
V-Zabayrachny 73ef0e730c [MacOS] Update Xcode to 13.2.1 on macOS 11 (#4914)
* Xcode update to  13.2.1 on macOS 11

* Xcode update to 13.2.1 on macOS 12
2022-01-20 13:11:21 +03:00
github-actions[bot] c1e7f3a462 Updating readme file for macOS-10.15 version 20220118.8 (#4910)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2022-01-20 10:07:13 +00:00
Mikhail Koliada bdeb91b5d7 [Ubuntu] Switch java default back to 11 on 20.04 (#4903) 2022-01-19 22:19:01 +03:00
Aleksandr Chebotov 7ef06a9879 [Packer] Add info about build_resource_group_name option (#4900)
* Add info about build_resource_group_name option

* Update docs/create-image-and-azure-resources.md

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-01-19 10:58:23 +03:00
Mariusz Ferdyn 84c135f86f Added AAD Service Principals to the command (#4886)
* Added AAD Service Principals to the command

Added: -AzureClientId {AADApplicationID} -AzureClientSecret {AADApplicationSecret} -AzureTenantId {AADTenantID} to the command.

* Update docs/create-image-and-azure-resources.md

Agree - better.

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-01-18 18:55:31 +03:00
José Simões 9b6af5b76e Add install of dotnet tools (#4820)
* Add install of dotnet tools

- Add new section under dotnet.
- Add installer for dotnet tools.
- Add tests for dotnet tools.
- Add dotnet tools to software report.

* Fixes from code review

* Add test and version check to dotnet tool json

- Rework installer to use tool name.
- Rework test to call tool test.
- Rework software report to use tool specific command to get version.

* Fixes from code review

* Fix test for nbgv

* Fix linux installer

* Fix name for test context.

* Update images/linux/scripts/installers/dotnetcore-sdk.sh

Co-authored-by: PJ <me@panekj.dev>

* Update images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1

Co-authored-by: PJ <me@panekj.dev>

* Update images/win/scripts/Tests/DotnetSDK.Tests.ps1

Co-authored-by: PJ <me@panekj.dev>

* Aligning PS1 between win and linux

* Remove out

* Add Nuget.org as feed source for installing tool

* Fix tests

* Fix getting tool version

* Change from code review

* Update images/win/toolsets/toolset-2022.json

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

* Update images/win/toolsets/toolset-2019.json

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

* Update images/win/toolsets/toolset-2016.json

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

* Changes from code review

* Change from code revision

* Fix tests

* dotnet tool is now installed to a tool path

* Move dotnet tools install

- Need to install the dotnet tools AFTER post install steps otherwise dotnet is not in the path.

* Fxi typo in path

* Add path to software report for dotnet tools

* Remove new line (from code review)

* Add progress output message to dotnet tools install

* Change install path for tool

* New updating PATH with dotnet tools location

* Remove duplicated assigment

* Remove output message and add back Out-null

Co-authored-by: PJ <me@panekj.dev>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2022-01-18 16:31:51 +03:00
github-actions[bot] 37d8c26d31 Updating readme file for macOS-10.15 version 20220110.2 (#4859)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-14 07:49:59 +00:00
github-actions[bot] 562a5868e9 Updating readme file for macOS-11 version 20220110.2 (#4860)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-14 07:42:16 +00:00
github-actions[bot] 8e0e0d68b9 Updating readme file for win19 version 20220110.1 (#4865)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-13 15:52:06 +00:00
github-actions[bot] b8762ca568 Updating readme file for win16 version 20220110.1 (#4866)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-13 13:00:03 +00:00
github-actions[bot] 5db309d81e Updating readme file for ubuntu18 version 20220111.1 (#4862)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-13 09:40:25 +00:00
github-actions[bot] 996eae0346 Updating readme file for ubuntu20 version 20220111.1 (#4861)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2022-01-13 08:40:42 +00:00
Aleksandr Chebotov 7b9719416b [Ubuntu] Disable motd updates metadata (#4873)
* Disable motd updates metadata

* check daemon.conf config exists

* mask fwupd-refresh.timer service
2022-01-13 11:23:56 +03:00
Lucas Mior 59bc59f568 Fixing small typo (#4878) 2022-01-13 09:53:31 +03:00
Nikolay Frolov 02b0bf3e1a [Windows] Add Microsoft.VisualStudio.Component.VC.Modules.x86.x64 (#4872) 2022-01-12 22:07:09 +03:00
Nikolay Frolov a8db6be3f0 [Windows] Update Azure PowerShell to 7.1 (#4853) 2022-01-12 22:06:52 +03:00
Nikolay Frolov 44fd9ae71a [macOS] Update Azure PowerShell to 7.1 (#4854) 2022-01-12 22:06:45 +03:00
Nikolay Frolov a6856ecef3 [Ubuntu] Update Azure PowerShell to 7.1 (#4855) 2022-01-12 22:06:39 +03:00
Aleksandr Chebotov b5fd6da0f9 Add Net.Component.4.7.TargetingPack component (#4874) 2022-01-12 22:05:59 +03:00
Mikhail Koliada 1048793daa [Ubuntu] Add Eclipse Temurin (Adoptium) to Java installer (#4868) 2022-01-12 22:05:33 +03:00
Aleksandr Chebotov 9a54916b6c Pass build_id as an argument to ImageName (#4869) 2022-01-12 12:54:57 +03:00
Maksim Shilov 340f75b8f2 Add vc v141 ATL ARM/64 components (#4857) 2022-01-12 09:55:46 +03:00
Craig Morten 865d805097 [macOS] Enable voiceover applescript defaults (#4824)
* feat: enable voiceover applescript in defaults

* refactor: reword comment

* fix: grammar in VO comment
2022-01-11 13:40:14 +03:00
Mikhail Koliada 97368aa175 [Ubuntu] put snap.sh upper environment cleanup (#4847) 2022-01-09 11:40:39 +03:00
Dibir Magomedsaygitov cd453927ca downgrade rubygems version to 3.2.33 (#4815) 2022-01-06 15:50:24 +03:00
V-Zabayrachny 3c2f1c6350 [macOS] Remove macOS 10.14 related code in the VE repo (#4816)
* [MacOS] Remove code for macOS-10.14

* remove is_Less_BigSur in all script

* remove variable the IsLessThanBigSur
2021-12-30 10:36:59 +03:00
Mikhail Koliada 29dbc46881 [Ubuntu] restart snapd during images generation (#4814) 2021-12-29 13:01:38 +03:00
Aleksandr Chebotov 92eeb55189 [Ubuntu] Add verbosity during software report generation (#4811)
* Add verbosity during software report generation

* Fix Get-CpanVersion

* set default ValidateExitCode value to $true

* update java test

* use lower-case for parameters
2021-12-28 11:16:20 +03:00
Mikhail Timofeev bb56fb7ef4 Add Service Fabric SDK to windows 2022 (#4812) 2021-12-27 23:12:44 +03:00
Mikhail Timofeev 3ff9488146 [macOS] Enable voiceover if SIP is disabled (#4805)
* Enable voiceover if SIP is disabled

* Replace touch with `echo -n "a"`

The file should contain `a` symbol

Co-authored-by: Craig Morten <cmorten@users.noreply.github.com>

* Wrap sudo call into bash -c

Co-authored-by: Craig Morten <cmorten@users.noreply.github.com>
2021-12-27 18:17:25 +03:00
Mikhail Timofeev ddf7ca4328 [Windows] Add Perl to windows-2022 (#4808)
* Add Perl to windows-2022 toolset

* Add missing tests and software report for perl
2021-12-27 13:43:52 +03:00
Mikhail Timofeev fcb8a9ca81 Windows 2022 is not in a beta state anymore (#4810) 2021-12-27 11:41:47 +03:00
Aleksandr Chebotov 7518d04a3a [Windows] Stop SoftwareReport script if error (#4801)
* Stop SoftwareReport script if error

* Validate blank versions

* Fix tables parsing
2021-12-24 10:58:19 +03:00
Mikhail Timofeev d4793cf476 Add data about Ubuntu packages to software guidelines (#4802) 2021-12-23 21:53:35 +03:00
Mikhail Koliada efcb653004 [macOS] Software update week 52 (#4798) 2021-12-23 16:23:19 +03:00
github-actions[bot] 1e6b55a484 Windows Server 2022 (20211219 update) (#4773)
* Updating readme file for win22 version 20211219.1

* Update rust and rust tools versions

There is an issue with the documentation, fixed in
https://github.com/actions/virtual-environments/pull/4774

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-22 22:14:10 +00:00
github-actions[bot] 99eda5a423 Windows Server 2019 (20211219 update) (#4776)
* Updating readme file for win19 version 20211219.1

* Update rust and rust tools versions

There is an issue with the documentation, fixed in
https://github.com/actions/virtual-environments/pull/4774

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-22 20:51:08 +00:00
Mikhail Timofeev 20705eae35 Change capitalization for Readme name in CI ymls (#4796) 2021-12-22 21:24:04 +03:00
Mark Dorison 4c3e1eb41f Updated broken links to Ubuntu READMEs. (#4795) 2021-12-22 20:18:45 +03:00
github-actions[bot] 5331de8e37 Windows Server 2016 (20211219 update) (#4779)
* Updating readme file for win16 version 20211219.1

* Update rust and rust tools versions

There is an issue with the documentation, fixed in
https://github.com/actions/virtual-environments/pull/4774

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-22 14:44:04 +00:00
Nikolay Frolov 35c775a852 [Windows] Update Finalize-VM (#4791) 2021-12-22 17:42:54 +03:00
Mikhail Timofeev 986530d6bb Skip linter-check for readmes (#4794)
* Exclude readmes from the linter
* Add env variable with exclusion to the linter yml
* Rename Ubuntu readmes to correspond with the other images
* Remove trailing space in ubuntu software generator
* Rename Ubuntu1804-README.md to Ubuntu1804-Readme.md
* Rename Ubuntu2004-README.md to Ubuntu2004-Readme.md
2021-12-22 17:34:53 +03:00
github-actions[bot] f274979207 Updating readme file for ubuntu18 version 20211219.1 (#4771)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-22 09:03:14 +00:00
github-actions[bot] bcce0b93c0 Updating readme file for ubuntu20 version 20211219.1 (#4772)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-22 08:28:06 +00:00
Mikhail Koliada 5aca2192f7 [Ubuntu] get rid of homebrew post-gen script (#4634) 2021-12-22 10:41:15 +03:00
Dibir Magomedsaygitov cfacab19e6 [macOS] Rework PowerShell installation (#4778) 2021-12-22 10:38:22 +03:00
github-actions[bot] d8cbcdfd38 Updating readme file for macOS-10.15 version 20211220.1 (#4785)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-22 06:15:23 +00:00
alex-3sr 99772f4c61 Add EnableHttpsTrafficOnly for storage (#4789) 2021-12-22 09:11:44 +03:00
Mikhail Koliada 6e09f7e132 [Ubuntu] Do not use apt-fast (#4784) 2021-12-21 19:12:15 +03:00
github-actions[bot] 8ad56a1fed Updating readme file for macOS-11 version 20211219.1 (#4775)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-21 09:13:49 +00:00
Mikhail Koliada fa1beee5af [macOS] install X libraries (#4777) 2021-12-20 22:07:41 +03:00
Aleksandr Chebotov 6846f12d42 Initialize rust environment to get software report (#4774) 2021-12-20 17:25:00 +03:00
Mikhail Koliada d2c5a46fcf [Ubuntu] put snapd auto refresh on hold (#4768) 2021-12-19 17:19:29 +03:00
Mikhail Koliada 459c5d1a21 [Ubuntu] list mysql-core dependencies explicitly (#4767) 2021-12-18 20:28:48 +03:00
Mikhail Timofeev b102665470 [macOS] Add xcode 13.2.1 (#4765) 2021-12-18 20:28:32 +03:00
Mikhail Koliada ef47ec38e7 [macOS] install zlib (#4763) 2021-12-17 23:47:47 +03:00
Mikhail Timofeev 36f279b623 Cleanup /root/.cache directory (#4761) 2021-12-17 11:40:04 +03:00
Nikolay Frolov 34a2d68118 [MacOS] Software updates Week 51 (#4756) 2021-12-17 00:05:42 +03:00
Mikhail Timofeev 5d6f295a05 Remove the title and move the block about Azure (#4759) 2021-12-16 21:30:00 +03:00
V-Zabayrachny d9b2265e58 [Windows] Update npm parcel package to v2 (#4742)
* [Windows] Update npm parcel package to v2

* [Windows] Add the parcel to the software report

* [Windows] Add the parcel in tests

* [Windows] Move the function Get-ParcelVersion
2021-12-16 18:37:45 +03:00
github-actions[bot] 2d4cd7ab63 Updating readme file for ubuntu20 version 20211214.2 (#4737)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 14:35:21 +00:00
github-actions[bot] 68b46cf15f Updating readme file for win22 version 20211212.1 (#4722)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 13:19:57 +00:00
Matt Cooley 6b7e9bec50 [Windows] Add UWP VC++ ARM64 component (#4750) 2021-12-16 16:09:14 +03:00
github-actions[bot] ae91041b90 Updating readme file for win19 version 20211212.1 (#4724)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 12:57:50 +00:00
Mikhail Koliada 73d58cc851 [Ubuntu] enable -e bash mode in mysql helper (#4752) 2021-12-16 14:56:33 +03:00
github-actions[bot] a39bc87388 macOS 10.15 (20211212 update) (#4726)
* Updating readme file for macOS-10.15 version 20211212.1

* Add new lines to gcc, gfrotran, clang

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 11:08:54 +00:00
Aleksandr Chebotov 192509400a Add TagName param with default value unixtimestamp (#4753) 2021-12-16 13:55:29 +03:00
github-actions[bot] 8d70ee3468 Updating readme file for win16 version 20211212.1 (#4725)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 10:10:50 +00:00
github-actions[bot] c042ffc4d7 Updating readme file for ubuntu18 version 20211212.1 (#4730)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 09:22:19 +00:00
V-Zabayrachny 30861de4bb [Ubuntu] Update npm parcel package to v2 (#4743)
* [Ubuntu] Update npm parcel package to v2

* [Ubuntu] Add the parcel to the software report

* [Ubuntu] Move the parcel on tools to the software report
2021-12-16 12:07:15 +03:00
Andrew King ff37068951 Update Install-NSIS.ps1 (#4740)
* Update Install-NSIS.ps1

Update NSIS to 3.08

See notes in #4739

* use  in Install-NSIS.ps1, added nsis to toolset files
2021-12-16 10:57:04 +03:00
github-actions[bot] c172738867 macOS 11 (20211211 update) (#4721)
* Updating readme file for macOS-11 version 20211211.1

* Add new lines in GCC, Gfortran, Clang

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-16 07:18:31 +00:00
Mikhail Koliada 9ec86a6e3e [Ubuntu] install mysql init script for sysVinit compatibility (#4736) 2021-12-14 21:46:30 +03:00
Aleksandr Chebotov 44d41e873b [Windows] Remove RustJunction.ps1 post-generation script (#4635)
* Remove RustJunction.ps1 post-generation script
* update rust tests
2021-12-14 18:08:46 +03:00
V-Zabayrachny 573c5aa999 [Windows] Add installer projects to VS on Windows-2022 (#4715)
* [Windows] Add installer projects to VS on windows-2022

* [Windows] Improve the function Install-VsixExtension
2021-12-14 11:31:48 +03:00
Aleksandr Chebotov ea705c4d63 [Windows] Wait Containers installation feature (#4720) 2021-12-13 14:54:37 +03:00
github-actions[bot] 211e6f3c29 Updating readme file for ubuntu20 version 20211209.3 (#4708)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-13 11:16:38 +00:00
Vladimir Safonkin 9c8ba4fede Expand inner arrays in languageAndRuntimeList array (#4714) 2021-12-13 12:49:56 +03:00
github-actions[bot] c44447f874 Updating readme file for ubuntu18 version 20211209.3 (#4709)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-13 09:17:56 +00:00
Aleksandr Chebotov 38877b3256 Add NativeDesktop.Llvm.Clang component (#4717) 2021-12-13 10:52:27 +03:00
Aleksandr Chebotov 6aa5d3704e Delete image before push (#4713) 2021-12-10 13:10:45 +03:00
Marcel Gerber 9d3fcffab4 [Ubuntu] remove --unsafe-perm code for netlify-cli (#4712) 2021-12-10 12:38:30 +03:00
Julian Ospald 1fb7d122d1 Expose ghcup binary to PATH on windows (#4264)
* Expose ghcup binary to PATH on windows

The bootstrap-haskell.ps1 script uses
'[System.EnvironmentVariableTarget]::User' instead of
'[System.EnvironmentVariableTarget]::Machine', so it appears
ghcup env vars and PATH update never make it. Do these manually
for now.

* Set CABAL_DIR and make sure config is adjusted

The config adjustment usually includes adding msys2 directories,
so cabal can find `pkg-config` and libraries, e.g.:

+ C: \ghcup\msys64\mingw64\bin
+ extra-include-dirs: C:\ghcup\msys64\mingw64\include
+ extra-lib-dirs: C:\ghcup\msys64\mingw64\lib
- extra-prog-path: C:\cabal\bin
+ extra-prog-path: C:\ghcup\bin,

* Expose cabal dir to PATH as well

* Use Set-SystemVariable

* Fix tests

* Use hardcoded cabal dir

* Fix bootstrap-haskell

* Move test after installation

* Print ghcup installation message

* Don't adjust cabal.config (to include mingw paths)

This may break setups.
2021-12-10 11:23:44 +03:00
Mikhail Koliada fea7c2e6d1 [Ubuntu] fix software report for mysql (#4699) 2021-12-10 10:27:18 +03:00
Cornelius Riemenschneider 9e30602178 CodeQL: Pull the bundle from codeql-action@v1 rather than main. (#4702)
As github/codeql-action by default uses the bundle from the toolcache,
make sure that that is considered stable.
2021-12-10 10:26:07 +03:00
Aleksandr Chebotov 54bf98dc42 Update the script to support MSGraph (#4701) 2021-12-10 09:56:11 +03:00
Vladimir Safonkin 5e4f5b8898 [Windows] Add grunt-cli to global npm packages on Windows 2022 (#4689) 2021-12-10 00:40:09 +03:00
github-actions[bot] 8aa18c1d57 Updating readme file for win19 version 20211207.2 (#4682)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-09 20:10:17 +00:00
github-actions[bot] f57f6aaf4a Updating readme file for win16 version 20211206.1 (#4676)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-09 17:38:17 +00:00
Maksim Shilov 5f872f77d6 Sorting releases and taking latest (#4703) 2021-12-09 18:39:44 +03:00
github-actions[bot] 8a7123162f macOS 10.15 (20211207 update) (#4692)
* Updating readme file for macOS-10.15 version 20211207.1

* Add new lines to gcc, clang, gfrotran

* Move clang line

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-09 14:10:17 +00:00
Mikhail Timofeev ee0629bfc3 Revert "Updating readme file for ubuntu18 version 20211208.3 (#4697)" (#4704)
This reverts commit 2330c91d00.
2021-12-09 16:56:27 +03:00
github-actions[bot] 2330c91d00 Updating readme file for ubuntu18 version 20211208.3 (#4697)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-09 13:26:34 +00:00
github-actions[bot] 2e01f1d85c Updating readme file for win22 version 20211206.1 (#4673)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-09 11:37:28 +00:00
github-actions[bot] 82bb1e015f macOS 11 (20211207 update) (#4686)
* Updating readme file for macOS-11 version 20211207.1

* Fix markdown for gcc and gfortran

* Remove extra whitespaces

* Fix clang section

* Rearrange clang lines

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-09 08:40:23 +00:00
Mikhail Koliada 4d7a8a0e35 [Ubuntu] do not install mysql 8.x on 18.04 (#4685) 2021-12-08 16:02:06 +03:00
Nikolay Frolov 07a22999fe [Windows] Update Kotlin install (#4645) 2021-12-08 10:39:42 +03:00
Shivam Mathur 7450e2dabe [Windows] upgrade php version to 8.1 (#4680) 2021-12-08 10:38:39 +03:00
Maksim Shilov 89e19af4c9 [MacOS] Add GCC and remove Nomad from MacOS 12 image (#4667)
* Add gcc 11 to macos12

* Remove nomad-shenzhen cli from macos12
2021-12-08 00:35:25 +03:00
Shivam Mathur 05b9e3e79c [Ubuntu] upgrade php version to 8.1 (#4681) 2021-12-07 23:39:17 +03:00
Mikhail Koliada 77f9a979a8 [Ubuntu] Downgrade mysql to 8.0.26 (#4674) 2021-12-07 23:38:14 +03:00
Aleksandr Chebotov 4a8cc99a63 [macos] pester: Replace service status stopped to none (#4677)
* pester: Replace service status stopped to none

* validate stopped or none
2021-12-07 20:05:02 +03:00
Aleksandr Chebotov 57cf70f791 [Anka] Clear LastRecommendedMajorOSBundleIdentifier property (#4675)
* clear LastRecommendedMajorOSBundleIdentifier property

* remove property
2021-12-07 14:30:22 +03:00
Reupen Shah 4828764ba0 [Windows] Add Llvm.Clang component to VS 2022 (#4670) 2021-12-07 13:58:30 +03:00
Aleksandr Chebotov cb6dd7c0e3 Add pause after installation windows features (#4668) 2021-12-06 22:02:12 +03:00
Nikolay Frolov 050efaf52a [Windows] Improve MySQL install (#4646) 2021-12-03 19:49:55 +03:00
V-Zabayrachny d12aeab69c [Windows] Fix markdown in the software report (#4587) 2021-12-03 00:33:38 +03:00
Maksim Shilov ca8169d472 [MacOS] Add software to MacOS 12 image was not available during the Monterey beta stage. (#4644) 2021-12-02 18:35:56 +03:00
github-actions[bot] ddaeaaa8fb Updating readme file for win22 version 20211130.3 (#4642)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-02 13:13:24 +00:00
github-actions[bot] 4638404b13 Updating readme file for macOS-10.15 version 20211126.1 (#4623)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-02 11:03:15 +00:00
github-actions[bot] 23e75abf72 Updating readme file for macOS-11 version 20211127.1 (#4622)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-02 09:14:12 +00:00
Aleksandr Chebotov c50afe27cd [Windows] Add pause after Windows Update (#4641) 2021-12-02 10:56:43 +03:00
github-actions[bot] d0f20ddfa3 Updating readme file for ubuntu20 version 20211129.1 (#4625)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-02 06:53:16 +00:00
github-actions[bot] 91d17b9150 Updating readme file for ubuntu18 version 20211129.1 (#4626)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-02 06:51:13 +00:00
github-actions[bot] 9c7f92e4c3 Updating readme file for win16 version 20211229.2 (#4637)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-01 13:07:11 +00:00
github-actions[bot] 92269a3a22 Updating readme file for win19 version 20211229.2 (#4638)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-12-01 13:01:53 +00:00
Sergey Dolin 6f662479c8 [macOS] Rebuilding Launch Services database (#4588) 2021-12-01 10:58:26 +03:00
Aleksandr Chebotov f4306a6c40 [Windows] zstd: Invoke Move-Item with retry (#4633) 2021-11-30 11:38:03 +03:00
Nikolay Frolov 248e6728a3 [Windows] Update MySQL version to 5.7.36 (#4632) 2021-11-29 22:09:02 +03:00
Mikhail Koliada 4e1be8de7f [macOS] Upgrade php version to 8.1 (#4631) 2021-11-29 22:05:49 +03:00
Nikolay Frolov 884d3e799d [Windows] Add WiX tool for Windows 2022 (#4624) 2021-11-29 18:54:51 +03:00
Nikolay Frolov 340b210bd1 [Windows] Add gulp-cli npm package (#4601) 2021-11-27 12:40:37 +03:00
V-Zabayrachny cb93e86daf [Ubuntu] Update the version Git-lfs (#4607) 2021-11-26 22:26:18 +03:00
Mikhail Koliada 3063eac712 Revert "Add WiX v3 to Windows 2022. (#4448)" (#4604)
This reverts commit 4672cb208d.
2021-11-26 20:37:33 +03:00
Aleksandr Chebotov 978ab79564 [Windows] Invoke Move-Item and Rename-Item with retry after Extract-7Zip (#4598) 2021-11-26 17:49:05 +03:00
Mikhail Koliada af645a7b5e [Ubuntu] get rid of post-gen rust script (#4575) 2021-11-26 12:39:13 +03:00
Mikhail Koliada 8922c7b5bf [Windows] pin mysql release version in toolset (#4590) 2021-11-26 11:52:02 +03:00
Aleksandr Chebotov acc3d7cc0d Remove Dotnet.ps1 post-generation script (#4585) 2021-11-26 10:41:26 +03:00
github-actions[bot] 120fc45b76 Updating readme file for win22 version 20211122.0 (#4570)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-26 00:31:07 +00:00
github-actions[bot] 7a3b442a0b Updating readme file for win16 version 20211122.1 (#4568)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-25 14:30:30 +00:00
github-actions[bot] 446bf8d222 Updating readme file for win19 version 20211122.1 (#4569)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-25 14:22:03 +00:00
Maksim Shilov 81c96d9781 [Windows] Fix Get-LatestChocoPackageVersion (#4581) 2021-11-25 14:24:27 +03:00
github-actions[bot] d7624a5675 Updating readme file for ubuntu20 version 20211122.1 (#4554)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-25 09:19:16 +00:00
github-actions[bot] 7a9ecc2877 Updating readme file for ubuntu18 version 20211122.1 (#4555)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-25 08:10:14 +00:00
V-Zabayrachny 51716d79fa [macOS] Fix markup in the software report (#4579) 2021-11-25 10:20:15 +03:00
Mikhail Koliada 4553146bc7 [macOS] set default nodeJS version to 16 (#4559) 2021-11-24 22:43:00 +03:00
Mikhail Koliada f3f76a29b0 [Windows] set default nodeJS version to 16 (#4560) 2021-11-24 22:42:52 +03:00
Mikhail Koliada a4ba8d2758 [Ubuntu] set default nodeJS version to 16 (#4561) 2021-11-24 22:42:44 +03:00
github-actions[bot] 9c07c3959a Updating readme file for macOS-10.15 version 20211120.1 (#4557)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-24 17:36:51 +00:00
github-actions[bot] aaebcb3658 Updating readme file for macOS-11 version 20211120.1 (#4558)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-24 17:36:18 +00:00
Aleksandr Chebotov 2c9f161957 Remove Choco.ps1 post-generation script (#4576) 2021-11-24 13:53:28 +03:00
Nikolay Frolov 870d8506f2 [Windows] Add Service Fabric SDK to Software Report (#4563) 2021-11-23 21:01:37 +03:00
Mikhail Koliada 0c030e3e07 Revert "[Ubuntu] install libpcre1-8-0 for PHP compat (#4551)" (#4565)
This reverts commit 81d68d49b3.
2021-11-23 12:10:09 +03:00
github-actions[bot] 741076d322 Updating readme file for win16 version 20211115.1 (#4520)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-23 06:39:18 +00:00
github-actions[bot] 1fc7895bd9 Updating readme file for win22 version 20211115.1 (#4512)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-22 17:31:27 +00:00
Ewout ter Hoeven 79dfeeba45 [Windows] Add sbt to Windows 2022 image (#4526)
* [Windows] Add sbt to Windows 2022 image

* Update SoftwareReport.Generator.ps1 to include sbt on Win22
2021-11-22 15:21:03 +03:00
Aleksandr Chebotov 0365a15eb6 Anka disable beta seed (#4564)
* Remove current beta seed program

* format unenroll output
2021-11-22 15:18:46 +03:00
Ewout ter Hoeven 04aeb7bfd4 CI: Run linter only on changes of JSON and MD files (#4527) 2021-11-22 12:36:16 +03:00
V-Zabayrachny be2dc0315b [macOS] Add PHP to the toolset (#4544) 2021-11-21 23:11:18 +03:00
Mikhail Koliada 81d68d49b3 [Ubuntu] install libpcre2-8-0 for PHP compat (#4551) 2021-11-21 19:32:23 +03:00
Mikhail Koliada 2790cecf1f [Ubuntu] Update maven to 3.8.4 (#4550) 2021-11-21 14:47:13 +03:00
Maxim Lobanov d3a5bad25f [Windows] Install Docker-wincred (#4540)
* Add Docker WinCred

* fix getting docker url

* Use Expand-Archive instead of Extract-7Zip since 7zip is not installed yet
2021-11-19 12:44:22 +01:00
Mikhail Koliada f38b217469 [macOS] week 47 software update (#4538) 2021-11-18 18:06:58 +03:00
Aleksandr Chebotov a8096c59ab softwarereport: do not use regex to get version of choco (#4536) 2021-11-18 17:52:27 +03:00
Dibir Magomedsaygitov 5ab1cb345e [macOS] Remove macOS 10.13 related code in the VE repo (#4494) 2021-11-18 17:23:05 +03:00
github-actions[bot] bebaaa653c Updating readme file for macOS-10.15 version 20211114.1 (#4511)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-18 09:32:47 +00:00
github-actions[bot] 152addc1c7 Updating readme file for ubuntu20 version 20211114.1 (#4506)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-18 09:14:43 +00:00
github-actions[bot] 0189f46a2a Updating readme file for ubuntu18 version 20211114.1 (#4505)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-18 09:10:23 +00:00
github-actions[bot] 01570219da Updating readme file for macOS-11 version 20211114.1 (#4514)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-18 08:14:14 +00:00
Aleksandr Chebotov df27520b1f [Windows] Add test to validate windows updates installation (#4489)
* Add test to validate windows updates installation

* Add function Get-WindowsUpdatesHistory
2021-11-16 17:14:17 +03:00
Maksim Shilov 1b583e05e5 [Ubuntu] Pin PostgreSQL version installed in the toolset (#4510)
* Pin PostgreSQL version installed in the toolset

* Source the helpers and resolving comments
2021-11-16 11:48:38 +03:00
Maksim Shilov 4bd3568585 [MacOS] Pin PostgreSQL version installed in the toolset (#4504) 2021-11-16 11:43:59 +03:00
Maksim Shilov ff41a760f0 [Windows] Pin PostgreSQL version installed in the toolset (#4492) 2021-11-16 11:38:03 +03:00
V-Zabayrachny d3e74a5d7d [Windows] Add PHP to the toolset (#4493) 2021-11-16 11:32:09 +03:00
Maxim Lobanov 06c90a3200 [Ubuntu] Chmod known directories (#4509)
* chmod known directories

* nit space
2021-11-15 18:35:50 +01:00
Mikhail Koliada d09b1f8f9c [Ubuntu] add maven back to toolset (#4507) 2021-11-15 14:51:38 +03:00
Mikhail Koliada fad30aa851 [Windows] move llvm to toolset (#4487) 2021-11-15 12:54:35 +03:00
Mikhail Koliada 6dc8234648 [macOS] Remove node version 10.x (#4477) 2021-11-12 21:43:33 +03:00
Mikhail Timofeev ff555147fd Add wasm.tools component to VS2022 (#4490) 2021-11-12 15:51:50 +03:00
Mikhail Timofeev c025446a95 [macOS] Pin mongodb version to 5.0 (#4484) 2021-11-12 11:00:19 +03:00
Mikhail Timofeev dec1d799e0 [Ubuntu] Pin mongodb version to 5.0 (#4483) 2021-11-12 11:00:03 +03:00
Mikhail Timofeev fa7f7eac99 [Windows] Pin mongodb to 5.0 (#4482)
* [Windows] pin mongodb to 5.0
* Change version argument to include "="
2021-11-12 10:59:53 +03:00
github-actions[bot] d6a789cbef Updating readme file for win22 version 20211109.2 (#4454)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-11 15:59:19 +00:00
Dibir Magomedsaygitov 47a60e0776 [Windows] Upgrade Selenium server version from 3 to 4 (#4473) 2021-11-11 18:21:51 +03:00
V-Zabayrachny f8c50c93b5 [Windows] Add MySQL to the toolset (#4435) 2021-11-11 17:18:39 +03:00
github-actions[bot] 60dcd87ff3 Updating readme file for win16 version 20211109.0 (#4453)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-11 13:35:22 +00:00
Mikhail Koliada bd3faa0011 [Windows] Remove node version 10.x (#4478) 2021-11-11 16:34:25 +03:00
Maksim Shilov d127e51bf4 [MacOS] Pin MongoDB to the specific version defined in the toolset (#4452)
* Define mongodb version installed in the toolset
* Searching for latest version of a tool based on a toolset version
2021-11-11 16:14:27 +03:00
Mikhail Timofeev 68e428c4d2 Perform a full clone of vcpkg instead of depth=1 (#4476) 2021-11-11 16:13:05 +03:00
Mikhail Timofeev e5e8cc59dd Add miniconda to windows 2022 image (#4467) 2021-11-11 15:27:09 +03:00
Dibir Magomedsaygitov 10ea71465c [macOS] Upgrade Selenium server version from 3 to 4 (#4474)
* upgrade selenium version from 3 to 4
* add test
2021-11-11 14:57:18 +03:00
Mikhail Koliada 5d89a3805e [Ubuntu] Remove node version 10.x (#4475) 2021-11-11 13:40:57 +03:00
Mikhail Timofeev 0ddb8a2302 [Windows] Use Get-LatestChocoPackageVersion to get nodejs version to install (#4469)
* Use Get-LatestChocoPackageVersion to get nodejs
* Fix typo in Send-RequestToChocolateyPackages
2021-11-11 13:13:07 +03:00
github-actions[bot] 08024941c3 Updating readme file for win19 version 20211110.1 (#4460)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-11 09:56:09 +00:00
Nikolay Frolov 71b8207a59 [Ubuntu] Change source of n tool to official (#4455) 2021-11-11 12:47:29 +03:00
Robert Schumacher 206a818319 Perform a full clone of vcpkg instead of depth=1 (#4272)
The vcpkg versioning feature relies on retrieving information from its git repository history. This means users need a deep clone.
2021-11-11 11:54:32 +03:00
Dibir Magomedsaygitov 63998e0de1 upgrade selenium version from 3 to 4 (#4472) 2021-11-11 11:53:00 +03:00
Mikhail Koliada 9ebc095c4a [macOS] move llvm to toolset (#4457) 2021-11-11 11:23:05 +03:00
Maksim Shilov fef060bec8 [Windows] Pin MongoDB to the specific version defined in the toolset (#4418) 2021-11-10 21:43:42 +03:00
Mikhail Timofeev 596859266e Remove node10 docker images from ubuntu toolsets (#4461) 2021-11-10 20:56:23 +03:00
Maksim Shilov 41c947a8f0 [Ubuntu] Pin MongoDB to the specific version defined in the toolset (#4447) 2021-11-10 19:30:25 +03:00
Mikhail Timofeev 44b6734000 Remove Xcode13 beta & set Xcode 13.1 as default (#4456) 2021-11-10 17:11:29 +03:00
github-actions[bot] 4f8049546e Updating readme file for ubuntu20 version 20211108.1 (#4440)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-10 12:35:07 +00:00
Bob Arnson 4672cb208d Add WiX v3 to Windows 2022. (#4448)
Move WiX to tools and stop installing WiX Votive VSIX, which isn't
needed for build.
2021-11-10 14:38:26 +03:00
github-actions[bot] 48df2547e7 Updating readme file for macOS-10.15 version 20211106.1 (#4433)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-10 11:15:49 +00:00
github-actions[bot] 80864b592c Updating readme file for ubuntu18 version 20211108.1 (#4441)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-10 10:33:07 +00:00
github-actions[bot] a672a9157e Updating readme file for macOS-11 version 20211106.1 (#4434)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-10 10:10:53 +00:00
Mikhail Timofeev a6b29e3206 Change channel from pre to release for VS22 (#4451) 2021-11-10 00:00:18 +03:00
Bob Arnson 881dbcfda3 Fix typo in helpers/GenerateResourcesAndImage.ps1. (#4449) 2021-11-09 19:31:20 +03:00
Nikolay Frolov 58ce149ebf [MacOS] Rework NodeJS install (#4380) 2021-11-09 17:49:30 +03:00
Nikolay Frolov fa41b676c7 [Win] Rework NodeJS install (#4406) 2021-11-09 17:18:30 +03:00
Mikhail Timofeev 8fd74ebe0f Revert "[macOS] install vcpkg from specific commit (#4389)" (#4439)
This reverts commit 706a7ae6d3.
2021-11-08 16:52:37 +03:00
Aleksandr Chebotov 11464d5288 Revert "[Ubuntu] build vcpkg from specific commit (#4386)" (#4438)
This reverts commit 60d2208f88.
2021-11-08 15:54:37 +03:00
Maksim Shilov 488fa42385 [Windows] Slight rework of the PyPy installation (#4392) 2021-11-08 15:05:55 +03:00
Zachary Cook c4eeb9c782 Optional passthru of AllowBlobPublicAccess (#4425) 2021-11-08 14:45:41 +03:00
Jay W 49a7578313 [ubuntu] Fix swift installation (#4429) 2021-11-07 19:07:58 +03:00
github-actions[bot] aec3886d58 Updating readme file for win16 version 20211102.4 (#4412)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-04 03:24:10 +00:00
github-actions[bot] 869b0cccd4 Updating readme file for win19 version 20211102.4 (#4413)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-04 03:22:24 +00:00
github-actions[bot] 748a4b8ede Updating readme file for win22 version 20211102.4 (#4414)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-03 20:23:12 +00:00
Dibir Magomedsaygitov 1678e31616 software updates week 55 (#4417) 2021-11-03 19:53:53 +03:00
Aleksandr Chebotov 05c460a0b6 Set Microsoft Defender Antivirus to passive mode (#4415) 2021-11-03 16:14:29 +03:00
github-actions[bot] abdba31f29 Updating readme file for ubuntu18 version 20211101.1 (#4396)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-03 12:38:19 +00:00
github-actions[bot] c48fcf4fe8 Updating readme file for macOS-11 version 20211029.3 (#4387)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-03 10:01:56 +00:00
github-actions[bot] f65a6fd6e9 Updating readme file for macOS-10.15 version 20211029.1 (#4388)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-03 09:11:06 +00:00
github-actions[bot] 0c599134ad Updating readme file for ubuntu20 version 20211101.1 (#4395)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-11-03 08:46:58 +00:00
Mikhail Timofeev 5b6883ef72 Add 32-bit version of python to win19 & win22 (#4405) 2021-11-02 22:50:27 +03:00
Maksim Shilov 0363026f15 Removing go versions less than 1.15 (#4407) 2021-11-02 22:10:01 +03:00
Maksim Shilov cd5e5fc286 Removing go versions less than 1.15 - macos (#4409) 2021-11-02 21:32:26 +03:00
V-Zabayrachny f4296db032 Fix software report for azure-cli (#4401) 2021-11-02 19:29:24 +03:00
Maksim Shilov 064daaefd9 Removing go versions less than 1.15 - linux (#4408) 2021-11-02 19:28:27 +03:00
Aleksandr Chebotov 30a08e95b2 Pin Docker EE to 20.10.7 version (#4404) 2021-11-02 17:53:34 +03:00
Maksim Shilov 0aa021402c [MacOS] Slight rework of the PyPy installation (#4394) 2021-11-02 17:26:25 +03:00
Maksim Shilov c1838780e9 [Ubuntu] Slight rework of the PyPy installation (#4381) 2021-11-02 17:26:03 +03:00
Mikhail Koliada 3230c42476 [Windows] make choco dummy call for currently installed version (#4410) 2021-11-02 17:01:28 +03:00
Aleksandr Chebotov ffc388200c Revert "Docker service does not start on Windows Server (#4397)" (#4403) 2021-11-02 13:56:54 +03:00
Aleksandr Chebotov 3a5b9591bc Docker service does not start on Windows Server (#4397) 2021-11-02 01:25:25 +03:00
Mikhail Koliada 706a7ae6d3 [macOS] install vcpkg from specific commit (#4389) 2021-11-01 18:35:29 +03:00
Mikhail Timofeev a0ac40903e Schedule macOS-12 builds (#4393) 2021-11-01 17:58:03 +03:00
Dibir Magomedsaygitov 228c4f45e7 add android-ndk-latest-home env variable on ubuntu18 (#4385) 2021-11-01 17:14:51 +03:00
Mikhail Koliada 60d2208f88 [Ubuntu] build vcpkg from specific commit (#4386) 2021-11-01 14:04:07 +03:00
Nikolay Frolov 5f33b32a1e [Linux] Rework NodeJS install (#4378) 2021-10-30 14:56:36 +03:00
Nikolay Frolov 234919982e [Windows] Rework NodeJS install (#4375) 2021-10-30 14:03:05 +03:00
Mikhail Timofeev 64b553b5d0 [macOS] Install stable Xcode clt for Monterey (#4382) 2021-10-30 13:05:59 +03:00
Dibir Magomedsaygitov ecbbec3330 [macOS] Pin Selenium to 3.141.59 version (#4359) 2021-10-30 03:27:10 +03:00
V-Zabayrachny e66f7c0790 [Ubuntu] fix software report for azure-cli (#4379) 2021-10-29 18:41:09 +03:00
Maksim Shilov 7901cb5ade [windows] Adding pypy 3.8 to toolset (#4364) 2021-10-29 18:38:49 +03:00
Maksim Shilov 41690119db [MacOS] Adding PyPy 3.8 to toolsets (#4366) 2021-10-29 18:38:12 +03:00
Mikhail Koliada 82583b9f01 [macOS] Software Updates 2021 Week 44 (#4374) 2021-10-29 18:37:20 +03:00
Dibir Magomedsaygitov 3ab5292583 move selenium version output to the browsers sector (#4377) 2021-10-29 17:26:06 +03:00
Dibir Magomedsaygitov d502c64087 [Ubuntu] Rework Selenium installation (#4308) 2021-10-29 16:55:01 +03:00
Mikhail Timofeev f5d2b977cd Add Xcode 13.2 to macOS 11 & 12 (#4363) 2021-10-29 16:45:56 +03:00
Mikhail Koliada 1457fb6402 [Ubuntu] fix apt http headers and proxy settings (#4368) 2021-10-29 11:46:56 +03:00
Maksim Shilov 029139e1b7 [Ubuntu] Adding pypy 3.8 to toolset to Ubuntu 20.04 (#4365) 2021-10-29 11:22:51 +03:00
Mikhail Timofeev 43d7228dce Add node 16 to the macOS toolcache (#4352) 2021-10-29 09:00:26 +03:00
Mikhail Timofeev b8c5b5f3f0 [macOS] Avoid installing preview android platform versions (#4372) 2021-10-29 01:16:26 +03:00
Mikhail Timofeev 2e47a52b7e [Ubuntu] Avoid installing preview android platform versions (#4371) 2021-10-29 01:15:55 +03:00
Dibir Magomedsaygitov 1b3870ab40 [Windows] Rework Selenium installation (#4309) 2021-10-28 22:17:05 +03:00
Mikhail Timofeev 7d905024ff Add node 16 to toolcache + docker images (#4353) 2021-10-27 19:23:59 +03:00
Mikhail Timofeev 733c34d93a Add node 16 to the toolcache (#4354) 2021-10-27 19:23:50 +03:00
Nikolay Frolov 4eb1b7986d Add jazzy tool to MacOS 10.14 - 12 (#4348) 2021-10-27 16:48:10 +03:00
Ralph Jansen a8f97f0023 Update module to latest version (#4349) 2021-10-27 14:45:01 +03:00
Maksim Shilov 76e359f806 Add VC.14.29.16.11 and VC.Runtimes.ARM64.Spectre to VS2022 (#4344) 2021-10-27 14:12:22 +03:00
Aleksandr Chebotov 479e40b202 Remove default values from Anka packer template (#4346) 2021-10-27 11:06:13 +03:00
Dibir Magomedsaygitov 2d46e3f4d9 [Ubuntu] Remove Ubuntu16 related code from the VE repository (#4336) 2021-10-26 15:30:59 +03:00
Aleksandr Chebotov 1f97f5de37 [Windows] Add NSIS to Windows Server 2022 (#4326) 2021-10-26 14:16:20 +03:00
Aleksandr Chebotov c353eee691 anka: replace test_vm to TemplateName (#4339) 2021-10-25 19:47:26 +03:00
Aleksandr Chebotov 77e299148d [Windows] Do not use M2_HOME env var to get mvn path (#4333)
* Do not use M2_HOME env var to get mvn path

* use Get-MachinePath to get mvn path
2021-10-25 16:30:47 +03:00
Aleksandr Chebotov 283bac3995 Fix Ruby permissions (#4322) 2021-10-22 14:24:31 +03:00
github-actions[bot] db36e4a622 Updating readme file for win16 version 20211018.0 (#4304)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-21 21:04:56 +00:00
github-actions[bot] 94c5dcadbd Updating readme file for win19 version 20211018.0 (#4306)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-21 15:23:12 +00:00
Mikhail Timofeev 479bc3f1ea Add symlink for Xcode 12.5 (#4321) 2021-10-21 17:53:30 +03:00
github-actions[bot] ec7fba496f Updating readme file for win22 version 20211018.0 (#4305)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-21 11:46:59 +00:00
github-actions[bot] ebd938338b Updating readme file for ubuntu20 version 20211017.0 (#4294)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-21 10:36:17 +00:00
github-actions[bot] 31f235d1c0 Updating readme file for ubuntu18 version 20211017.0 (#4293)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-21 10:00:52 +00:00
github-actions[bot] c9e59704eb Updating readme file for macOS-10.15 version 20211016.1 (#4295)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-21 08:03:23 +00:00
Aleksandr Chebotov 219d11cbd1 Fix PyPy permissions (#4317) 2021-10-21 09:29:45 +03:00
github-actions[bot] 335de74085 Updating readme file for macOS-11 version 20211018.1 (#4303)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-20 17:17:37 +00:00
Jeff Josephson 7512554102 fix(chromium): Fix for chromium using very low base position (#4315) 2021-10-20 16:06:42 +03:00
Mikhail Timofeev f4fbe6e36f Remove Ubuntu 16.04 from templates (#4313) 2021-10-20 00:37:29 +03:00
Aleksandr Chebotov ae930f132c win2019: enable use of test-signed code (#4296) 2021-10-19 12:58:41 +03:00
Mikhail Timofeev 8c93fad835 Add Xcode 13.1 to macOS 11 & 12 (#4301) 2021-10-19 11:22:08 +03:00
github-actions[bot] 3be6d05f1b Updating readme file for macOS-10.14 version 20211016.1 (#4290)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-18 17:13:13 +00:00
Aleksandr Chebotov fc586bcfb8 [Windows] pypy: update select condition (#4291) 2021-10-18 15:10:02 +03:00
Drew Skwiers-Koballa 0ebc9a7c16 update dacfx to 18.8 (#4266) 2021-10-17 10:40:10 +03:00
Ralph Jansen 823f2db325 Add Microsoft Graph PowerShell SDK (#4274) 2021-10-15 21:15:42 +03:00
Mikhail Timofeev 6f4486a3fe Add windows11.22000 SDK to VS2022 (#4285) 2021-10-15 18:45:50 +03:00
Aleksandr Chebotov b5373b2c29 Anka Software Updates (#4256)
* Anka Software Updates

* allow to set up video contoller
2021-10-15 14:32:29 +03:00
Dibir Magomedsaygitov 12b8bece91 [Ubuntu] Pin Selenium to 3.141.59 version (#4279) 2021-10-15 11:40:54 +03:00
Dibir Magomedsaygitov e6679307f9 [Windows] Pin Selenium to 3.141.59 version (#4276) 2021-10-15 11:36:47 +03:00
github-actions[bot] 7c1a240d2b Updating readme file for win16 version 20211011.0 (#4260)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 14:43:58 +00:00
Aleksandr Chebotov 7e90162def [Windows] revert PR3766 (#4278) 2021-10-14 16:27:30 +03:00
github-actions[bot] 5690fb5b41 Updating readme file for win19 version 20211011.0 (#4261)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 13:22:07 +00:00
Nikita Bykov 64937b9944 [macOS] Add GOROOT env variables (#4220) 2021-10-14 14:42:34 +03:00
Dibir Magomedsaygitov 3ec2449ade set xcode 13.0 as default and remove xcode 12.5 (#4258) 2021-10-14 14:37:56 +03:00
github-actions[bot] 66869761de Updating readme file for macOS-11 version 20211011.3 (#4262)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 10:48:35 +00:00
github-actions[bot] a660d07171 Updating readme file for win22 version 20211011.0 (#4259)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 10:21:43 +00:00
github-actions[bot] 15ec3a848d Updating readme file for ubuntu18 version 20211011.1 (#4250)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 09:08:19 +00:00
github-actions[bot] 5061a95c85 Updating readme file for ubuntu20 version 20211011.1 (#4251)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 08:56:52 +00:00
github-actions[bot] a527c05b15 Updating readme file for macOS-10.15 version 20211011.2 (#4263)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-14 08:45:02 +00:00
Aleksandr Chebotov b8c61a14bc utils: silently ignore records that would violate (#4267) 2021-10-13 11:37:28 +03:00
Mikhail Timofeev b9c994fd6c [macOS] Add python 3.10 to the toolcache (#4254) 2021-10-11 16:42:35 +03:00
Mikhail Timofeev 5425b6cf3d Add python 3.10 to the toolcache (#4253) 2021-10-11 16:39:02 +03:00
Mikhail Timofeev 9f43e68092 Ubuntu add python 3.10 to the toolcache (#4252) 2021-10-11 13:59:45 +03:00
Dibir Magomedsaygitov e4546d3d53 [Windows] Add missing VS2022 components (#4239) 2021-10-09 19:46:34 +03:00
Mikhail Timofeev cf96490586 [Windows] Install the latest available azure-cli msi package (#4242) 2021-10-09 16:51:33 +03:00
Dmitry Shibanov 2913bd7060 remove code duplicate for Get-PHPVersio (#4231) 2021-10-08 13:35:16 +03:00
github-actions[bot] c610e2cb29 Updating readme file for win16 version 20211003.1 (#4215)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-07 13:49:53 +00:00
github-actions[bot] 2cf3cc7bf5 Updating readme file for win19 version 20211003.2 (#4216)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-07 09:50:26 +00:00
github-actions[bot] fb6be2f59d Updating readme file for win22 version 20211003.1 (#4214)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-07 09:22:41 +00:00
github-actions[bot] 196a731891 Updating readme file for ubuntu20 version 20211004.1 (#4218)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-07 08:04:04 +00:00
github-actions[bot] 801fa37b76 Updating readme file for ubuntu18 version 20211004.1 (#4219)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-07 08:02:28 +00:00
github-actions[bot] 09f644cdcd Updating readme file for macOS-10.15 version 20211002.1 (#4212)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-07 00:02:21 +00:00
github-actions[bot] e3040198f1 Updating readme file for macOS-11 version 20211001.1 (#4224)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-06 23:58:55 +00:00
Aleksandr Chebotov 9ff76f18b9 [Windows] wdk: remove iso installer (#4232) 2021-10-06 18:47:15 +03:00
Aleksandr Chebotov 3264ac55cf vs: revert $vsInstallRoot (#4234) 2021-10-06 13:44:09 +03:00
CrazyMax 1400689a45 [Ubuntu] docker: add buildkit image (#4227)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-05 17:07:46 +03:00
josetr fdcef883c3 Initialize Visual Studio Experimental Instance on the correct user (#4223) 2021-10-05 10:29:39 +03:00
Aleksandr Chebotov c161416ac8 Revert "[Ubuntu] java: do not use the github tag release (#4182)" (#4213)
This reverts commit 1d91563139.
2021-10-04 10:19:24 +03:00
Mikhail Koliada 4119a5acc8 [MacOS] Restore openssl-1.1.x symlink (#4206) 2021-10-02 13:08:07 +03:00
github-actions[bot] cf63ebf55d Updating readme file for macOS-11 version 20210927.2 (#4159)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-01 14:34:36 +00:00
github-actions[bot] 011b3bd05d Updating readme file for macOS-10.15 version 20210927.1 (#4161)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-10-01 13:38:43 +00:00
Mikhail Timofeev b665bad57b Install compose v1 and v2 alongside (#4203) 2021-10-01 12:33:34 +03:00
Aleksandr Chebotov 9c5cf733d9 packer: add pause after windows update (#4192) 2021-09-30 20:17:00 +03:00
Aleksandr Chebotov 6f39c8aef0 [macOS] Software Updates 2021 Week 40 (#4194) 2021-09-30 20:15:27 +03:00
github-actions[bot] a908240ead Updating readme file for win19 version 20210928.2 (#4177)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-30 14:31:07 +00:00
github-actions[bot] 1885bf35ef Updating readme file for win16 version 20210927.1 (#4165)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-30 14:14:07 +00:00
github-actions[bot] 26333688ed Updating readme file for win22 version 20210927.1 (#4164)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-30 13:36:17 +00:00
github-actions[bot] ead91b9496 Updating readme file for ubuntu20 version 20210929.1 (#4185)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-30 12:32:27 +00:00
github-actions[bot] 95ee5e0c6d Updating readme file for ubuntu18 version 20210929.1 (#4184)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-30 11:23:16 +00:00
Dibir Magomedsaygitov ecfad34b30 [Ubuntu] Downgrade git-lfs version to 2.13.3 (#4168) 2021-09-29 18:37:33 +03:00
Mikhail Koliada 051de33461 [Windows] Add new component to VS22 (#4181) 2021-09-29 15:31:14 +03:00
Aleksandr Chebotov 1d91563139 [Ubuntu] java: do not use the github tag release (#4182) 2021-09-29 14:58:06 +03:00
Aleksandr Chebotov 2070ce9b07 [Ubuntu] set docker-compose v1 (#4176) 2021-09-29 10:55:11 +03:00
Aleksandr Chebotov b930b3d9d8 [Windows] win: add vcredist 2010 test (#4160) 2021-09-29 09:40:01 +03:00
Mikhail Timofeev efcefca087 Revert "[Windows OS] Include Microsoft Game Development Kit (GDK) to image" (#4162) 2021-09-28 16:03:39 +03:00
josetr 1e7e6749a5 Fix Visual Studio Experimental Instance Initialization (#4143) 2021-09-28 11:30:00 +03:00
Mikhail Koliada 9bb6c3297b [MacOS] Do not install latest OpenSSL (#4154) 2021-09-28 11:24:02 +03:00
Mikhail Koliada 3d52ccd527 [MacOS] add Temurin-Hotspot to MacOS 12 (#4155) 2021-09-27 22:57:51 +03:00
Maksim Shilov 40b0efb287 PathHelpers: Dealing with hardcoded registry paths and optimizing code (#4125) 2021-09-27 12:11:20 +03:00
Darleev 82a0226a27 [macOS 11] anka template (#3990) 2021-09-27 12:03:26 +03:00
MaksimZhukov 60685cb0e1 Revert "update software week 39 (#4135)" (#4148) 2021-09-26 18:32:42 +03:00
Dibir Magomedsaygitov 45df250473 fix aliyun-cli installation (#4147) 2021-09-25 19:10:58 +03:00
Dmitry Shibanov bf1cae6dcf Add macOS 12 image templates (#4062) 2021-09-24 13:56:16 +03:00
Mikhail Koliada ee4eda5e99 [Windows] Add Adoptium (Temurin-Hotspot) jdk 17 LTS (#4129) 2021-09-24 11:05:25 +03:00
Dibir Magomedsaygitov 93b173e9cb update software week 39 (#4135) 2021-09-23 20:33:47 +03:00
github-actions[bot] 4f4c0e4ad0 Updating readme file for macOS-10.15 version 20210919.1 (#4118)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-23 14:41:06 +00:00
Mikhail Koliada bfc5bd5cc3 [MacOS] Add Adoptium (Temurin-Hotspot) jdk 17 LTS (#4128) 2021-09-23 16:52:53 +03:00
github-actions[bot] 41c6b5d6ca Updating readme file for win16 version 20210919.1 (#4114)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-23 13:35:40 +00:00
Nikita Bykov fabf527ea8 [Windows] Add android NDK r23 (#4100) 2021-09-23 13:33:28 +03:00
Darleev 59f8fd1e62 [macOS] Anka script for clean macOS generation. (#4028) 2021-09-23 12:25:03 +03:00
github-actions[bot] 55e7e1101b Updating readme file for ubuntu18 version 20210919.1 (#4111)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-23 09:22:03 +00:00
github-actions[bot] 43a9344f7e Updating readme file for ubuntu20 version 20210919.1 (#4110)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-23 09:20:25 +00:00
github-actions[bot] 65b91cc62b Updating readme file for win19 version 20210920.1 (#4122)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-23 09:16:53 +00:00
Henti Smith c97e29c514 Add LLVM via choco (#4056) 2021-09-23 11:52:11 +03:00
Mikhail Timofeev f59c79f259 [macOS] Simpify ghcup code to use "ghcup whereis basedir" (#4127) 2021-09-22 19:36:54 +03:00
Julian Ospald 0d16297bf7 [Ubuntu] Simplify ghcup code (#4126) 2021-09-22 19:32:16 +03:00
Mikhail Koliada 75380ebaa3 [MacOS] Add Adoptium to Java installer (#4116) 2021-09-22 15:38:39 +03:00
github-actions[bot] f30be61034 Updating readme file for win22 version 20210920.1 (#4115)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-22 09:42:37 +00:00
Aleksandr Chebotov 597a99bdce az: update Az 6.1.0 -> 6.4.0 (#4124) 2021-09-22 11:22:16 +03:00
github-actions[bot] c8da80b532 Updating readme file for macOS-10.14 version 20210918.1 (#4117)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-21 09:58:20 +00:00
Nikolay Frolov 63894956a1 [MacOS] Add SBT (#4101) 2021-09-21 12:49:59 +03:00
MaksimZhukov 23a859a9bc Update Android NDK policy in the Software and image guidelines (#4119) 2021-09-21 10:17:50 +03:00
github-actions[bot] 819cd8e740 Updating readme file for macOS-11 version 20210917.1 (#4109)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-20 18:53:17 +00:00
Maksim Shilov 0bcacd4c92 Measure and output installing and downloading durations (#4104) 2021-09-20 16:20:56 +03:00
Nikita Bykov ef2db470d9 [Ubuntu] Add android NDK r23 (#4073) 2021-09-20 13:35:44 +03:00
Nikita Bykov bd5288c7c2 [macOS] Improve haskell setup (#4071)
Freeing up disk space on macOS by removing docs and profiling libs of GHC.
2021-09-20 13:13:00 +03:00
Maksim Shilov ebedfbc739 [Windows OS] Include Microsoft Game Development Kit (GDK) to image (#4097) 2021-09-20 13:06:52 +03:00
MaksimZhukov 9fe940e8a3 [macOS] Install Xcode 13 beta along with 13 stable (#4102) 2021-09-18 01:10:15 +03:00
github-actions[bot] e036d6c4f3 Updating readme file for macOS-10.15 version 20210914.1 (#4088)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 22:04:49 +00:00
github-actions[bot] 21fd64672f Updating readme file for win22 version 20210914.2 (#4092)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 18:14:17 +00:00
github-actions[bot] 243bf51a68 Updating readme file for ubuntu20 version 20210913.1 (#4068)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 17:46:29 +00:00
github-actions[bot] c630409d0e Updating readme file for ubuntu18 version 20210913.1 (#4067)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 17:06:04 +00:00
github-actions[bot] b913c5ba87 Updating readme file for win19 version 20210914.2 (#4091)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 13:22:23 +00:00
Aleksandr Chebotov 5a73d60641 [Windows] win2022: enable use of test-signed code (#4098) 2021-09-16 15:58:40 +03:00
github-actions[bot] 46cf736fbe Updating readme file for win16 version 20210914.2 (#4090)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 10:22:54 +00:00
github-actions[bot] bab55a4319 Updating readme file for macOS-11 version 20210914.4 (#4087)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-16 09:35:51 +00:00
Dibir Magomedsaygitov ecfc9c43da [Windows] Rework Kotlin installation (#4083) 2021-09-16 11:35:11 +03:00
Julian Ospald db5e4084fe Fix unnecessary /usr/bin/ghc symlink (#4095) 2021-09-16 10:06:33 +03:00
Nikolay Frolov a380bfdd24 Remove alpine:3.11 docker image from ubuntu 18.04 and 20.04 (#4093) 2021-09-15 22:57:58 +03:00
Nikita Bykov 65da2f8781 [macOS] Add Android NDK r23 (#4032) 2021-09-15 10:14:42 +03:00
Mikhail Koliada d639badcd6 [Windows] Bind openssl.light version to 1.1.1.x (#4082) 2021-09-14 21:16:32 +03:00
Nikolay Frolov 2bc9ec209c [Windows] Add VC.Tools.ARM and VC.Tools.ARM64 Visual Studio components (#4081) 2021-09-14 21:15:32 +03:00
Aleksandr Chebotov 22728c3dbd Revert "[macOS] Install cargo-audit 0.14.1 as 0.15.0 is broken (#3820)" (#4074) 2021-09-14 09:59:35 +03:00
Aleksandr Chebotov 0b3a4c4bdb Revert "[Windows] Install cargo-audit 0.14.1 as 0.15.0 is broken" (#4076) 2021-09-14 09:59:22 +03:00
mikhailshaganov 746cfcca9a [Windows] Fix ndk output version (#4058) 2021-09-13 18:42:19 +03:00
Aleksandr Chebotov a675a54759 Revert "[Ubuntu] Install cargo-audit 0.14.1 as 0.15.0 is broken (#3821)" (#4072) 2021-09-13 16:13:22 +03:00
Mikhail Timofeev eddf4a0208 Revert "[macOS] Software Updates 2021 Week 37 - Update Mono to 6.12.0.140 ver… (#4050)" (#4070) 2021-09-13 12:36:49 +03:00
Aleksandr Chebotov 5de032f30d [Windows] mysql: bump mysql version (#4059) 2021-09-11 23:47:49 +03:00
Aleksandr Chebotov 1326521a2a toolset: update to az 6.4 (#4061) 2021-09-10 22:32:42 +03:00
Julian Ospald ee69b89103 Use ghcup to install GHC on linux and remove docs and profiling libs (#4043) 2021-09-10 16:17:15 +03:00
Julian Ospald a9ac553edd Install ghcup on windows (#4044) 2021-09-10 16:16:54 +03:00
Mikhail Koliada 06eef92e40 [MacOS] fix python installation order (#4052) 2021-09-10 16:15:45 +03:00
Dibir Magomedsaygitov d022b0d6a8 [macOS] Move Ruby and Go versions to toolset (#4046) 2021-09-10 14:41:17 +03:00
Mikhail Koliada 045e638562 [Windows] Add adoptium to javatools installer (#3985) 2021-09-10 12:26:11 +03:00
github-actions[bot] d1d592805b Updating readme file for win19 version 20210907.4 (#4038)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-09 21:05:53 +00:00
github-actions[bot] a886e1c394 Updating readme file for win16 version 20210907.1 (#4039)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-09 20:11:34 +00:00
Aleksandr Chebotov 038e9cfcd8 [macOS] Software Updates 2021 Week 37 - Update Mono to 6.12.0.140 ver… (#4050)
* [macOS] Software Updates 2021 Week 37 - Update Mono to 6.12.0.140 version

* add issues/21180 link
2021-09-09 19:01:12 +03:00
Dmitry Shibanov 39051ea4cf [macOS] Move global npm packages to toolset macOS (#4047) 2021-09-09 18:53:11 +03:00
github-actions[bot] de98c474f3 Updating readme file for win22 version 20210907.1 (#4029)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-09 15:43:46 +00:00
Michael Kriese 9277e9fb5f Windowsd Server 2022: prepull docker images (#4040) 2021-09-09 15:36:30 +03:00
github-actions[bot] baabb70137 Updating readme file for ubuntu20 version 20210906.1 (#4024)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-09 08:29:06 +00:00
Aleksandr Chebotov 1052083f04 [Windows] win-wdk: install WDK 11 (#4014) 2021-09-09 10:46:21 +03:00
github-actions[bot] 06659e17fd Updating readme file for ubuntu18 version 20210906.1 (#4025)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-09 07:26:34 +00:00
Aleksandr Chebotov 4b8d98922a doc: add wsl info section for win22 (#4041) 2021-09-08 15:44:10 +03:00
github-actions[bot] 3a8831b648 Updating readme file for macOS-10.15 version 20210905.2 (#4022)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-08 10:36:53 +00:00
Aleksandr Chebotov 8bbd74620a winpacker: add extra reboot step (#4037) 2021-09-08 13:30:30 +03:00
EdJoPaTo 414bcfb61a [Ubuntu] docker: add debian bullseye images (#4003)
With the release of Debian bullseye more and more containers are
migrating from buster to bullseye.
2021-09-08 13:29:41 +03:00
Nikita Bykov f2fdcef0e0 [macOS] Improve configure-tccdb-macos11 script (#4002) 2021-09-08 09:58:52 +03:00
Mikhail Timofeev ea7f3caa06 Add docker images to list of tools (#4030) 2021-09-08 09:50:43 +03:00
Maxim Lobanov 4394e4414f [macOS] Activate "Allow Remote Automation" Safari option during image generation (#3996)
* Move logic to activate "Allow Remote Automation" from base image to image gen scripts

* add shebang
2021-09-07 10:56:55 +03:00
Aleksandr Chebotov 19717dd758 [Windows] Skip Edge installation for windows-2022 (#4027) 2021-09-06 18:58:11 +03:00
github-actions[bot] 3703015712 Updating readme file for win19 version 20210903.7 (#4019)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-06 15:12:12 +00:00
jpark37 5d8cf1a6a9 Use 20348 SDK/WDK for windows-2019/2022 images (#3942) 2021-09-06 17:08:45 +03:00
github-actions[bot] 4cb373c912 Updating readme file for macOS-11 version 20210905.2 (#4021)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-09-06 13:11:29 +00:00
MaksimZhukov 7546c7f36a [Windows] Change .NET SDK pre-installation policy (#4007) 2021-09-06 09:45:16 +03:00
MaksimZhukov efc4153250 [macOS] Change .NET SDK pre-installation policy (#4008) 2021-09-05 12:46:44 +03:00
yuk7 9aea7d589e Add Go 1.17 to all OSes toolsets (#3980) 2021-09-05 12:45:02 +03:00
Aleksandr Chebotov 6968a424be pester: remove Nuget.Config test (#4015) 2021-09-03 17:05:14 +03:00
Aleksandr Chebotov d261844fc2 [Windows] postdotnet: delete nuget.conf if exists (#4013)
* postdotnet: delete nuget.conf if exists

* rename to $nugetConfigPath

* add nuget.config check test

* remove issue link
2021-09-03 14:02:30 +03:00
github-actions[bot] aa3d80baa9 Updating readme file for win22 version 20210901.3 (#4004)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-03 09:55:51 +00:00
github-actions[bot] ec9ac010f1 Updating readme file for win16 version 20210901.3 (#4005)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-03 07:12:07 +00:00
github-actions[bot] cd2d385433 Updating readme file for macOS-10.15 version 20210831.3 (#4001)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-03 06:07:02 +00:00
github-actions[bot] 126faeedce Updating readme file for macOS-11 version 20210831.3 (#4000)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-02 09:20:50 +00:00
github-actions[bot] e2a6bc04d3 Updating readme file for ubuntu18 version 20210831.9 (#3991)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-09-02 07:47:52 +00:00
github-actions[bot] ac3304726e Updating readme file for ubuntu20 version 20210831.9 (#3992)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-09-02 07:44:10 +00:00
Aleksandr Chebotov a8c8a73ad1 [Ubuntu] homebrew: remove double quotes around env vars (#3984) 2021-08-30 11:55:56 +03:00
Dibir Magomedsaygitov d2c7eb1dfa [Windows] Remove exact maven version to install (#3975) 2021-08-30 09:54:10 +03:00
Dibir Magomedsaygitov 1cbea05824 [Ubuntu] Rework Maven installation (#3973)
* rework maven installation

* resolve issues

* resolve issue with extracting latest maven version
2021-08-27 22:43:29 +03:00
Aleksandr Chebotov 4f6ba63ac7 updates: move Install-WindowsUpdates.ps1 at the top to fix winrm timeout (#3971) 2021-08-27 17:44:45 +03:00
Dmitry Shibanov 3b94fc1d86 [Windows] Add Microsoft.VisualStudio.Component.VC.ATLMFC.Spectre (#3968) 2021-08-27 14:32:07 +03:00
Darleev 82d0cf5316 [macOS 11] changed default Xcode version to 12.5.1 (#3966) 2021-08-27 09:52:51 +03:00
Aleksandr Chebotov 5aa96839a8 [Windows] win: add validation InstalledSoftware.md and testResults.xml files (#3960)
* win: add validation InstalledSoftware.md file
2021-08-27 09:38:18 +03:00
Vladimir Safonkin ca51829236 Try org token to request reviewers for update image PR (#3965) 2021-08-26 15:46:31 +03:00
Darleev 9d76ecf422 added logs verbosity (#3964) 2021-08-26 15:30:52 +03:00
Darleev c97ae47147 [macOS 11] Fix for invalid link to release and software report (#3954) 2021-08-25 11:57:13 +03:00
Aleksandr Chebotov 557fce161e [Ubuntu] scripts: move invoke_tests at the bottom (#3950) 2021-08-24 13:45:49 +03:00
Dibir Magomedsaygitov 22087b3c7a [Windows] Add Visual Studio component (#3946) 2021-08-23 19:51:55 +03:00
Maxim Lobanov be3b041223 Update readme with Windows Server 2022 info (#3951)
* update readme with Windows Server 2022 info

* fix comments
2021-08-23 19:47:08 +03:00
Vladimir Safonkin 747a0410cd Fix workflow step to request PR reviewers (#3948) 2021-08-23 16:24:32 +03:00
github-actions[bot] 5e6bfa08e2 Updating readme file for win22 version 20210819.7 (#3947)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-08-23 13:20:00 +03:00
Maxim Lobanov a2d76d2a0e Add Windows Server 2022 image templates (#3929)
* add windows2022 image template

Co-authored-by: Aleksandr Chebotov <v-aleche@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com>
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2021-08-23 11:13:14 +03:00
Aleksandr Chebotov 20584a4394 win/selenium: Download selenium-server-standalone.jar from GitHub (#3940) 2021-08-20 16:55:04 +03:00
Aleksandr Chebotov c81312dfa7 selenium: Download selenium-server-standalone.jar from GitHub releases (#3939) 2021-08-20 15:13:27 +03:00
Mikhail Timofeev accd6d0278 Add configure-tccdb-macos11 script (#3933) 2021-08-19 20:49:31 +03:00
github-actions[bot] c706ecc11c Updating readme file for win19 version 20210815.1 (#3905)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-19 13:29:49 +00:00
github-actions[bot] 385bbfb9aa Updating readme file for win16 version 20210815.1 (#3907)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-19 13:19:59 +00:00
Pavlo Golub 3c63be16f6 PostgreSQL not Postgre SQL (#3931)
https://wiki.postgresql.org/wiki/Postgres
2021-08-19 13:54:18 +03:00
Aleksandr Chebotov ea51727852 doc: rename kotlin to Kotlin (#3932) 2021-08-19 13:21:44 +03:00
github-actions[bot] ca34695b7a Updating readme file for ubuntu20 version 20210816.1 (#3898)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-19 08:34:04 +00:00
github-actions[bot] 355c60bf7d Updating readme file for ubuntu18 version 20210816.1 (#3899)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-19 08:08:26 +00:00
github-actions[bot] 9be0acc5ac Updating readme file for macOS-10.15 version 20210814.1 (#3901)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-19 06:31:00 +00:00
Ryan 8f1e4ff32f [Ubuntu] add aria2 to toolset (#3916)
aria2 is already installed as part of https://github.com/actions/virtual-environments/blob/133db654885e1796cc158ab04f9217826294857a/images/linux/scripts/base/apt.sh#L29
This change will add aria2 to the list of apt packages in generated README
2021-08-18 13:35:29 +03:00
Aleksandr Chebotov e9edf6552f Remove eval statement (#3920) 2021-08-18 11:57:22 +03:00
Mikhail Timofeev 9a9885aa73 Change the message as macos11 is GA in GH (#3912) 2021-08-17 22:45:20 +03:00
Vladimir Safonkin a98af57cf3 Request Akvelon team as reviewers for image update pull requests (#3915) 2021-08-17 22:24:17 +03:00
github-actions[bot] 83fcc4aeab Updating readme file for macOS-10.14 version 20210814.1 (#3904)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-17 16:43:08 +00:00
Maxim Lobanov 133db65488 Move WSL installation to toolsets (#3906) 2021-08-17 17:57:09 +03:00
Aleksandr Chebotov 5b7a0eee31 Add HOMEBREW_SHELLENV_PREFIX env (#3908) 2021-08-17 11:43:19 +03:00
github-actions[bot] cabf79fd20 Updating readme file for win16 version 20210810.1 (#3882)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-16 12:46:06 +00:00
github-actions[bot] 42c5c6179c Updating readme file for macOS-11 version 20210814.1 (#3900)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-16 11:58:51 +00:00
github-actions[bot] cf4e62dadd Updating readme file for win19 version 20210810.1 (#3883)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-16 08:54:17 +00:00
github-actions[bot] 773f039501 Updating readme file for ubuntu18 version 20210810.1 (#3879)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-12 19:56:45 +00:00
github-actions[bot] f924b2ced6 Updating readme file for macOS-10.15 version 20210808.1 (#3876)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-12 10:49:03 +00:00
github-actions[bot] f365613a9d Updating readme file for ubuntu20 version 20210810.1 (#3880)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-12 08:35:54 +00:00
github-actions[bot] 7617695f30 Updating readme file for macOS-11 version 20210808.1 (#3877)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-11 09:54:02 +00:00
Aleksandr Chebotov a64db791f3 disable network discovery popup (#3875) 2021-08-10 17:24:51 +03:00
Ryan dcb58dee7a fix: escape tilde operator (#3868)
Prevents markdown to interpret it as 'strike down' style when 2 or more tilde operators appear
2021-08-09 11:59:59 +03:00
Mikhail Koliada b56230f342 [Linux] install.sh: make the IsPackageInstalled function definition consistent (#3864)
* linux/../../install.sh: make the IsPackageInstalled function definition consistent
2021-08-06 18:25:52 +03:00
Mikhail Koliada 7c15777588 LICENSE: update year (#3863) 2021-08-06 15:13:14 +03:00
Alena Sviridenko 6113166f05 Change Ubuntu 16.04 usage terms (#3862) 2021-08-06 11:45:11 +03:00
Julien Marrec 99fa3a3396 Add aria2 (aria2c) to Windows (#3795) 2021-08-05 18:16:04 +03:00
Maxim Lobanov 71a9049e38 [Windows] Fix platform conditions by adding brackets (#3856) 2021-08-05 07:26:07 +03:00
Maxim Lobanov 8481b2c846 [Windows] Improve Visual Studio installation scripts to support Preview versions (#3850)
* Support Preview versions of Visual Studio

* resolve comments

* Fix test

* fix tests
2021-08-04 22:35:44 +03:00
Aleksandr Chebotov b5a7a67456 Add update login keychain parameter (#3853) 2021-08-04 18:42:06 +03:00
github-actions[bot] c4bf59ecda Updating readme file for win19 version 20210803.1 (#3845)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-04 13:26:57 +00:00
github-actions[bot] aebdf07fa9 Updating readme file for win16 version 20210802.1 (#3835)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-04 09:27:58 +00:00
mikhailshaganov 5ece292613 [windows] Add Kotlin (#3784) 2021-08-04 12:19:55 +03:00
github-actions[bot] 33004045dd Updating readme file for ubuntu20 version 20210803.0 (#3846)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-04 08:03:41 +00:00
github-actions[bot] 04752cb309 Updating readme file for ubuntu18 version 20210803.5 (#3844)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-04 07:49:36 +00:00
Leonid Lapshin e7ca52b564 [Ubuntu] Reworked clang installation to use default Ubuntu repo (#3834) 2021-08-04 10:45:59 +03:00
github-actions[bot] b36d7c3960 Updating readme file for macOS-10.15 version 20210801.1 (#3830)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-04 06:49:32 +00:00
Maxim Lobanov 3b5c4ebd39 [Windows] Implement minor improvements, rev 2 (#3839)
* implement minor improvements

* Update Install-WDK.ps1

* fix nitpick
2021-08-04 09:35:16 +03:00
github-actions[bot] 924ebc40d1 Updating readme file for macOS-10.14 version 20210731.1 (#3848)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-08-03 22:28:29 +00:00
Maxim Lobanov f93413492e [Windows] Move Windows features to toolset (#3838)
* move windows features to toolset

* Update WindowsFeatures.Tests.ps1

* revert templates
2021-08-03 20:17:31 +03:00
github-actions[bot] c960549cb1 Updating readme file for macOS-11 version 20210801.1 (#3831)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-08-03 16:02:00 +00:00
Aleksandr Chebotov 0768aa2d0d [Ubuntu] Expand oc only in openshift installation (#3841) 2021-08-03 15:30:56 +03:00
Maxim Lobanov 32184fd850 [Windows] Clean up and simplify Windows templates (#3833)
* improve InitializeVM script

* Update windows2019.json

* remove configs

* resolve comments

* resolve comments; fix order

* fix templates

* move Node.js packages to toolset

* dotnet warmup and merge docker scripts

* clean up templates

* move template

* fix dotnetTLS order
2021-08-03 11:56:52 +03:00
Dibir Magomedsaygitov 7c1956be8a [Ubuntu] Fix kubectl installation (#3836)
* fix kubectl installation
2021-08-02 22:11:44 +03:00
Dibir Magomedsaygitov e9a8f1dac7 [Ubuntu] Fix GraalVM installation to retrieve latest version (#3832) 2021-08-02 16:12:26 +03:00
Maxim Lobanov 892ada55d5 [Windows] Docker, .NET Core and NPM improvements (#3811)
* improve InitializeVM script

* Update windows2019.json

* remove configs

* resolve comments

* resolve comments; fix order

* fix templates

* move Node.js packages to toolset

* dotnet warmup and merge docker scripts

* Update Node.Tests.ps1

* Update Install-Docker.ps1

* fix node.js tests

* fix npm package installation

* Update Install-NodeLts.ps1

* fix tests

* fix test
2021-08-01 15:10:59 +03:00
Aleksandr Chebotov b28c62d3f1 [Windows] Use default msys2 installer (#3819)
* Use default msys2 installer

* Use default msys2 installer

* Revert "[Windows] cargo-audit 0.15.0 is broken, stick to 0.14.1 (#3822)"

This reverts commit 0b37a50b57.

* merge
2021-07-31 17:24:54 +03:00
Mikhail Timofeev 799c7a79cf [Ubuntu] Install cargo-audit 0.14.1 as 0.15.0 is broken (#3821)
* Version 0.15.0 is broken, stick to 0.14.1

* Install cargo-audit without locked
2021-07-30 22:06:02 +03:00
Mikhail Timofeev 76c0efb5eb [macOS] Install cargo-audit 0.14.1 as 0.15.0 is broken (#3820)
* Hardcode 0.14.1 as 0.15.0 is broken

* Install cargo-audit without locked
2021-07-30 22:05:48 +03:00
Mikhail Timofeev 2d9cc77844 [windows] Install cargo-audit 0.14.1 as 0.15.0 is broken (fix) (#3824)
* Install cargo-audit without locked
2021-07-30 22:05:33 +03:00
Mikhail Timofeev 0b37a50b57 [Windows] cargo-audit 0.15.0 is broken, stick to 0.14.1 (#3822) 2021-07-30 11:58:05 +03:00
github-actions[bot] d4a2126d25 Updating readme file for win16 version 20210725.1 (#3790)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-29 19:07:25 +00:00
github-actions[bot] b82bdafea6 Updating readme file for win19 version 20210725.1 (#3789)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-29 15:12:53 +00:00
mikhailshaganov 6317ee607b [mac OS] adding kotlin lang using brew (#3777) 2021-07-29 17:21:09 +03:00
github-actions[bot] f04052e064 Updating readme file for macOS-10.15 version 20210725.1 (#3794)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-29 13:55:13 +00:00
Mikhail Timofeev 52d30ac08c [macOS] Fix xcode installation script if there is only one Xcode version to install (#3808)
* Cast xcodeVersions variable to array
2021-07-29 16:15:45 +03:00
github-actions[bot] 96965b9b75 Updating readme file for ubuntu20 version 20210726.1 (#3793)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-29 10:11:39 +00:00
github-actions[bot] 7c425c26ab Updating readme file for ubuntu18 version 20210726.1 (#3792)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-29 09:09:00 +00:00
Maxim Lobanov 2e8f85a83b [Windows][Improvement] Split and simplify "InitializeVM.ps1" script (#3806)
* improve InitializeVM script

* Update windows2019.json

* remove configs

* resolve comments

* resolve comments; fix order

* fix templates
2021-07-29 10:46:27 +03:00
github-actions[bot] 7b1d76227c Updating readme file for macOS-11 version 20210724.1 (#3788)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-27 07:31:55 +00:00
github-actions[bot] 277b40b48c Updating readme file for macOS-10.14 version 20210724.1 (#3791)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-07-26 15:45:02 +00:00
Mikhail Timofeev 55fe7979f2 Revert "Stick mongodb version to 4.4.7 (#3747)" (#3775) 2021-07-22 17:40:48 +03:00
Aleksandr Chebotov c7cfdf2683 [macOS] Update MongoDB to version 5 (#3772) 2021-07-22 17:31:36 +03:00
Aleksandr Chebotov 99c8d003d4 [Ubuntu] Update MongoDB to version 5 (#3776) 2021-07-22 14:32:48 +03:00
mikhailshaganov 966395f4bd [Ubuntu] Add kotlin (#3755) 2021-07-22 11:31:30 +03:00
Aleksandr Chebotov 05781ccad0 [Windows] Add GVFS (Git Virtual File System) (#3766)
* Add GVFS (Git Virtual File System)
* invoke all tests from git file
2021-07-22 10:32:13 +03:00
Mikhail Timofeev 9400af6b30 [Ubuntu] Install yq to /usr/bin (#3768)
* Installation to /usr/local/bin break some workflows
2021-07-21 16:15:34 +03:00
Ryan 09920886d1 [ubuntu] fix: correct variable to print only tool name (#3767)
it was broken in #3701
2021-07-21 14:58:59 +03:00
github-actions[bot] 9db2160d1e Ubuntu 2004 (20210718 update) (#3743)
* Updating readme file for ubuntu20 version 20210718.1

* Add MongoDB announcement

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-21 11:43:15 +00:00
Aleksandr Chebotov f7158e2805 [macOS] Disable App Nap System Wide (#3765) 2021-07-21 14:11:34 +03:00
github-actions[bot] a2b7ff271c Updating readme file for win19 version 20210719.0 (#3756)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-21 10:27:17 +00:00
github-actions[bot] c4a2a7484c Updating readme file for win16 version 20210719.0 (#3760)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-21 09:55:29 +00:00
github-actions[bot] aa5c34a60d Ubuntu 1804 (20210718 update) (#3744)
* Updating readme file for ubuntu18 version 20210718.1

* Add MongoDB announcement

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-21 08:54:48 +00:00
Mikhail Timofeev 08d7091533 Remove platform-tools from toolset (#3761)
* Platform-tools is installed along with any version of build-tools, there is no need to install it explicitly
2021-07-20 22:37:48 +03:00
github-actions[bot] 61f5fe8de5 Updating readme file for macOS-10.15 version 20210718.2 (#3750)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-20 09:19:20 +00:00
github-actions[bot] a13f2630dc macOS 11 (20210718 update) (#3748)
* Updating readme file for macOS-11 version 20210718.3

* Add MongoDB announcement

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-20 07:38:07 +00:00
Mikhail Timofeev 47c20dcaa3 Stick mongodb version to 4.4.7 (#3747)
* Version 5 potentially contains breaking changes.
Stick to 4.4.7 and announce changes before upgrading to it.
2021-07-19 20:24:04 +03:00
Chris Patterson a62b2ca9db Merge pull request #3754 from actions/chrispat-patch-1
Remove module manifest header
2021-07-19 11:35:19 -04:00
Chris Patterson 1e9bfea57b Update ImageHelpers.psd1 2021-07-19 11:21:46 -04:00
Chris Patterson 0976659f92 Remove module manifest header
Removing the module manifest header to prevent licensing confusion with overall repository.
2021-07-19 10:41:29 -04:00
Darleev 6637167579 [Ubuntu] Added HTTP status code check to download_with_retries (#3721)
* Disable exit on error temporary to implement retry logic based on exit code
* Check HTTP response code and retry if it's not 200
* Make variables local to not interfere with other scripts

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2021-07-19 11:29:53 +03:00
Darleev 6576bc7f78 [macOS] Added HTTP status code check to download_with_retries (#3716)
* Disable exit on error temporary to implement retry logic based on exit code
* Check HTTP response code and retry if it's not 200
* Make variables local to not interfere with other scripts

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2021-07-19 11:29:23 +03:00
github-actions[bot] 11a951ee60 Updating readme file for macOS-10.15 version 20210712.4 (#3724)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-16 22:59:45 +00:00
Mikhail Timofeev 5d206765aa Use python3 to install aws-cli V1 (#3740)
* Starting from version 1.20 aws-cli dropped python2 support
2021-07-16 18:40:26 +03:00
Mikhail Timofeev 8f8dfb1bcf Disable schedule as Ubuntu16 is deprecated (#3741) 2021-07-16 17:25:43 +03:00
github-actions[bot] 55e0391007 Updating readme file for ubuntu18 version 20210712.0 (#3718)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-16 09:17:23 +00:00
github-actions[bot] b15732aa86 Updating readme file for ubuntu20 version 20210712.0 (#3717)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-16 08:58:27 +00:00
Leonid Lapshin 836dd6f083 [Ubuntu] Fix npm global modules installation (#3734)
* fixed directories permissions

* local bin permissions

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-07-16 10:55:47 +03:00
github-actions[bot] 13b1855134 Updating readme file for win19 version 20210711.1 (#3712)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-15 13:45:59 +00:00
github-actions[bot] 84ee9f7202 Windows Server 2016 (20210711 update) (#3713)
* Updating readme file for win16 version 20210711.1

* removed android-27 from google apis list

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-15 13:36:21 +00:00
Yann Jouanique 5161c257a2 [ubuntu] Install yq (#3646) 2021-07-15 12:21:48 +03:00
github-actions[bot] ad358c8eb8 Updating readme file for macOS-11 version 20210712.4 (#3723)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-14 10:54:38 +00:00
Aleksandr Chebotov 8aac9e60c0 [Ubuntu] Update ansible-base to ansible-core (#3711)
Update ansible-base 2.10 to ansible-core 2.11 for Ubuntu images
2021-07-14 12:23:24 +03:00
Mikhail Timofeev e139c6d581 [macOS] Skip Intel HAXM installation on BigSur (#3698)
* Remove HAXM installation as it doesn't work on Big Sur
* Change test to validate successful kext load
* Add HAXM to software report
2021-07-14 10:02:12 +03:00
Mikhail Timofeev a914ed2f95 [Windows] Fix image generation error related to zipped az modules (#3720) 2021-07-13 10:41:55 +03:00
Mikhail Timofeev 7149c03bd2 Fix Get-AndroidGoogleAPIsVersions function output (#3715)
* The current condition retrieves a system image android 27 for win16
2021-07-13 09:32:41 +03:00
Dibir Magomedsaygitov cfffe35709 [Windows] Upgrade Azure PowerShell from 5.9.0 to 6.1.0 (#3676)
* Add 6.1.0 to windows images
* Zip 5.9.0 version
2021-07-12 20:17:32 +03:00
Dibir Magomedsaygitov 75e8ea0593 [macOS] Upgrade azure powershell from 5.9.0 to 6.1.0 (#3677) 2021-07-12 18:27:04 +03:00
Dibir Magomedsaygitov 2ebf8e46f3 [Ubuntu] Upgrade Azure PowerShell from 5.9.0 to 6.1.0 (#3675)
* upgrade azure powershell from 5.9.0 to 6.1.0 on ubuntu images
* zip 5.9.0 version
2021-07-12 18:26:04 +03:00
Tobias Chen 52b67da785 [Ubuntu] Remove hardcoded toolsToInstall from script (#3701) 2021-07-12 16:54:04 +03:00
Hai Cao 7fe7393aa2 [Ubuntu] Add SqlPackage (#3700)
* [Ubuntu] Add SqlPackage

* Address comments
2021-07-12 10:59:56 +03:00
Nikita Bykov 8a77fdb2a1 [Windows] Move choco installation list into toolset (#3688)
* Move choco installation list into toolset

* Add a condition to Install-CommonUtils.ps1

* Rename tests and revert Bazel to single script

* Return Install-Bazel.ps1 to windows2016.json and windows2019.json

* Remove condition and Write-Host command from Install-CommonUtils.ps1

* Reset Install-Bazel.ps1 to be the same as in main

* Update choco.common_packages in toolset-2016.json and toolset-2019.json

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-07-08 16:23:07 +03:00
Marcus Felling e8381d7db3 [macOS] Adding Bicep CLI (#3655)
* Add Bicep CLI

* Correct regex for bicep version

* Add Bicep CLI

* use tap path for bicep brew install

* use tap path for bicep brew install

* use tap path for bicep brew install

* Update bicep package name

* Update bicep package name

* Update bicep package name

* Add install script in order to run homebrew tap

* no need to reference utils.sh

* Remove bicep from common packages

* Add "CLI" to Bicep return statement

Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
2021-07-07 17:10:31 +03:00
Mikhail Timofeev f1ab1bd12f [Ubuntu] Switch android tools installation to use sdkmanager from command-line tools (#3650)
* Switch android tools installation to cmdline-tools
* Replace deprecated sdkmanger from sdk-tools to the one from cmdline tools
* Remove patcherv4 from toolsets as it's included in m2repository extras

* Add tests to make sure both sdkmanagers exist

* Return cmdline-tools to software readme
* Get-AndroidInstalledPackages function now use list_installed param
* Create a function to get sdkmanager version = cmdline tools version

* Get rid of hardcoded path to ANDROID_HOME
* Add reloadEtcEnvironment call to installation script
* Use env variable ANDROID_HOME in tests

* Modify software report to output any version

* Change regex pattern to output the group
* Currently the function returns 4. instead of 4.0, this change fixes it
2021-07-07 15:16:46 +03:00
Mikhail Timofeev 6e7af98600 [Windows] Switch android tools installation to use cmdline-tools' sdkmanager (#3682)
* Switch android installation to use cmdline-tools
* Rename update-android sdk to install-android sdk as for the other OSs
* Remove cmdline-tools installation from toolset as it's installed
* Regenerate licenses for the new sdkmanager
* Add tests to check that both sdkmanagers are available
* Simplify Get-AndroidInstalledPackages function to use list_installed

* Resolve nitpicks from @AlenaSviridenko
* Add extra lines to separate comments from the code
* Remove extra line after $androidNDKs

* Modify software report to output any version number

* Change regex pattern to output the group
* Currently the function returns 4. instead of 4.0, this change fixes it
2021-07-07 15:16:35 +03:00
Mikhail Timofeev cc3405ff7a [macOS] Switch android tools installation to use cmdline-tools' sdkmanager (#3686)
* Switch android installation to use cmdline-tools
* Switch android-toolsets and xamarin-android-ndk to use new sdkmanager
* Remove cmdline-tools installation from toolset as it's installed
* Remove redundant steps with warning prevention
* Remove hardcoded licenses as they are accepted during the installation
* Add tests to check that both sdkmanagers are available
* Simplify Get-AndroidInstalledPackages function to use list_installed

* Change regex pattern to output the group
* Currently the function returns 4. instead of 4.0, this change fixes it
2021-07-07 15:16:23 +03:00
github-actions[bot] 7d0d3aa82a Updating readme file for win16 version 20210628.1 (#3668)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-01 18:11:39 +00:00
github-actions[bot] 332b6bdabd Updating readme file for win19 version 20210628.1 (#3667)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-01 17:13:45 +00:00
github-actions[bot] 5ae2170ebe Updating readme file for macOS-10.15 version 20210626.1 (#3662)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-07-01 11:01:18 +00:00
github-actions[bot] 7ffed57438 Updating readme file for ubuntu20 version 20210628.1 (#3665)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-30 08:47:42 +00:00
github-actions[bot] f785d3355f Updating readme file for ubuntu18 version 20210628.1 (#3664)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-30 06:37:02 +00:00
Leonid Lapshin de7775d901 [windows] Improve MSYS2 installation (#3652) 2021-06-29 11:59:03 +03:00
Alena Sviridenko 24387bf8e6 Migrate issue templates to .yml (#3659)
* Added issue yml templates

* Fixed yml syntax

* Removed md templates

* updated tool request template

* fixed windows 2016 naming and bug report dropdown

* Styling and wording fixes

* Added validation requirements

* removed empty issue check

* Removed issue triager
2021-06-29 11:51:23 +03:00
github-actions[bot] cd920950ec Updating readme file for win19 version 20210620.1 (#3625)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-28 22:01:56 +00:00
github-actions[bot] 19d5b9fcef Updating readme file for macOS-10.14 version 20210626.1 (#3657)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-28 15:26:36 +00:00
github-actions[bot] 851f0dfc31 Updating readme file for macOS-11 version 20210626.1 (#3658)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-06-28 14:23:38 +00:00
Mikhail Timofeev 20804bc30f Remove bicep from software docs and tests for ub16 (#3656) 2021-06-28 10:58:28 +03:00
Mikhail Timofeev c3f3d8325f Revert "Updating readme file for ubuntu20 version 20210621.1 (#3623)" (#3654) 2021-06-26 11:22:49 +03:00
github-actions[bot] 83c974ff84 Updating readme file for win16 version 20210620.1 (#3624)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-25 17:29:27 +00:00
Mikhail Timofeev 8ebae96a7c Remove Xcode 12.2&12.3 from macos Big Sur toolset (#3653) 2021-06-25 18:28:19 +03:00
github-actions[bot] c103d79bd1 Updating readme file for ubuntu20 version 20210621.1 (#3623)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-24 19:09:51 +00:00
Darleev 059dfd8e75 [macOS 11] software update week 26 (#3648)
* software update week 26

* returned previous mono version
2021-06-24 18:55:51 +03:00
github-actions[bot] 405a368b22 Updating readme file for ubuntu18 version 20210621.1 (#3622)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-24 08:48:57 +00:00
Marcus Felling dd399bcab4 [Ubuntu] Adding Bicep CLI (#3639)
* Add Bicep CLI to Ubuntu images

* Use helper download_with_retries

* remove bicep from deprecated 16.04 image

* formatting

Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
2021-06-24 11:13:00 +03:00
Mikhail Timofeev 9e21ab0f00 Return xcode 12.5 to macos Big Sur (#3635) 2021-06-23 22:20:09 +03:00
Marcus Felling 1a96373918 [Windows] Adding Bicep CLI (#3600)
* Add Bicep CLI

* Correct regex for bicep version

Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
2021-06-23 17:52:45 +03:00
Drew Skwiers-Koballa d986b255ca Update Dacfx 18.7.1 (#3608)
* update dacfx to 18.5.1

* update dacfx 18.7.1 Windows

* update dacfx 18.7.1 Windows

* revert MD changes
2021-06-22 22:14:00 +03:00
github-actions[bot] a13c907aaf Updating readme file for macOS-10.15 version 20210620.1 (#3626)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-22 14:17:47 +00:00
Alena Sviridenko 43b77cd2a0 updated Xcode support policy (#3637) 2021-06-22 13:37:53 +03:00
Mikhail Timofeev 4e6b32793f Add xcode 12.5.1 to macos-11 image (#3629) 2021-06-22 11:36:14 +03:00
Maxim Lobanov 83f05ed56f Fix macOS 11 label (#3633) 2021-06-22 10:21:36 +03:00
github-actions[bot] efcbf00263 Updating readme file for macOS-11 version 20210620.1 (#3628)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-06-21 19:23:53 +00:00
Mikhail Timofeev 83a5e887f4 Revert "Don't install KB5003638 update as it breaks the VM (#3557)" (#3627)
This reverts commit ff4ba2e725.
2021-06-21 20:02:32 +03:00
Mikhail Timofeev 1fb8c5d6a1 [Windows] Improve Pester tests coverage for MSYS2 (#3595)
* Add ShouldReturnZeroExitCodeWithParam function and a new set of tests for MSYS2 tools

* Change get-command -> Get-Command

* Remove elevated user, return original path after msys installation and tests, resolve nitpicks

* Add BeforeEach and AfterEach blocks
These blocks change the path before each test
and return the original path after each test

* Change get-command -> Get-Command
2021-06-21 14:09:51 +03:00
Sujith Quintelier 4143d0cc7b Update GenerateResourcesAndImage.ps1 (#3616)
Ubuntu2004 is also a valid option for parameter ImageType
2021-06-21 14:06:00 +03:00
Aleksandr Chebotov b03244bee3 [macOS] Upgrade Xamarin.Android from 11.3.0.1 to 11.3.0.4 (#3603) 2021-06-18 16:28:09 +03:00
github-actions[bot] e9b07beb47 Updating readme file for win19 version 20210616.0 (#3602)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-18 09:23:23 +00:00
Aleksandr Chebotov 0b6b04be64 Fix Java_Adopt_Jdk permissions (#3605) 2021-06-18 10:26:34 +03:00
github-actions[bot] 82fa8f2880 Updating readme file for macOS-10.15 version 20210612.1 (#3584)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-17 22:46:27 +00:00
github-actions[bot] cae9ecba81 Updating readme file for ubuntu20 version 20210614.1 (#3579)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-17 15:29:15 +00:00
github-actions[bot] b52cf39f62 Updating readme file for win16 version 20210614.1 (#3589)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-17 11:12:10 +00:00
github-actions[bot] 1eb3d364c3 Updating readme file for ubuntu18 version 20210614.1 (#3580)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-17 07:54:37 +00:00
github-actions[bot] 9f07fcc536 Updating readme file for macOS-11 version 20210614.1 (#3587)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-06-16 07:41:46 +00:00
github-actions[bot] 7e05e372ed Updating readme file for win16 version 20210609.1 (#3559)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-14 17:47:39 +00:00
github-actions[bot] bb728f4d07 Updating readme file for win19 version 20210608.0 (#3554)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-14 14:15:37 +00:00
Mikhail Timofeev 4416d54d30 [Ubuntu] Remove php installation, tests and software docs for Ubuntu 16 (#3541)
* Remove php installation, tests and software docs for Ubuntu 16

* Add openssl 1.1.1k installation as python toolcache depends on it

* Add a comment about openssl installation on Ubuntu 16
2021-06-10 22:33:08 +03:00
Mikhail Timofeev 6c587ebe5d [macOS] Upgrade Xamarin ios and mac versions from .1 to .3 (#3564) 2021-06-10 21:34:49 +03:00
Mikhail Timofeev fd620b053f [macOS] Upgrade azure powershell from 5.7.0 to 5.9.0 on macOS images (#3563) 2021-06-10 21:34:17 +03:00
Mikhail Timofeev 49967f8712 [ubuntu] Change azure ps module from 5.7.0 to 5.9.0 for Ubuntu 18 & 20 (#3562) 2021-06-10 21:33:43 +03:00
Mikhail Timofeev edd787f61b [Windows] Upgrade az powershell module from 5.7.0 to 5.9.0 (#3561)
* Add az ps module 5.9.0 to the windows images, move 5.7.0 to zip

* Remove 5.7.0 from zip version as it's usage is low based on the telemetry
2021-06-10 21:33:10 +03:00
github-actions[bot] 9888238327 Updating readme file for ubuntu20 version 20210606.1 (#3533)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-10 16:19:27 +00:00
github-actions[bot] 9ffd5d8858 Updating readme file for ubuntu18 version 20210606.1 (#3532)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-10 16:03:55 +00:00
Sergey Dolin 24ae664aed [ubunty] Add note about LLVM repo (#3523)
* Add LLVM libc++ info

* combine clang, clang-format into LLVM components

* fix formatting

Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
2021-06-10 11:21:02 +03:00
Sergey Dolin a9d832d671 [ubuntu] installing the latest .NET sdk patch version for every feature version (#3550)
* installing the latest patch version for every feature version

* simplify versions computing

* fix space

Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
2021-06-10 11:17:30 +03:00
Mikhail Timofeev ff4ba2e725 Don't install KB5003638 update as it breaks the VM (#3557) 2021-06-10 09:19:50 +03:00
github-actions[bot] 6afff5d0d9 Updating readme file for macOS-10.15 version 20210607.1 (#3547)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-09 10:41:06 +00:00
Mikhail Timofeev b8c7eb863a Switch the default Xcode version from 12.4 to 12.5 for macOS Big Sur (#3545) 2021-06-09 12:46:07 +03:00
github-actions[bot] f66433eafa Updating readme file for macOS-11 version 20210608.6 (#3553)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-06-09 07:33:51 +00:00
Darleev f66fa579e8 [ubuntu] post generation doc update (#3539) 2021-06-08 11:36:08 +03:00
Mikhail Timofeev a56b10c364 Revert mono version from 6.12.0.140 to 6.12.0.125 (#3543) 2021-06-08 10:44:41 +03:00
Mikhail Timofeev 4da3c8eef9 Add blackhole audiodevice for macOS Big sur, add sox and Switchaudio-osx versions to the docs (#3542) 2021-06-08 10:44:31 +03:00
Mikhail Timofeev 2ae7ebddab Add Xcode 13.0 to macOS Big Sur image (#3540) 2021-06-08 10:44:17 +03:00
Mikhail Timofeev 395eb43c2b Added a condition for the $binGhcPath to not depend on the exact Haskell version (#3537) 2021-06-07 20:49:36 +03:00
github-actions[bot] 638ad60fbd Updating readme file for win19 version 20210531.1 (#3489)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-07 14:49:49 +00:00
Nursultan Kassan 22b6f42307 [macOS] Adding Swig (#3510) 2021-06-07 16:00:50 +03:00
github-actions[bot] f417049417 Updating readme file for win16 version 20210531.1 (#3488)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-07 09:59:33 +00:00
Nursultan Kassan 659b9d878c [Windows] Adding Swig (#3509) 2021-06-07 12:23:47 +03:00
Mikhail Timofeev 46ced60271 [macOS] Get back pypy to big sur (#3524) 2021-06-06 23:44:10 +03:00
Alena Sviridenko 3fbcebad7a Add explanation for current enterprises (#3527)
* Added "current enterprises" explanation

* Fixed article

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2021-06-04 18:20:54 +03:00
Omar Sandoval d722f6fed9 [Ubuntu] Install default version of Clang last (#3506) 2021-06-04 14:36:14 +03:00
agorti 0648d434e6 [windows] update npm registry to https (#3521) 2021-06-04 14:33:52 +03:00
Mikhail Timofeev cf551b1f4c [macOS] Software updates week 23 — add Xamarin 6_12_9 bundle to Big Sur and Mono 6.12.0.140 to Catalina (#3519) 2021-06-04 09:24:58 +03:00
Sylvain b870568e36 [ubuntu] Clean way to disable the pcov PHP Extension (#3472)
* Clean way to disable the pcov PHP Extension

Fixes https://github.com/actions/virtual-environments/issues/3341

* Update php.sh

* Update php.sh

* Documentation
2021-06-03 19:12:53 +03:00
github-actions[bot] 70582d170c Updating readme file for ubuntu16 version 20210531.0 (#3490)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-03 13:30:22 +00:00
Dmitry Shibanov 5d24b559f9 [Windows] Add note about Conda (#3513)
* add note about Conda

* added a note in the same string

* move note to Get-CondaVersion function
2021-06-03 16:28:12 +03:00
Mikhail Timofeev 59ca08e5bf [macOS] Fix default java postfix in the software readme (#3518) 2021-06-03 14:38:17 +03:00
github-actions[bot] 7d7bce1875 Updating readme file for macOS-10.15 version 20210531.1 (#3497)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-03 11:23:21 +00:00
github-actions[bot] a5065df015 Updating readme file for ubuntu20 version 20210531.0 (#3492)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-03 09:09:06 +00:00
github-actions[bot] 1691aca843 Updating readme file for ubuntu18 version 20210531.0 (#3491)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-03 07:46:46 +00:00
Javier de la Morena fa8469a2cd [ubuntu] Update ORAS URL (#3516) 2021-06-03 09:37:12 +03:00
Alena Sviridenko 2823a3cb6a Add macOS 11 onboarding guide (#3449)
* Added guide on macOS 11 onboarding

* Updated formatting and phrases

* Updated onboarding page

* Fixed wording

* Fixed typos

Co-authored-by: ahdbilal <55514721+ahdbilal@users.noreply.github.com>
Co-authored-by: Maxim Lobanov <maxim-lobanov@github.com>

* Updated wording and notes

* Removed extra space

* Fixed new lines

* Fixed wording

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

* Fixed note

* Minor wording update

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

* Fixed note

* Fixed typo

Co-authored-by: ahdbilal <55514721+ahdbilal@users.noreply.github.com>
Co-authored-by: Maxim Lobanov <maxim-lobanov@github.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2021-06-02 13:16:51 +03:00
Mikhail Timofeev 4d72ed1fd9 [Windows] Refactor Msys2 installation to use toolset part 1 (#3487)
* Refactor Msys2 installation to use toolset

* fix indent in the toolset files

* Resolve nitpicks

* Remove typo (extra $)
2021-06-02 13:08:05 +03:00
github-actions[bot] 62046bdeb9 Updating readme file for macOS-10.14 version 20210531.1 (#3495)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-06-02 10:04:46 +00:00
Mikhail Timofeev 2c6cc7ab0d [Ubuntu] Change rebar installation to use GitHub releases (#3486)
* Change rebar installation to use gh releases

* Add source $HELPER_SCRIPTS/install.sh

* Add Erlang rebar3 to software readme
2021-06-01 18:31:35 +03:00
github-actions[bot] dbeeb4df39 Updating readme file for macOS-11 version 20210531.1 (#3496)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-06-01 11:17:24 +00:00
Mikhail Timofeev 4983deed0f [macos] stick to mongodb 4.4 (#3484) 2021-05-31 18:33:17 +03:00
github-actions[bot] 57a4965327 Updating readme file for win16 version 20210525.0 (#3456)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-31 14:09:51 +00:00
github-actions[bot] 50d06a58af Updating readme file for win19 version 20210525.0 (#3452)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-31 13:02:19 +00:00
Mikhail Timofeev 5898c5ebd4 Change RubyGems installation to use toolset (#3474) 2021-05-30 00:39:27 +03:00
Alena Sviridenko cfbaf5ff4d [macOS] removed GCC 8 (#3476) 2021-05-28 18:19:34 +03:00
github-actions[bot] 9aa17b4e31 Updating readme file for ubuntu20 version 20210524.1 (#3441)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-28 08:04:19 +00:00
Alena Sviridenko fe157d6cb7 [macOS] Add select-xamarin-sdk-v2.sh synopsis (#3473) 2021-05-28 10:45:39 +03:00
Jesse Chan 6d4c863d14 Revert "[ubuntu] Add GCC 11 (#3291)" (#3436)
This reverts commit 3ebf601284.

Bug: #3376
2021-05-28 10:22:18 +03:00
github-actions[bot] 77daa9bf8e Updating readme file for macOS-10.15 version 20210525.2 (#3450)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-27 13:41:49 +00:00
Aleksandr Chebotov 22053ef0b1 Add install Az module section (#3466)
* Add install Az module section

* add Az module name
2021-05-27 15:38:21 +03:00
github-actions[bot] 4341738721 Updating readme file for ubuntu18 version 20210524.1 (#3442)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-27 09:14:48 +00:00
github-actions[bot] 4b3f574fec Updating readme file for ubuntu16 version 20210524.1 (#3440)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-27 09:07:26 +00:00
Mikhail Timofeev f7e0e8befb [Windows] Switch to use OData query instead of choco search for ghc installation (#3458)
* Switch to use OData query instead of choco search

* Simplify the logic
2021-05-27 10:20:41 +03:00
Mikhail Timofeev f9f82b79eb Add previous version uninstallation (#3448) 2021-05-25 20:33:58 +03:00
Mikhail Timofeev 8e7629ee13 Change Add-AssertionOperator to Add-ShouldOperator (#3446) 2021-05-25 11:13:12 +03:00
Mikhail Timofeev 39e317a1b6 [ubuntu] Change Add-AssertionOperator to Add-ShouldOperator (#3445) 2021-05-24 21:38:12 +03:00
Mikhail Timofeev 8dd6faf126 [macOS] Change Add-AssertionOperator to Add-ShouldOperator (#3447) 2021-05-24 21:37:55 +03:00
Mikhail Timofeev d32753de28 Temporary hardcoding fastlane 2.183.2 on macOS (#3444) 2021-05-24 21:36:35 +03:00
github-actions[bot] 7c673a20aa Updating readme file for macOS-11 version 20210523.1 (#3443)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-05-24 12:07:10 +00:00
github-actions[bot] 75f9131c18 Updating readme file for ubuntu20 version 20210517.1 (#3400)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-21 13:40:25 +00:00
Mikhail Timofeev 589a58e707 [Ubuntu] Change java-tools script to retrieve the latest major Gradle version (#3385)
* Change java-tools script to retrieve the latest major gradle version

* Change gradle installation to use manifest json. Use download_with_retries function

* Move maven version to the toolset
2021-05-21 15:37:15 +03:00
Sergey Dolin 7ce21d8b0e [ubuntu] Rework Mono installation to avoid using apt repos (#3289)
* Rework Mono installation to avoid using apt repos on Ubuntu images

* Use rest of line to read full AptSourceRepository
2021-05-21 10:34:41 +03:00
github-actions[bot] 5e65aeff73 Updating readme file for ubuntu18 version 20210517.1 (#3399)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-21 07:21:08 +00:00
github-actions[bot] 926cba5c9e Updating readme file for ubuntu16 version 20210517.1 (#3407)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-21 07:12:25 +00:00
github-actions[bot] 1b483cc38d Updating readme file for win19 version 20210516.0 (#3403)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-21 00:14:35 +00:00
github-actions[bot] f2149f41d3 Updating readme file for win16 version 20210516.0 (#3404)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-20 20:22:50 +00:00
Maxim Lobanov 3b591632fb Update macos-11.0 to macos-11 in README (#3427)
* Update README.md

* Update README.md
2021-05-20 17:03:33 +03:00
github-actions[bot] c64a37612f Updating readme file for macOS-10.15 version 20210516.1 (#3402)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-20 08:57:11 +00:00
Mikhail Timofeev 0bac9037ca Sort by version in advance (#3411) 2021-05-19 19:45:09 +03:00
Maxim Lobanov c60f54012a Rename 'macOS-11.0' to 'macOS-11' everywhere (#3417)
* rename 'macos11.0' to 'macos-11'

* fix nitpicks

* resolve conflicts
2021-05-19 14:16:51 +03:00
daniv-msft 729b5626f0 Removing support of Azure Dev Spaces now that it's retired (#3413) 2021-05-19 10:14:16 +03:00
Shivam Mathur 85e107cdc3 [ubuntu] Add PHP extensions: imagick, pcov and sodium (#3405) 2021-05-18 10:42:14 +03:00
Mikhail Timofeev 952ee3e740 [ubuntu] Move aws-sam-cli installation to the aws.sh script (#3401) 2021-05-17 21:55:32 +03:00
github-actions[bot] c4b6ffb1dc Updating readme file for macOS-11.0 version 20210516.1 (#3398)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-05-17 11:41:02 +00:00
Mikhail Timofeev 322aa89006 [windows] Add msys libxml2 package installation (#3386) 2021-05-17 00:54:28 +03:00
mikhailshaganov 72813adbe7 Rework apt-fast installation to get rid of apt repo (#3336)
* select-xamarin-sdk-v2

* Update select-xamarin-sdk-v2.sh

* change warning message

* check existed framework version

* check framework version review points

* Update apt.sh

* Update SoftwareReport.Tools.psm1

* remove a commented code

* Fixed review points

* return unattended-upgrades

* Fixed a viewing version

* add links for apt fast

* apt fast version

* apt-fast

* final check version

* add which apt-fast
2021-05-14 14:11:25 +03:00
Mikhail Timofeev a7c8d209c6 [windows] Add a test to make sure version 9 is the default one (#3377) 2021-05-14 12:20:12 +03:00
Mikhail Timofeev 15a610677b [ubuntu] Remove clang 9 for ubuntu 20, set clang 11 as the default one (#3381) 2021-05-14 11:25:07 +03:00
Mikhail Timofeev ca0395c1ee Add dotnet nuget list source (#3373) 2021-05-13 21:12:54 +03:00
Ewout ter Hoeven 09855006a1 Add Clang 12 to Ubuntu 20.04 toolset (#3206)
* Add Clang 12 to Ubuntu 20.04 toolset

* Ubuntu: Install Clang-12 directly from LLVM
2021-05-13 18:43:56 +03:00
github-actions[bot] 75a4d89efb Updating readme file for macOS-10.15 version 20210510.1 (#3360)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-13 14:59:08 +00:00
Aleksandr Chebotov 0b1d415b6a Remove Xamarin.IOS&Mac latest bundle (#3375) 2021-05-13 16:43:12 +03:00
github-actions[bot] 0cbfee2322 Updating readme file for win19 version 20210509.1 (#3350)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-13 13:37:30 +00:00
github-actions[bot] d694ead822 Updating readme file for win16 version 20210509.1 (#3349)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-13 13:36:40 +00:00
Mikhail Timofeev 0f3523c0af [macOS] Add GCC 11 (#3361)
* Add gcc@11 to macOS images

* Change tests and software report to use gcc toolset versions

* Add natural sort
2021-05-13 11:45:33 +03:00
github-actions[bot] 3b20fa31db Ubuntu 1604 (20210510 update) (#3358)
* Updating readme file for ubuntu16 version 20210510.0

* Update Ubuntu1604-README.md

* Update Ubuntu1604-README.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Maxim Lobanov <maxim-lobanov@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-13 08:44:37 +00:00
github-actions[bot] f20496e05d Ubuntu 2004 (20210510 update) (#3356)
* Updating readme file for ubuntu20 version 20210510.0

* Update Ubuntu2004-README.md

* Update Ubuntu2004-README.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Maxim Lobanov <maxim-lobanov@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-13 08:41:46 +00:00
github-actions[bot] 0409144182 Ubuntu 1804 (20210510 update) (#3357)
* Updating readme file for ubuntu18 version 20210510.0

* Update Ubuntu1804-README.md

* Update Ubuntu1804-README.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Maxim Lobanov <maxim-lobanov@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-13 08:38:04 +00:00
Aleksandr Chebotov 769423b171 Add build_resource_group_name packer option (#3369) 2021-05-13 10:19:34 +03:00
Alena Sviridenko 68aa36b2c6 Added workflow step to check for spammy issue (#3370) 2021-05-12 14:22:34 +03:00
Mikhail Timofeev 087144469d [ubuntu] Remove pip symlink creation (#3366) 2021-05-12 11:24:18 +03:00
Mikhail Timofeev d70d9f2ac2 Add a warning note about post-deployment scripts (#3364) 2021-05-11 19:07:51 +03:00
AlenaSviridenko a16083d386 Revert "test body input"
This reverts commit 23ed477795.
2021-05-11 18:01:50 +03:00
AlenaSviridenko 23ed477795 test body input 2021-05-11 17:58:25 +03:00
github-actions[bot] ae3284dad1 Updating readme file for macOS-11.0 version 20210510.1 (#3355)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-11 09:48:58 +00:00
Dibir Magomedsaygitov dc6dc83742 fix minikube version output (#3352) 2021-05-11 10:15:27 +03:00
Mikhail Timofeev a5ee51f72d Revert "[ubuntu] Rework php installation (#3272)" (#3340)
This reverts commit b1f202e5f0.
2021-05-07 16:35:34 +03:00
github-actions[bot] 52d48bcbcd Updating readme file for macOS-10.15 version 20210503.2 (#3301)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-07 13:27:14 +00:00
github-actions[bot] 158ed05b65 Updating readme file for ubuntu20 version 20210504.1 (#3312)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-06 15:03:30 +00:00
Mikhail Timofeev 028fa5d893 [macOS] Add Xamarin ios 14.16 and mac 7.10 (#3329) 2021-05-06 16:38:58 +03:00
github-actions[bot] a583688e0d Updating readme file for ubuntu16 version 20210504.1 (#3305)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-06 10:28:54 +00:00
github-actions[bot] 8f215a59bd Updating readme file for ubuntu18 version 20210504.1 (#3304)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-06 10:24:38 +00:00
github-actions[bot] 9ebab486a8 Updating readme file for macOS-10.14 version 20210501.1 (#3300)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-06 09:41:52 +00:00
Aleksandr Chebotov a5fca054cb [Ubuntu] Set DefaultLimitSTACK=16384 limit (#3328)
* Set DefaultLimitSTACK=16384 limit

* Set DefaultLimitSTACK 16MB
2021-05-06 12:10:58 +03:00
Mikhail Timofeev 5abc43a504 [windows] Add cmake 3.18.1 for Android to toolset files (#3324) 2021-05-06 11:35:37 +03:00
Mikhail Timofeev 9740348868 [macos] Add cmake 3.18.1 to toolsets (#3323) 2021-05-06 11:35:21 +03:00
Mikhail Timofeev 96e0e6f9f3 [Ubuntu] Add Cmake 3.18.1 to toolset files (#3322) 2021-05-06 11:35:05 +03:00
Ewout ter Hoeven 3ebf601284 [ubuntu] Add GCC 11 (#3291)
* Ubuntu Bionic/Focal: Add GCC 11

Add GCC 11 to the Ubuntu 18.04 Bionic and 20.04 Focal toolsets.

* Ubuntu Bionic/Focal: Add GFortran 11

Add GFortran 11 to the Ubuntu 18.04 Bionic and 20.04 Focal toolsets.
2021-05-06 10:31:09 +03:00
Mikhail Timofeev 366f1b078e [Ubuntu] Avoid updating gems (#3320) 2021-05-06 10:04:22 +03:00
Mikhail Timofeev 5475c40059 [macOS] Add swift program to save certificate (#3311) 2021-05-05 18:23:21 +03:00
Sergey Dolin adf1f3d76e [ubuntu] Remove apt sources used to install azure-cli only (#3274) 2021-05-05 16:39:04 +03:00
Howard Jones 0cca9be107 Make CreateAzureVMFromPackerTemplate friendlier (#3209)
* Don't assume JSON output

Specify JSON output, since it's required. The default can be changed.

* Make actions easier to track

To make cleanup easier, use the same GUID for all components and report at the end on what was created.
2021-05-05 12:04:44 +03:00
Darii Nurgaleev f84d55abeb Rework Kubernetes installation to avoid using apt repos on Ubuntu images (#3309)
* github_feed_token removal

* remove file

* GithubFeedToken remove from other files

* remove boost from docs

* Kubectl installation without additional repo

* add latest kubectl version variable
2021-05-05 11:50:15 +03:00
Leonid Lapshin 1532432fa9 Fix fastlane installation for Ubuntu 20 (#3308)
* tmp fix for Ubuntu 20

* removed unnecessary line break

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-05-04 21:00:16 +03:00
Alena Sviridenko d441e5b3c0 Removed Ubuntu 16.04 from README.md (#3302) 2021-05-04 18:10:24 +03:00
mikhailshaganov 50f02341da select-xamarin-sdk-v2 (#3290)
* select-xamarin-sdk-v2

* Update select-xamarin-sdk-v2.sh

* change warning message

* check existed framework version

* check framework version review points
2021-05-04 17:29:41 +03:00
github-actions[bot] 365e5a0180 Updating readme file for macOS-11.0 version 20210503.1 (#3299)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-05-04 09:31:01 +00:00
Daniel f109d39c83 Securing packer builds via allowed_inbound_ip_addresses (#3193)
* Trying to handover additional parameters

* Make restriction to agent ip configurable

* Added additional parameter to all other packer files

* Added note about new parameter's incompatibility with other parameters to command line help

* Added line break for better readability

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>

Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
2021-05-04 11:39:55 +03:00
github-actions[bot] c2a2904e48 Updating readme file for ubuntu16 version 20210425.1 (#3262)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-29 14:50:39 +00:00
Leonid Lapshin b1f202e5f0 [ubuntu] Rework php installation (#3272) 2021-04-29 17:29:51 +03:00
github-actions[bot] 4a134cd3e5 Updating readme file for win19 version 20210425.1 (#3267)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-29 13:02:29 +00:00
github-actions[bot] d22dbe7112 Updating readme file for win16 version 20210425.1 (#3266)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-29 12:46:42 +00:00
github-actions[bot] 4fbbc19bf8 Updating readme file for ubuntu18 version 20210425.1 (#3263)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-29 09:01:40 +00:00
github-actions[bot] db4a0a42af Updating readme file for ubuntu20 version 20210425.1 (#3264)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-29 08:59:15 +00:00
Sergey Dolin 552da81d13 [ubuntu] Document GHC apt repository (#3268) 2021-04-28 14:51:16 +03:00
Rob Burger 6d21bc3d1a [Ubuntu] Increase Linux stack space to 16384KB (#3260)
* Increase Linux stack space to 16384KB

* Add stack hard and soft limits to limits.conf
2021-04-28 10:44:01 +03:00
Mikhail Timofeev 34ea1d0440 [Windows] Return VS2017 SSDT extensions to the readme (#3270) 2021-04-27 23:03:17 +03:00
github-actions[bot] 1547af6c5d Updating readme file for macOS-10.15 version 20210423.1 (#3265)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-27 12:46:39 +00:00
AHuusom cc0c9ba63b [windows] Fixed version checking (#3219) 2021-04-27 11:37:12 +03:00
Ismaël Mejía 08dd8f3a6a [all os] Updated maven from 3.6.3 to 3.8.1 (#3247) 2021-04-26 14:48:47 +03:00
github-actions[bot] 1cfd480416 Updating readme file for macOS-11.0 version 20210424.1 (#3261)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-04-26 10:12:58 +00:00
Mikhail Timofeev cd4ecad2e6 [Windows] Install vsix extensions using CDN endpoint (#3244)
* Install extensions for VS19

* Get vsix packages name in runtime

* add a bit of debug

* Get extension id from the marketplace uri

* Add extension name

* skip vcredist installation

* Add Get-VsixExtenstionFromMarketplace to ImageHelpers.psm1

* Fix DownloadUri name in the function

* DownloadUri in lower case

* Add packages to the readme

* Add a condition to software report

* fix spelling in function

* Simplify toolset + get rid of backticks
2021-04-23 19:38:43 +03:00
Mikhail Timofeev 5690645f0e Add --no-progress flag to choco install (#3238) 2021-04-22 18:38:35 +03:00
github-actions[bot] f2852367e5 Updating readme file for macOS-10.15 version 20210419.2 (#3217)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-22 11:05:27 +00:00
github-actions[bot] 6475fd06d5 Updating readme file for win19 version 20210419.1 (#3215)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-22 10:34:32 +00:00
github-actions[bot] fd4350f27c Updating readme file for win16 version 20210419.1 (#3216)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-22 10:02:28 +00:00
github-actions[bot] 6752ddb1f4 Updating readme file for ubuntu20 version 20210419.1 (#3213)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-22 09:05:26 +00:00
github-actions[bot] 5472e84506 Updating readme file for ubuntu18 version 20210419.1 (#3211)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-22 08:50:07 +00:00
github-actions[bot] d6fd680a3a Updating readme file for ubuntu16 version 20210419.1 (#3212)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-22 08:43:08 +00:00
Mikhail Timofeev e662b19a30 Install vcredist 2010 for windows 2010 from direct links (#3230) 2021-04-22 09:54:12 +03:00
Dibir Magomedsaygitov 19537cbf0b [Ubuntu] Fix GRADLE_HOME environment variable (#3225)
* fix gradle_home env var

* add gradle test and minor rework

* debug
2021-04-21 18:20:20 +03:00
github-actions[bot] 4440cbd3f3 Updating readme file for macOS-11.0 version 20210420.1 (#3222)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-04-21 09:04:29 +00:00
Mikhail Timofeev 4417214480 [macOS] Add MSBuild to docs (#3214) 2021-04-20 11:24:51 +03:00
Aleksandr Chebotov 83f2d79254 [macOS] suppress pipefail pgrep exit code (#3208) 2021-04-19 17:18:32 +03:00
Mikhail Timofeev a06f07dfb4 [Ubuntu] Add msbuild to software report (#3210) 2021-04-19 16:17:48 +03:00
github-actions[bot] 98743bcf9c Updating readme file for macOS-11.0 version 20210418.1 (#3207)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-04-19 11:55:05 +00:00
Maxim Lobanov 5657dde4a0 Update PyPy to 7.3.4 on Windows (change platform format) (#3189)
* Update PyPy to 7.3.4 on Windows (change platform format)

* Update SoftwareReport.CachedTools.psm1

* Update Install-PyPy.ps1

* Update SoftwareReport.CachedTools.psm1
2021-04-19 10:15:26 +03:00
Aleksandr Chebotov 4a2e5bca16 [ubuntu] Remove google-cloud-sdk repo (#3199) 2021-04-16 19:24:24 +03:00
Alena Sviridenko 0c6c332678 [macOS] Create VM_ASSETS environment variable (#3190) 2021-04-16 00:04:17 +03:00
github-actions[bot] ae60820a20 Updating readme file for ubuntu20 version 20210412.1 (#3154)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-15 12:38:05 +00:00
github-actions[bot] 08a251f604 Updating readme file for ubuntu18 version 20210412.1 (#3153)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-15 12:31:22 +00:00
github-actions[bot] 8de2ab49f9 Updating readme file for ubuntu16 version 20210412.1 (#3155)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-15 12:29:47 +00:00
Darii Nurgaleev 4ae0bde840 Image generation fix: remove quote (#3191)
* github_feed_token removal

* remove file

* GithubFeedToken remove from other files

* remove boost from docs

* added fix for img generation
2021-04-15 14:59:28 +03:00
Darii Nurgaleev 575108f5a1 Remove GithubFeedToken build parameter (#3184) 2021-04-15 13:05:57 +03:00
github-actions[bot] 94fc8cc0ba Updating readme file for macOS-10.14 version 20210413.1 (#3187)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-15 09:47:37 +00:00
Aleksandr Chebotov 24f91060ac Remove google chrome repo on Ubuntu (#3188) 2021-04-15 12:04:19 +03:00
github-actions[bot] 0d88bc14e5 Updating readme file for macOS-10.13 version 20210413.1 (#3179)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-15 07:43:11 +00:00
github-actions[bot] 682af81871 Updating readme file for win16 version 20210411.1 (#3157)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-14 19:08:18 +00:00
github-actions[bot] 40ef7b1ba3 Updating readme file for macOS-10.15 version 20210412.2 (#3169)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-14 16:36:53 +00:00
Aleksandr Chebotov b04de88f6e [Ubuntu] Install zstd homebrew (#3181)
* install zstd using brew

* fix typo

* remove Run-Command

* replace to Take-OutputPart

* create zstd symlinks
2021-04-14 19:34:49 +03:00
github-actions[bot] 16fd521369 Updating readme file for win19 version 20210411.1 (#3156)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-14 15:36:18 +00:00
Mikhail Timofeev 579dea7415 Add swiftformat for all macOS versions except HS (#3170) 2021-04-14 10:22:41 +03:00
Mikhail Timofeev 51d9ece7fe [macOS 10.13] Change Go in the toolset to 1.15 (#3178) 2021-04-14 10:21:40 +03:00
Mikhail Timofeev 274bb65073 [ubuntu] Add node14 & node14-alpine docker images (#3171) 2021-04-13 19:04:04 +03:00
Alena Sviridenko b7520207f7 Document OS and software support strategy for virtual-environments (#3127) 2021-04-13 17:32:58 +03:00
Aleksandr Chebotov 487339fb77 [ubuntu] provide package name (#3172) 2021-04-13 17:13:46 +03:00
github-actions[bot] f3ffc1d9f3 Updating readme file for macOS-11.0 version 20210412.3 (#3168)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-04-13 12:57:02 +00:00
Vladimir Safonkin 2eab75337b [macOS] Remove gradle test (#3163) 2021-04-12 17:58:58 +03:00
Sergey Dolin 98070a66fc [ubuntu] Rework bazel installation to avoid using apt repos (#3088) 2021-04-12 11:31:34 +03:00
Marinus Pfund 59997be01a Add retry to Install-RootCA.ps1 generateSSTFromWU (#3018)
* Update Install-RootCA.ps1

added retry behaviour to certutil.exe -generateSSTFromWU

* Update Install-RootCA.ps1

removed multi line

* fixed pr comments in Install-RootCA.ps1

fixed PR comments
2021-04-12 10:50:39 +03:00
Mikhail Timofeev c58b0cfbfd Remove user-wide dotnet config (#3144) 2021-04-09 19:07:59 +03:00
Mikhail Timofeev 4006fabbdd Add option only-show-errors (#3142) 2021-04-09 16:53:57 +03:00
Mikhail Timofeev 3ab55ea5da Add stream redirection to hide log output (#3141) 2021-04-09 16:22:52 +03:00
Nikita Bykov acdde71580 [Ubuntu] Fix Chromium installation (#3136)
* fix chromium installation

* fix chromium

* added symlink

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-04-09 14:50:48 +03:00
Mikhail Timofeev bfd58535c2 Add cleanup logic for the packer os disk (#3140) 2021-04-09 14:27:14 +03:00
Dibir Magomedsaygitov d1de678b65 [Ubuntu] Rework Git installation to avoid using apt repo (#3095)
* rework git installation

* simplify git installation

* minor fix

* document source repo's

* small fix

* debug
2021-04-09 11:57:40 +03:00
Sergey Dolin fbcc41275b [ubuntu] Update the cached Docker images (#3099) 2021-04-09 11:04:52 +03:00
Sergey Dolin 980d197a7a [windows] Replace the microsoft/aspnetcore-build Docker image with mcr.microsoft.com/dotnet/framework/sdk (#3101) 2021-04-09 11:04:31 +03:00
Mikhail Timofeev 94a1c2770c [macOS] Avoid creating symlinks for PyPy 7.3.4 (#3135) 2021-04-09 11:04:11 +03:00
github-actions[bot] bf22901ec6 Updating readme file for win16 version 20210404.2 (#3109)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 23:30:08 +00:00
github-actions[bot] afed2f5b3a Updating readme file for win19 version 20210404.2 (#3110)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 23:30:06 +00:00
Aleksandr Chebotov eecc7b86eb [macOS] Upgrade az powershell module from 4.8.0 to 5.7.0 (#3132)
* update az 4.8.0 -> 5.7.0

* revert HS
2021-04-08 21:01:52 +03:00
Mikhail Timofeev 1c76e14336 [Windows] Upgrade az powershell module from 5.5.0 to 5.7.0 (#3128)
* Change Az from 5.5.0 to 5.7.0

* Remove 4.6.0, add 5.5.0 to zip
2021-04-08 21:00:50 +03:00
Mikhail Timofeev e8f899d57c Don't create symlinks for PyPy 7.3.4 (#3134) 2021-04-08 20:10:40 +03:00
github-actions[bot] 0da5da7f57 Ubuntu 2004 (20210405 update) (#3093)
* Updating readme file for ubuntu20 version 20210405.1

* fixed packer version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 16:12:24 +00:00
github-actions[bot] cff32c9efe macOS 10.15 (20210404 update) (#3097)
* Updating readme file for macOS-10.15 version 20210404.1

* updated packer version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 14:09:34 +00:00
github-actions[bot] 76e1f282a1 Ubuntu 1604 (20210405 update) (#3092)
* Updating readme file for ubuntu16 version 20210405.1

* fixed packer version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 11:44:57 +00:00
github-actions[bot] 66088ce577 Ubuntu 1804 (20210405 update) (#3094)
* Updating readme file for ubuntu18 version 20210405.1

* Update Ubuntu1804-README.md

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 11:41:35 +00:00
github-actions[bot] 5ee9fb397b macOS 10.14 (20210405 update) (#3115)
* Updating readme file for macOS-10.14 version 20210405.1

* fixed packer version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-08 11:37:52 +00:00
Dibir Magomedsaygitov 21b8cadc2c [Ubuntu] Remove apt source for podman, buildah and skopeo (#3077)
* remove apt source list

* debug

* document source repo and fix installation

* small fix
2021-04-08 14:13:21 +03:00
Nikita Bykov 6858b9232d [macOS] Rework Xamarin documentation (#3113)
* reworked xamarin documentation

* added condition for defaultSymlink variable

* removed sorting of xamarin bundles

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-04-08 12:55:47 +03:00
Mikhail Timofeev ed0a37f3ab [Ubuntu] Change az 5.5.0 to 5.7.0 (#3126) 2021-04-08 10:50:50 +03:00
Dmitry Shibanov 37a897095f add permissions for /usr/lib/jvm (#3105) 2021-04-08 10:43:59 +03:00
Vladimir Safonkin f29cc02bef [Ubuntu] Remove apt sources for Postgresql, Mongodb, Heroku (#3091) 2021-04-07 13:57:35 +03:00
Darii Nurgaleev 1a3945d52c Update documentation for post-deployment scripts. (#3070) 2021-04-06 16:22:28 +03:00
Mikhail Timofeev 6ede984b96 [windows] Fix output for packer 1.7.1 (#3104) 2021-04-06 05:06:39 +03:00
Aleksandr Chebotov 0d102a98d4 add sshpass packages (#3103) 2021-04-05 20:27:14 +03:00
Mikhail Timofeev 210e9558ae [macOS] Fix output for packer 1.7.1 (#3100) 2021-04-05 18:41:57 +03:00
Mikhail Timofeev 0c440c82ca [ubuntu] Fix packer output for version 1.7.1 (#3098) 2021-04-05 17:09:48 +03:00
github-actions[bot] 0c064d0bdb macOS 11.0 (20210404 update) (#3096)
* Updating readme file for macOS-11.0 version 20210404.2

* fixed packer version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
2021-04-05 11:48:21 +00:00
github-actions[bot] 961495b5c7 Updating readme file for win19 version 20210330.2 (#3072)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-05 06:09:49 +00:00
Nikita Bykov b7f276c003 [Ubuntu] Rework Сhromium installation to avoid using snap (#3029)
* rework chromium installation

* added GetChromiumRevision function

* changed getting chrome version

* fixed GetChromiumRevision function

* fixed CHROME_VERSION variable

* move chromium installation to google-chrome.sh

* added -qq for unzip

* added comments to GetChromiumRevision function

* updated tests and sofware report

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-04-02 19:21:33 +03:00
Aleksandr Chebotov be27ebfdb3 [ubuntu] replace wget to download_with_retries helper (#3087) 2021-04-02 18:47:50 +03:00
Aleksandr Chebotov 0917a07677 [windows] set ascii encoding (#3086) 2021-04-02 17:53:08 +03:00
Mikhail Timofeev 3195add3cd [Ubuntu] Add clang-format to the readme (#3081)
* Add clang-format to the readme

* Create a function to retrieve clang tool versions

* Add ClangFormatVersions to software report

* Add new line

* Resolve nitpicks
2021-04-02 14:38:54 +03:00
Aleksandr Chebotov 8472c0699b Remove warmup deprecation for Ubuntu images (#3076) 2021-04-02 11:17:15 +03:00
github-actions[bot] b3c93d65df Updating readme file for win16 version 20210329.1 (#3059)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-02 06:09:23 +00:00
github-actions[bot] 92c9e67b9f Updating readme file for ubuntu20 version 20210330.1 (#3057)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-01 14:37:59 +00:00
github-actions[bot] 9e644fc21a Updating readme file for macOS-10.15 version 20210327.1 (#3051)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-01 13:44:08 +00:00
Aleksandr Chebotov cd5930b52b [ubuntu] suppress tar verbose messages (#3075) 2021-04-01 15:15:59 +03:00
github-actions[bot] 18062f1b88 Updating readme file for ubuntu16 version 20210327.1 (#3044)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-01 09:19:09 +00:00
github-actions[bot] 475453f212 Updating readme file for ubuntu18 version 20210330.1 (#3056)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-04-01 09:04:35 +00:00
Mikhail Timofeev a687c4c753 Add python-setuptools to Ubuntu16 & 18 toolset files (#3071) 2021-03-31 19:25:32 +03:00
Vladimir Safonkin 1436b723d5 Remove duplicates from Ubuntu docs (#3066) 2021-03-31 19:16:44 +03:00
Aleksandr Chebotov 05fc867e8a Suppress unzip logs in Ubuntu image generation (#3068) 2021-03-31 16:07:25 +03:00
Mikhail Timofeev 1572c20af1 [Ubuntu] Move Az modules to the PowerShell Tools section (#3067)
* Move az section

* Add new line between pwsh and az modules
2021-03-31 15:50:39 +03:00
hackercat be806579bb [Ubuntu] Fix Erlang version in software report
SoftwareReport collects wrong version for Erlang, it reports Eshell
version rather than Erlang itself.
reference: https://stackoverflow.com/questions/9560815/how-to-get-erlangs-release-version-number-from-a-shell
2nd answer

`erl` doesn't have `-v` flag, only `-version`
`erlc` `-v` flag is for verbose output
`rebar3` reports it's version with flag `-v`
Change `erl -v` to `erl -version` as it gets stuck in certain scenarios
like using Docker as packer builder.
reference: http://erlang.org/doc/man/erl.html
2021-03-31 12:38:11 +03:00
Aleksandr Chebotov 726ef281c7 [ubuntu] disable verbose (#3063) 2021-03-31 10:46:42 +03:00
Dmitry Shibanov b00dbe1036 install yarn from npm (#3037) 2021-03-31 10:33:46 +03:00
Aleksandr Chebotov 7d7b362d79 [Ubuntu] suppress unzip messages in aws.sh script (#3055)
* suppress unzip messages

* remove sudo

* add /tmp
2021-03-31 09:51:27 +03:00
Aleksandr Chebotov a533011008 use download_with_retries (#3054) 2021-03-30 15:23:57 +03:00
Aleksandr Chebotov 21f63fd579 Install Chrome without apt source (#3036) 2021-03-30 10:17:56 +03:00
Dibir Magomedsaygitov 826fed9604 sort java versions (#3045) 2021-03-29 19:19:52 +03:00
github-actions[bot] b08f5f471b Updating readme file for macOS-11.0 version 20210328.1 (#3046)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-29 14:55:26 +00:00
Aleksandr Chebotov 6ac1661557 [Ubuntu] inject ansible pkg (#3047)
* inject ansible pkg

* fix comment

* fix comment
2021-03-29 16:29:12 +03:00
Kévin Dunglas 6747127d83 [ubuntu] add emoji support in Chrome (#2699)
* fix: emoji support in Chrome on Ubuntu

* move package to toolset
2021-03-29 15:46:21 +03:00
Dibir Magomedsaygitov 48f3c3e9b7 [Ubuntu] Move preinstalled Java distributions to the toolcache directory (#2915)
* move preinstalled java to toolcache

* rework installation and fix software report
2021-03-27 10:51:50 +03:00
Dmitry Shibanov 60459a5b04 add replace from '+' to '-' (#3027) 2021-03-27 10:51:01 +03:00
Mikhail Timofeev b56d115a16 [Windows] Replace '+' to '-' in java path (#3028)
* Replace + to - in Java path

* Fix comment

* fix vendor name in software report
2021-03-27 10:50:50 +03:00
Mikhail Timofeev dd506183e2 [Ubuntu] Set user-related environmental variables and PATH via post deployment script (#3030)
* Move home directory vars to post-deploy scripts

* Remove "export" word

* Move home directory vars to post-deploy scripts

* Remove "export" word

* add variables via post-deployment file

* remove quotes around PATH

* remove quotes

* Replace $HOME in /etc/environment in post-deployment script

* rename variable

* get rid of extra variable
2021-03-26 18:33:51 +03:00
Aleksandr Chebotov a769b06872 Switch Azure CLI installation to GitHub Releases (#3035) 2021-03-26 18:21:42 +03:00
Amruta Kawade f6f2e3681e [Windows] Az Modules Size Reduction On Image (#2827)
* [Windows] Az Modules Size Reduction On Image

* Addressing review comments

* Downloading azure and azurerm from blob storage
2021-03-26 18:21:12 +03:00
Aleksandr Chebotov 4c606d887d [Ubuntu] get julia version from julialang.org (#3025)
* get version from julialang.org

* add helpers

* add curl flag -L
2021-03-26 13:13:29 +03:00
Mikhail Timofeev 54fa1d6658 Remove versions less than 9 from toolsets (#3023) 2021-03-26 08:28:54 +03:00
hackercat abbad83bb1 feat: Return apt packages with their installed versions (#2939) 2021-03-26 08:28:15 +03:00
Sergey Dolin 6168b56552 Apply fix from https://github.com/github/super-linter/issues/1397 (#3024) 2021-03-25 12:55:24 +03:00
Aleksandr Chebotov 436d9baa95 [Ubuntu] use pipx to install ansible (#3015)
* use pipx to install ansible

* update info
2021-03-25 12:40:36 +03:00
hackercat ecfee9c8ec Remove Clang 11 dependencies (#3007) 2021-03-25 11:05:08 +03:00
Amruta Kawade 5545084098 [Linux] Az Modules Size Reduction On Image (#2828)
* [Linux] Az Modules Size Reduction On Image

* addressing review comments

* addressing review comments

* Addressing review comments
2021-03-25 09:34:25 +03:00
github-actions[bot] ff9f3f0a8b Updating readme file for ubuntu20 version 20210318.0 (#2989)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-24 10:06:33 +00:00
github-actions[bot] 46df370461 Updating readme file for ubuntu16 version 20210318.0 (#2990)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-24 09:53:05 +00:00
github-actions[bot] 37f0d72bbe Updating readme file for ubuntu18 version 20210318.0 (#2991)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-24 09:51:05 +00:00
Aleksandr Chebotov dee50eebff add acl package to Ubuntu 20 (#3006) 2021-03-23 10:48:35 +03:00
github-actions[bot] b345f38fbe Updating readme file for macOS-11.0 version 20210321.1 (#3000)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-22 12:49:17 +00:00
github-actions[bot] faee73e79a Updating readme file for win19 version 20210316.1 (#2948)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-22 12:19:36 +00:00
Sergey Dolin 33b6bbe946 Update Ubuntu documentation to include mono web-server (#2892)
* Update Ubuntu documentation to include mono web-server

* apply to Ubuntu 20.04 only
2021-03-22 12:04:21 +03:00
Mikhail Timofeev f178f0ec83 [Ubuntu] Install sbt from gh releases (#2983)
* Change sbt installation method to gh releases

* add source install.sh
2021-03-19 15:20:27 +03:00
Mikhail Timofeev e1ddcff2f0 Add openssl to software readme (#2984) 2021-03-19 13:43:48 +03:00
github-actions[bot] f201ae012b Updating readme file for ubuntu20 version 20210315.1 (#2930)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-19 08:47:56 +00:00
Mikhail Timofeev 593aa6b100 Revert $BASH_ENV (#2982) 2021-03-18 21:58:04 +03:00
Dibir Magomedsaygitov 8a34f3c527 software updates week 12 (#2970) 2021-03-18 16:22:44 +03:00
github-actions[bot] 21d68f342f Updating readme file for ubuntu16 version 20210317.1 (#2955)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-18 12:52:57 +00:00
github-actions[bot] 46e5d502a6 Updating readme file for ubuntu18 version 20210315.1 (#2931)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-18 12:16:19 +00:00
Arjun Madan 57d8f5e0ed Update the ubuntu-latest tag to point to 20.04 (#2852) 2021-03-18 10:59:31 +03:00
Mikhail Timofeev 5a68fb9658 fix variable name (#2964) 2021-03-18 09:42:04 +03:00
Mikhail Timofeev fa7347b7a0 Change approach to get the version from manifest (#2966) 2021-03-18 09:41:47 +03:00
Mikhail Timofeev e9fc3366a5 Deprecate jekyll/builder and node8-typescript (#2965) 2021-03-18 09:41:18 +03:00
Mikhail Timofeev 4847468235 Add Linux kernel version to software report (#2959) 2021-03-18 09:41:01 +03:00
github-actions[bot] 1dc087be2e Updating readme file for macOS-10.15 version 20210314.1 (#2937)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-17 19:34:35 +00:00
github-actions[bot] 8c431db884 Updating readme file for win16 version 20210309.0 (#2909)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-17 16:26:40 +00:00
Patrick C b04c65a83c Update name for oc cli to OpenShift CLI (#2949) 2021-03-17 10:54:05 +03:00
Mikhail Timofeev 0cf21e4512 [Windows] Move preinstalled java distributions to the toolcache directory (#2903)
* Move installation to toolcache folder

* Change Set-JavaPath function

* remove old java report function

* Change report function to output full semver

* small improvments

* nitpicks + remove java root path

* Adoptium -> Adopt
2021-03-16 17:16:16 +03:00
Nikita Bykov ef6e8c905f [MacOS] Move preinstalled java distributions to the toolcache directory (#2883)
* Move java to the toolcache

* resolved comments

* added sudo for ln command

* fixed versions and added symlink

* fixed openjdk.sh

* fixed typo

* updated SoftwareReport

* fixed SoftwareReport

* fixed SoftwareReport

* fixed tool name

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-03-16 17:13:54 +03:00
Aleksandr Chebotov 758e6ef267 add lerna version (#2914) 2021-03-15 21:05:15 +03:00
github-actions[bot] 671348b620 Updating readme file for ubuntu20 version 20210309.1 (#2887)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-15 14:47:34 +00:00
github-actions[bot] dc404cb968 Updating readme file for ubuntu18 version 20210309.1 (#2891)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-15 14:32:08 +00:00
github-actions[bot] e91d69a3fa Updating readme file for win19 version 20210309.0 (#2895)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-15 14:26:07 +00:00
Aleksandr Chebotov 11437f2e63 set minimumFreeSpaceMB=15000 (#2934) 2021-03-15 15:33:50 +03:00
Aleksandr Chebotov 51a9c11e33 Add support for latest zstd (#2927) 2021-03-15 15:26:01 +03:00
github-actions[bot] d6cc9d0e40 Updating readme file for ubuntu16 version 20210309.1 (#2886)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-15 12:07:06 +00:00
github-actions[bot] dbd857624a Updating readme file for macOS-11.0 version 20210314.1 (#2929)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-03-15 11:41:55 +00:00
Aleksandr Chebotov d285d2f7d3 add ACCEPT_EULA=Y env var (#2908) 2021-03-15 11:17:57 +03:00
Aleksandr Chebotov 2f03a07621 [Windows] Update zstd to 1.4.9 (#2899)
* install from GitHub releases

* rename zstd folder

* change wildcard

* cut messages
2021-03-12 14:28:18 +03:00
Darii Nurgaleev 24abe31369 [macOS] Software updates week 11 (#2900)
* [macOS] Fail Pester tests on error

* return it back

* software update week 11

* 6.12.7 bundle default
2021-03-12 10:41:21 +03:00
Aleksandr Chebotov d575d1bcc5 set kern.maxfilesperproc=65536 (#2901) 2021-03-12 09:36:35 +03:00
github-actions[bot] cb8c37dc0a Updating readme file for macOS-10.15 version 20210307.1 (#2879)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-11 13:05:26 +00:00
github-actions[bot] 0d92dbb3bc Updating readme file for macOS-10.14 version 20210308.1 (#2884)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-11 13:02:36 +00:00
Daniel 160f5bedb0 Allow authentication of resource generator script via service principal (#2622)
* Allow authentication of resource generator script via service principal

* Re-use the given service principal in case of parametric authentication

* Updated variable names

* Renamed parameter and variable from AzureTenant to AzureTenantId

* Added Azure DevOps pipeline to build an agent

* Added link to azure pipeline to instructions

* Fixed typo in link

* Removed unnecessary / double brackets

* Untangled credential instantiation to make it more readable

* Removed example yaml file

* Removed unnecessary variable assignment
2021-03-10 23:21:35 +03:00
Maxim Lobanov 971ee7d2a7 Merge pull request #2851 from dmitryikh/add-clang-11-to-ubuntu-latest
[Ubuntu] add clang-11
2021-03-10 09:14:14 +03:00
github-actions[bot] 2c6eab40b5 Updating readme file for ubuntu18 version 20210302.0 (#2814)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-09 20:41:14 +00:00
github-actions[bot] 639fcca9e6 Updating readme file for macOS-11.0 version 20210308.1 (#2880)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-03-09 10:36:08 +00:00
Mikhail Timofeev 8cdcef0d00 Initialize ChocolateyToolsLocation variable and fix tests (#2874) 2021-03-08 22:43:58 +03:00
Dmitry Khominich 1cfb9a989f [Ubuntu] add clang-11 2021-03-05 16:44:12 +02:00
github-actions[bot] 5ad9793f29 Updating readme file for macOS-10.15 version 20210302.1 (#2833)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-05 08:29:42 +00:00
Mikhail Timofeev c6ba1f00df remove boost from windows images (#2843) 2021-03-05 10:22:59 +03:00
Mikhail Timofeev adcbf9592c remove boost from ubuntu images (#2844) 2021-03-05 10:22:42 +03:00
github-actions[bot] 6ec7e94c45 Updating readme file for ubuntu20 version 20210302.0 (#2815)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-04 17:02:34 +00:00
Aleksandr Chebotov 40f571a753 [Ubuntu] Add net-tools (#2838)
* add net-tools

* fix output
2021-03-04 18:30:40 +03:00
Shivam Mathur 8a17c5ea71 [Ubuntu] Fix PHP extensions (#2834) 2021-03-04 17:06:34 +03:00
github-actions[bot] b0e4215cfa Updating readme file for ubuntu16 version 20210302.0 (#2813)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-04 10:10:45 +00:00
Mikhail Timofeev e7e66bec69 [Ubuntu] Add a file with global user-related variables and point BASH_ENV variable to it (#2826)
* Add global vars to profile.d

* set BASH_ENV var

* fix comment

* remove extra quotes
2021-03-03 17:45:01 +03:00
github-actions[bot] ff72158a2a Updating readme file for macOS-11.0 version 20210302.1 (#2824)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-03-03 09:17:10 +00:00
github-actions[bot] f534484ccc Updating readme file for win16 version 20210219.1 (#2769)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-01 14:34:18 +00:00
github-actions[bot] 56674f9e57 Updating readme file for win19 version 20210219.1 (#2768)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-03-01 10:52:07 +00:00
Mikhail Timofeev 7aabb126ab Revert "[windows] add ip substitution to update-dockerimages (#2611)" (#2805)
This reverts commit aa0de6b9cc.
2021-03-01 10:57:28 +03:00
Mikhail Timofeev 7cb767267a add all Go symlinks (#2798) 2021-02-28 10:36:00 +03:00
Mikhail Timofeev 9378641fb4 [macOS] Stick to go 1.15 (#2795) 2021-02-27 11:45:49 +03:00
Sergey Dolin 12ba306121 [ubuntu] Add lerna (#2763)
* Add lerna to linux images

* Add a comment about netlify-cli

* remove Node.js tests from Tools.Tests.ps1

* fix tabs

* revert empty lines

* fix code style
2021-02-26 18:06:24 +03:00
github-actions[bot] 238c623def Updating readme file for macOS-10.15 version 20210220.1 (#2773)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-26 06:39:56 +00:00
Mikhail Timofeev d7cbdff57e [macOS] Software updates Week 9 (#2786) 2021-02-25 16:29:15 +03:00
Dibir Magomedsaygitov fdea69d18f add link to image release (#2783) 2021-02-25 14:22:57 +03:00
Vladimir Safonkin d707864e45 [ubuntu, macos] Remove dotnet 3.0 (#2782) 2021-02-24 19:34:54 +03:00
Aleksandr Chebotov 09ea8edb54 change GDIProcessHandleQuota to 20000 (#2780) 2021-02-24 18:48:49 +03:00
Mikhail Timofeev 5afe6fcc4e [Ubuntu] Remove azcopy 7 (#2779)
* remove azcopy 7 installation

* Fix software report generator

* fix variable name

* add install helper
2021-02-24 18:21:51 +03:00
Mikhail Timofeev 5bf71738f0 Start platform and build tools with version 23 (#2781) 2021-02-24 16:55:49 +03:00
github-actions[bot] 13fbc5337e Ubuntu 2004 (20210219 update) (#2764)
* Updating readme file for ubuntu20 version 20210219.1

* fixed PyPy version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-24 11:37:22 +00:00
Sergey Dolin 60b01b3d30 [windows] remove GOROOT (#2710) 2021-02-24 12:47:16 +03:00
Sergey Dolin 6fb455bd33 [ubuntu] Remove GOROOT (#2668) 2021-02-24 12:46:40 +03:00
github-actions[bot] bc981f3aab Updating readme file for ubuntu16 version 20210219.1 (#2765)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-24 09:42:12 +00:00
github-actions[bot] 3cfeb58d24 Updating readme file for ubuntu18 version 20210219.1 (#2766)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-24 08:27:14 +00:00
Mikhail Timofeev e773a0c743 [macOS] Improve select-datastore script rev2 (#2772)
* select last one

* Fix comment

* Change logic

* change name

* fix comment
2021-02-20 16:34:08 +03:00
Mikhail Timofeev 990889bcf0 [macOS] Improve select-datastore script (#2771)
* select last one

* Fix comment
2021-02-20 15:40:18 +03:00
Mikhail Timofeev b42272d743 [ubuntu] Change PyPy pattern (#2767) 2021-02-20 14:24:39 +03:00
Sergey Dolin d0e2b96b20 Remove PyPy symlink workaround from Windows images (#2744) 2021-02-20 11:51:32 +03:00
github-actions[bot] 0c6a730e34 Updating readme file for macOS-11.0 version 20210219.1 (#2762)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-02-20 08:02:58 +00:00
Leonid Lapshin a871273c9d Added Go 1.16 to all OSes toolsets (#2730)
* added Go 1.16 to all OSes toolsets

* removed Go 1.16 from Ubuntu 16 and 18 due to image capacity

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-02-19 21:34:08 +03:00
Aleksandr Chebotov ee314d4c78 [windows] Fix tests, remove cmake 3.6 (#2758) 2021-02-19 21:27:58 +03:00
Leonid Lapshin 2a0829d7e5 [macOS] Software updates week 8 2021 (#2749) 2021-02-19 21:26:22 +03:00
Mikhail Timofeev c4d66c8dc7 [Ubuntu] Add Fastlane (#2751) 2021-02-19 18:33:28 +03:00
Mikhail Timofeev d76f3274f8 [macOS] Fix Android tests to work with platform version S and remove Cmake 3.6 (#2757)
* Fix tests, move cmake to toolset

* add -L to curl
2021-02-19 14:52:13 +03:00
Mikhail Timofeev 18effcdd26 [Ubuntu] Fix Android tests to work with platform version S and remove Cmake 3.6 (#2755)
* fix tests

* get rid of build-tools letter list

* Remove Cmake 3.6, fix platforms test
2021-02-19 14:18:13 +03:00
Nikita Bykov 2c96d280ed [Ubuntu] Rework haskell.sh to install Cabal using GHCup (#2636)
* reworked haskell installation

* added comment

* resolved comments and added symlink

* fixed haskell.sh

* update haskell.sh

* update installation

* added error suppressing

* reverted ghc intallation

* added comments

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-02-19 10:20:15 +03:00
Dibir Magomedsaygitov c881c3cab7 precache pypy 3.7 (#2737) 2021-02-19 10:19:11 +03:00
Dibir Magomedsaygitov 8916d17640 [macOS] Precache PyPy 3.7 (#2738)
* precache pypy 3.7

* remove pypy 3.7 from hs and mojave
2021-02-19 10:19:00 +03:00
Dibir Magomedsaygitov a0e569de87 [Ubuntu] Precache PyPy 3.7 (#2739)
* precache pypy 3.7

* small change
2021-02-19 10:17:51 +03:00
github-actions[bot] f0567bd9d9 Updating readme file for ubuntu20 version 20210216.1 (#2722)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-18 14:25:18 +00:00
Leonid Lapshin 9475d31219 added az 5.5.0 (#2745)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-02-18 17:11:23 +03:00
Alena Sviridenko 6bfde5f8b7 turn off macOS 10.13 scheduled builds (#2752) 2021-02-18 16:54:10 +03:00
github-actions[bot] e1e64dd300 Updating readme file for ubuntu18 version 20210211.1 (#2720)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-18 12:43:59 +00:00
Dmitry Shibanov 25efb10e32 Parallel installation of Xcode (#2432)
* parallel xcode installation

* resolve comments

* fix changes

* resolve comments and change ErrorActionPreference

* return imports

* switch ErrorActionPreference to Stop

* add log for threadCount

* add errorAction

* use new approach for warning

* change to bash -c

* change approach to install xcodes through to parallel foreach

* use & bash -c "command"

* mv upper ErrorActionPreference and work on logs

* mv $env:SPACESHIP_SKIP_2FA_UPGRADE = 1

* change process count to 5

* Invoke-XCVersion add out-host
2021-02-18 15:08:41 +03:00
github-actions[bot] 6ca717465d Updating readme file for ubuntu16 version 20210216.1 (#2723)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-18 10:33:09 +00:00
Mikhail Timofeev ae358d64c7 Revert "[windows, ubuntu] v2 gen sizes (#2736)" (#2747) 2021-02-18 10:52:09 +03:00
Aleksandr Chebotov 1ef3339658 [Ubuntu] Do not import Az.Account module on Ubuntu 18.04 (#2729)
* do not install dbus-user-session on Ubuntu 18.04

* update test for Ubuntu 18.04

* revert changes

* do not import Az.Accounts module

* remove space

* update PowerShell test
2021-02-18 09:03:13 +03:00
github-actions[bot] 46db8100ba Updating readme file for macOS-10.15 version 20210213.1 (#2717)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-17 18:20:02 +00:00
Tachibana waita 89d486e776 [Ubuntu] Updating release file pattern for Kitware/CMake (#2731) 2021-02-17 21:04:50 +03:00
github-actions[bot] c48746869b Updating readme file for macOS-11.0 version 20210216.3 (#2734)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-17 16:15:40 +00:00
Mikhail Timofeev 676f565d7b [windows, ubuntu] v2 gen sizes (#2736) 2021-02-17 16:50:40 +03:00
Andy Mishechkin f889dd8d68 Helper function for execution of xcversion with more than one attempt. (#2700)
* Invoke-XCVersion function has been created

* PR Comments resolving

* $result.Output | ForEach-Object { Write-Host $_ } has been added

* $PauseDuration -> $PauseDurationSecs

* Fixing the attempt indexing
2021-02-17 11:03:31 +03:00
github-actions[bot] 97ca8d937c Updating readme file for win19 version 20210211.1 (#2694)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-16 16:12:15 +00:00
github-actions[bot] 5fe75fb796 Updating readme file for win16 version 20210209.1 (#2695)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-16 10:54:08 +00:00
Dmitry Shibanov 20156708d5 [macOS] Remove nvm aliases and old node versions. (#2687)
* remove aliases and old node versions.

* resolve comments

* fix tests
2021-02-16 12:42:01 +03:00
Sergey Dolin 36d6d588c1 remove M2_HOME from windows images (#2711) 2021-02-16 11:08:50 +03:00
Maxim Lobanov 337ff74101 Sort docker images by name in documentation (#2716)
Sort docker images by name in documentation
2021-02-16 09:56:14 +03:00
Aleksandr Chebotov c87b27a593 install latest version of cmake (#2714) 2021-02-15 19:18:13 +03:00
Mikhail Timofeev 570a0bfc1e [ubuntu] move section, remove extra lines (#2713) 2021-02-15 17:32:05 +03:00
Dibir Magomedsaygitov 06559cab21 [Ubuntu] Install the latest two versions of GHC (#2696)
* install two ghc versions

* fix comments
2021-02-13 09:22:36 +03:00
Sergey Dolin 77b21e0c24 Document environment variables of linux images (#2498)
* Document environment variables of linux images

* Change adnroid variables

* Apply reviews

* Remove some variables, fix headers

* Show link targets

* rename helper

* remove symlinks

* More links

* Dynamic GO variables

* Architecture for  GO variables

* remove GOROOT
2021-02-12 10:30:36 +03:00
github-actions[bot] d49a011d9c Updating readme file for macOS-10.15 version 20210207.2 (#2652)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-11 18:55:15 +00:00
Dibir Magomedsaygitov 99be0316c6 [macOS] Software updates week 7 2021 (#2684)
* software updates week7

* add bundles

* change default bundle

* change default bundle for bigsur
2021-02-11 20:03:05 +03:00
github-actions[bot] b7af5dfaa0 Updating readme file for ubuntu16 version 20210208.0 (#2663)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-11 16:49:08 +00:00
github-actions[bot] 0df5ca37fc Updating readme file for ubuntu18 version 20210208.0 (#2662)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-11 13:12:47 +00:00
github-actions[bot] 335fe7bb8c Updating readme file for ubuntu20 version 20210208.0 (#2664)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-11 13:06:29 +00:00
Sergey Dolin 6654c477db Remove M2_HOME from linux images (#2561) 2021-02-11 12:25:59 +03:00
Dmitry Shibanov 9cfc0955b2 restrict creation of blank issues (#2674) 2021-02-10 20:38:17 +03:00
github-actions[bot] 41ca38370d Updating readme file for macOS-10.14 version 20210207.1 (#2651)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-10 11:27:33 +00:00
Christoph Bergmeister [MVP] 2e4a680c73 Add PSScriptAnalyzer Powershell module (#2644)
* Add PSScriptAnalyzer Powershell module

* Remove PSScriptAnalyzer module from ubuntu 1604 and `804 toolsets as per issue feedback
2021-02-10 10:51:19 +03:00
Mikhail Timofeev 5b8393bde4 Add docker moby server version (#2657) 2021-02-09 22:50:11 +03:00
Dibir Magomedsaygitov 395127da8f [Ubuntu] Fix Netlify installation, move its and vercel's installation to Nodejs.sh (#2666)
* fix netlify installation

* debug

* resolve comments

* small fix
2021-02-09 18:57:05 +03:00
Ryan Spletzer 902346ebcd Set AGENT_TOOLSDIRECTORY in packer template (#2457)
* Set AGENT_TOOLSDIRECTORY in packer template
This was set in the ruby installer but it is referenced elsewhere so I
believe it makes the most sense to have this set centrally in the packer
template to be referenced across multiple scripts.

* Fix typo

* Capitalize env var in ws2016 template for consistency

* Set AGENT_TOOLSDIRECTORY in Initialize-VM.ps1

* Add missing env var for AGENT_TOOLSDIRECTORY in step in ws2016 template
2021-02-09 16:41:06 +03:00
github-actions[bot] b45f42aa9f Updating readme file for macOS-11.0 version 20210208.1 (#2656)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-02-09 03:56:22 +00:00
github-actions[bot] 41294b8048 macOS 10.13 (20210207 update) (#2646)
* Updating readme file for macOS-10.13 version 20210207.2

* fixed geckodriver version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-08 16:10:11 +00:00
Mikhail Timofeev 6e9cc7b740 [ubuntu] remove npm installation (#2649) 2021-02-08 17:33:44 +03:00
Sergey Dolin b169ce9de9 Document environment variables of Win images (#2494)
* Document environment variables of Win images

* Change adnroid variables

* Apply reviews

* Remove some variables, fix headers

* Show link targets

* rename helper

* remove symlinks

* More links
2021-02-08 09:45:45 +03:00
Sergey Dolin 6beed71b4f Document environment variables of MacOS images (#2493)
* Document environment variables of MacOS images

* Change adnroid variables

* Apply reviews

* Remove some variables, fix headers

* Show link targets

* rename helper

* remove symlinks

* More links
2021-02-08 09:45:16 +03:00
Dibir Magomedsaygitov dad0901d33 [macOS] Remove Java 7 (#2631)
* remove java 7

* remove unused function
2021-02-07 20:09:22 +03:00
Mikhail Timofeev 33d4c0213f [Ubuntu] Invoke chromium test after installation (#2640)
* Add test invocation

* ge instead of gt

* change condition
2021-02-07 16:10:42 +03:00
Dibir Magomedsaygitov 3ca926ec34 Deprecate Java 7 (#2633) 2021-02-07 16:08:29 +03:00
Andy Mishechkin 4491eeb15f [ubuntu] Go default version is set to 1.15 (#2632) 2021-02-05 20:49:23 +03:00
Aleksandr Chebotov be109fcbc2 [Ubuntu] Provide version info for binutils and coreutils packages (#2627)
* include binutils and coreutils to doc section

* fix bin to core

* replace split to Take-OutputPart
2021-02-05 19:38:39 +03:00
Andy Mishechkin b349624d7b [windows] Go default version is set to 1.15 (#2635) 2021-02-05 19:30:36 +03:00
Dibir Magomedsaygitov 01cd7ca628 Deprecate Java 7 (#2629) 2021-02-05 18:22:20 +03:00
Maxim Lobanov 9480083149 Enable SPACESHIP_SKIP_2FA_UPGRADE flag for xcversion (#2617) 2021-02-05 09:39:26 +03:00
github-actions[bot] 19c44ab1e1 Ubuntu 1804 (20210131 update) (#2598)
* Updating readme file for ubuntu18 version 20210131.1

* restored NDK

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-04 19:31:05 +00:00
github-actions[bot] 525f79f479 Ubuntu 2004 (20210131 update) (#2599)
* Updating readme file for ubuntu20 version 20210131.1

* restored NDK

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-04 14:45:37 +00:00
github-actions[bot] bc17e04240 Ubuntu 1604 (20210131 update) (#2594)
* Updating readme file for ubuntu16 version 20210131.1

* restored NDK

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-04 10:47:49 +00:00
Dibir Magomedsaygitov 705a38a481 [Ubuntu] Add Android NDK 22 (#2556)
* add android ndk 22
2021-02-04 13:34:30 +03:00
Mikhail Timofeev aa0de6b9cc [windows] add ip substitution to update-dockerimages (#2611) 2021-02-04 10:39:20 +03:00
github-actions[bot] 36182c1a2b Windows Server 2019 (20210121 update) (#2523)
* Updating readme file for win19 version 20210121.0

* restored NDK version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-03 19:51:15 +00:00
github-actions[bot] 5d8b23df90 Updating readme file for macOS-10.15 version 20210130.1 (#2595)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-03 16:13:46 +00:00
Mikhail Timofeev 19201a0735 [macOS] Fix ndk output in readme for Big Sur (#2597)
* Fix condition

* Remove ndk-bundle retrieval from packages list

* remove unnecessary packageinfo param

* simplify function

* move $versions definition
2021-02-02 11:19:20 +03:00
Mikhail Timofeev 43b2ebbb96 Add Xcode 12.5 (#2602) 2021-02-02 09:59:36 +03:00
github-actions[bot] db0fe74893 Updating readme file for macOS-10.14 version 20210130.1 (#2593)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-01 23:42:12 +00:00
Mikhail Timofeev 1cd5c18eec [Ubuntu] Get back Android NDK to the readme (#2601)
* add Get-AndroidNDKVersions function

* simplify Get-AndroidNDKVersions function

* remove $versions variable definition
2021-02-01 20:15:30 +03:00
github-actions[bot] a6e6905dea macOS 11.0 (20210131 update) (#2596)
* Updating readme file for macOS-11.0 version 20210131.1

* restored NDK version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-02-01 16:48:11 +00:00
Shivam Mathur 349c66a268 [Windows] Add Apache and Nginx (#2517)
* [Windows] Add Apache and Nginx (#2501)

* Remove dot-sourcing in web-server tests

* Fix web servers readme generation
2021-02-01 17:03:49 +03:00
Dmitry Shibanov a49d4e2294 Add NDK 22 to macOS images (#2542)
* add env variables to docs, add extra ndk

* add new header 4

* rename variable

* add ndk to toolset as generic approach

* grep latest version

* install latest lts

* improve function

* rename function
2021-02-01 12:56:44 +03:00
Vladimir Safonkin fa88926270 [Windows] Rework Android NDKs installation (#2555)
* Rework Android NDKs

* Minor fix

* Fix variable name

* Minor fixes

* Reword Android env vars table

* Remove Android env vars table from doc file

* Rework to use only major ndk versions in toolset

* Fix ndk paths

* Fix win2016 toolset

* Refactor

* Minor fix

* Fix ndk tests
2021-02-01 12:56:34 +03:00
Shivam Mathur 212431cc79 [ubuntu] Add Apache and Nginx (#2516)
* [ubuntu] Add apache and nginx (#2501)

* Use dpkg-query to get nginx version

* Fix flaky apache cli test
2021-01-29 18:52:46 +03:00
Mikhail Timofeev b386372a86 [windows] Remove Hyper-V installation and switch VM size to standard d8s v4 (#2525)
* change vm spec to Standard_D8s_v4 for win images

* Remove Hyper-V feature
2021-01-29 18:16:05 +03:00
Andy Mishechkin 5b5da5ce02 [macOS] Software updates week 5 2021 (#2580) 2021-01-29 18:14:30 +03:00
Aleksandr Chebotov 45d672739e [Ubuntu] Revert hardcoded docker-compose version (#2588) 2021-01-29 17:05:44 +03:00
Darii Nurgaleev f5b6afebd0 [macOS] move Pester tests to separate files/contexts/describes (#2573)
* [macOS] Fail Pester tests on error

* return it back

* added all files for testing

* common utils path changed

* linux scripts shouldn't be touched
2021-01-29 12:37:48 +03:00
Mikhail Timofeev 2ee29eddc1 [Windows] Add more docker tests and move K8s tools into single provisioner (#2583)
* Add more docker tests

* Rework tools installation and test

* remove docker tests from tools

* get back kind installation

* transform kind download link to string

* add Add-MachinePathItem after kind installation
2021-01-29 11:38:57 +03:00
Alena Sviridenko 0fa90a6df5 updated bug report with image version (#2582) 2021-01-29 11:35:47 +03:00
github-actions[bot] f6674ad618 macOS 10.15 (20210123 update) (#2537)
* Updating readme file for macOS-10.15 version 20210123.2

* removed NDK announcement

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-29 06:14:55 +00:00
github-actions[bot] 4b03527e45 Ubuntu 2004 (20210123 update) (#2540)
* Updating readme file for ubuntu20 version 20210123.1

* restored NDK versions

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-28 16:51:25 +00:00
github-actions[bot] 7024b43bda Ubuntu 1804 (20210123 update) (#2539)
* Updating readme file for ubuntu18 version 20210123.1

* restored NDK version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-28 16:40:04 +00:00
github-actions[bot] 2a3deab59e Ubuntu 1604 (20210123 update) (#2541)
* Updating readme file for ubuntu16 version 20210123.1

* restored NDK version

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-28 16:36:29 +00:00
Hutson Betts 46e0c05e7e [ubuntu] feat(docker): authenticate using DockerHub credentials (#2548)
Ubuntu builds, by default, pull images anonymously from the
official DockerHub. DockerHub rate limits requests from
anonymous and unpaid accounts:
- https://docs.docker.com/docker-hub/download-rate-limit/

When those rate limits are reached the Packer build will
fail with an error indicated the rate limit has been
reached.

Add support for providing credentials for a paid
account that can be used by the Docker setup steps to
authenticate when pulling images from DockerHub, thereby
avoiding the rate limit.

Related to #2094
2021-01-28 13:31:45 +03:00
Aleksandr Chebotov e2d6b1632b exclude macOS less than Catalina (#2570) 2021-01-27 17:26:40 +03:00
jmos5156 1eb504f4d4 Removing 'ImageVersion' as an env var as we already use 'IMAGE_VERSION' (#2509)
* Removing 'ImageVersion' as an env var as we already use 'IMAGE_VERSION'. The env var is only used SoftwareReport.Generator script.

* Adding IMAGE_VERISON to SoftwareReport.Generator

* Adding IMAGE_VERISON to SoftwareReport.Generator

* Chnaging the way the env vars are used to floow the same pattern throughout

Co-authored-by: Jose Mosquera <jose.mosquera@dotdigital.com>
2021-01-27 13:12:48 +03:00
Mikhail Timofeev df8a157caf [macOS] install geckodriver from binaries for 10.13 (#2559)
* install geckodriver from binaries for hs

* unite add to path block

* minor comment change

* fix variable name

* jg -r instead of tr

* change geckourl
2021-01-27 11:54:20 +03:00
github-actions[bot] d23e37467d macOS 10.13 (20210123 update) (#2535)
* Updating readme file for macOS-10.13 version 20210123.2

* removed NDK announcement

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-26 16:44:16 +00:00
Darii Nurgaleev 97a317b322 [Ubuntu] Add /home/runner/.local/bin to PATH (#2491)
* return it back

* added python new path

* added skel path implementation
2021-01-26 19:06:25 +03:00
Aleksandr Chebotov 5537d89215 [macOS] Add apache and nginx (#2522)
* add apache and nginx

* swap config and service status

* add new line

* remove notes
2021-01-26 17:14:31 +03:00
MaksimZhukov ed5d4dc5c5 [macOS] Fix Bazel issue (#2543)
* Install Bazel 3.7.1 on the macOS images less than Catalina

* Export the USE_BAZEL_VERSION variable to the bashrc

Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
2021-01-26 10:44:38 +03:00
Mikhail Timofeev 0d1d77da0e [windows] add locked flag to cargo (#2546) 2021-01-26 10:30:38 +03:00
Mikhail Timofeev 06b88bd6ed [ubuntu] add locked flag to cargo (#2545) 2021-01-25 20:55:03 +03:00
Mikhail Timofeev 8be00cadcb [macos] add locked file for Cargo (#2544) 2021-01-25 19:55:35 +03:00
github-actions[bot] 7bfb39dac6 macOS 11.0 (20210123 update) (#2538)
* Updating readme file for macOS-11.0 version 20210123.1

* Removed NDK announcement

* restored NDK version in table

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
2021-01-25 13:20:49 +00:00
Aleksandr Chebotov 3f2f058e03 [macOS] set default Xcode 12.3 and bundle 6_15_5 (#2526) 2021-01-23 12:43:27 +03:00
Aleksandr Chebotov 4f6ab057d8 [Ubuntu] Install 1.27.4 on ubuntu16/18 (#2520)
* install 1.27.4 on ubuntu16/18

* add link to the issue

* replace contains to endswith
2021-01-22 22:12:57 +03:00
Dibir Magomedsaygitov 0ed014bc91 [Windows] Install Git using choco (#2473)
* use choco to install git

* remove ignore-dependencies for hub installation

* debug
2021-01-22 12:05:31 +03:00
Olafur Egilsson 9d00952bdf Use the value from toolset visualStudio.edition when locating VSIXInstaller (#2476)
* Use the value from toolset visualStudio.edition when locating VSIXInstaller.

Previously it was hardwired to "Enterprise".

* Changed as per review: https://github.com/actions/virtual-environments/pull/2476#discussion_r559966129
2021-01-22 10:35:43 +03:00
Mikhail Timofeev cae9df3eab Add Xcode 12.4 on macOS images (#2518) 2021-01-22 09:40:08 +03:00
Aleksandr Chebotov caa7a1ac6d [macOS] Get rid of invoke_tests imports (#2496)
* get rid of invoke_tests imports

* add sudo

* change path to /usr/bin/invoke_tests

* create /usr/local/bin dir

* remove local variables

* fix group owner

* set default 775 perm

* delete invoke_tests symlink
2021-01-22 09:26:28 +03:00
Mikhail Timofeev 8450762c10 Revert "Updating readme file for ubuntu18 version 20210111.1 (#2417)" (#2514)
This reverts commit 2656f12b4c.
2021-01-21 12:47:36 +03:00
Mikhail Timofeev 8481dbc320 Revert "Updating readme file for ubuntu20 version 20210111.1 (#2418)" (#2513)
This reverts commit 24d52e9697.
2021-01-21 12:47:11 +03:00
Mikhail Timofeev 832968b796 Revert "Updating readme file for ubuntu16 version 20210111.1 (#2419)" (#2512)
This reverts commit da495ea119.
2021-01-21 12:46:52 +03:00
Mikhail Timofeev 123ca0707a Revert "Updating readme file for win16 version 20210110.1 (#2411)" (#2511)
This reverts commit c29e01a1da.
2021-01-21 12:46:17 +03:00
Mikhail Timofeev 0715fc76ec Revert "Updating readme file for win19 version 20210110.1 (#2412)" (#2510)
This reverts commit 183594ed9a.
2021-01-21 12:45:55 +03:00
Dmitry Shibanov 51afead06e Freeze NDK 21 on Ubuntu Images (#2500) 2021-01-21 11:32:27 +03:00
Dmitry Shibanov 905516cc9c Freeze NDK 21 on Windows Images (#2499) 2021-01-21 11:31:35 +03:00
Dmitry Shibanov c3525f6978 Freeze NDK 21 on MacOS Images (#2497) 2021-01-21 11:31:14 +03:00
Alena Sviridenko cb5615b5a9 update README (#2502) 2021-01-21 11:25:27 +03:00
Sergey Dolin eb1e7bcb39 [ubuntu] Set HOMEBREW_NO_AUTO_UPDATE and HOMEBREW_NO_INSTALL_CLEANUP (#2470)
* Set HOMEBREW_NO_AUTO_UPDATE and HOMEBREW_NO_INSTALL_CLEANUP

* replace HOMEBREW_NO_INSTALL_CLEANUP with HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS
2021-01-21 11:21:32 +03:00
Maxim Lobanov 3360a9b60f Create CODEOWNERS file (#2402)
* Create CODEOWNERS

* move to .github

* Update CODEOWNERS
2021-01-20 21:37:42 +03:00
Andy Mishechkin 538640ca2a Chromium browser has been added to Ubuntu 20 (#2463)
* deploy script for chromium-browser has been created

* Chromium-browser.sh has been added to packer template

* Chromium has been added to software report

* Chromium-browser installation has been moved to toolset

* Bug - chromium-browser.sh has been removed from ubuntu2004.json

* Browsers documentation has been fixed
2021-01-20 14:46:42 +03:00
Nikita Bykov 29847cd01a added ANDROID_NDK_HOME and ANDROID_NDK_ROOT (#2472)
Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-01-20 12:40:57 +03:00
Juan Julián Merelo Guervós c63f698e70 [ubuntu] Adds detection of cpan version (#2488)
* Adds detection of cpan version

The Perl package manager

* Adds detected cpan version

* Updates copypasta
2021-01-20 11:27:55 +03:00
Dibir Magomedsaygitov 9f700144e1 add cbindgen back (#2482) 2021-01-20 10:30:01 +03:00
Darii Nurgaleev 03ce901f42 [macOS] Pester tests invocation after install - 2. (#2429)
* [macOS] Fail Pester tests on error

* return it back

* added new tests

* added new tests for Macos part2

* fixed nitpicks

* vsmac changes

* remove toolcache fron high sierra
2021-01-20 10:11:00 +03:00
Aleksandr Chebotov c47ccfbf9a [macOS] Update default Perl (#2478)
* update default Perl

* escape $ sign
2021-01-20 10:07:43 +03:00
github-actions[bot] c29e01a1da Updating readme file for win16 version 20210110.1 (#2411)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-19 18:46:18 +00:00
github-actions[bot] fd5ae8e60c macOS 11.0 (20210118 update) (#2480)
* Updating readme file for macOS-11.0 version 20210118.2

* removed macos-11.0 announcement

Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-19 16:40:22 +00:00
Dibir Magomedsaygitov 83dfe141c7 [macOS] Sort tool names in README (#2441)
* sort tool names
2021-01-19 18:44:12 +03:00
github-actions[bot] 5f6a95ba04 Updating readme file for macOS-10.13 version 20210115.1 (#2474)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-19 07:02:43 +00:00
github-actions[bot] 183594ed9a Updating readme file for win19 version 20210110.1 (#2412)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-18 23:19:12 +00:00
Nikita Bykov 45322ef135 sort tools in readme (#2438)
Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-01-18 18:57:03 +03:00
Darii Nurgaleev a0656ad9b4 [Windows] Add JAVA section to docs. (#2467)
* [macOS] Fail Pester tests on error

* return it back

* git pus

* added fix for java docs

* changed java place
2021-01-18 15:45:17 +03:00
Aleksandr Chebotov e7970dd34f deprecate go < 1.13 and node.js 8 (#2445) 2021-01-18 09:45:56 +03:00
Mikhail Timofeev 0377be9290 Add 6_12_5 xamarin bundle (#2439) 2021-01-16 15:02:59 +03:00
Dibir Magomedsaygitov 8bbe62fcc4 [Windows] Sort tool names in README (#2422)
* sort tool names

* small fixes

* add sort-object
2021-01-15 17:30:09 +03:00
Darii Nurgaleev 7c6117e6ec [Ubuntu] Get toolset value function. (#2435)
* [macOS] Fail Pester tests on error

* return it back

* [Ubuntu] add get_toolset_values function

* added fix

* fix all nitpicks

* try to get rid brackets

* removed brackets.

* pipx-package fix
2021-01-15 17:12:26 +03:00
Aleksandr Chebotov 68e9c68855 [Windows] Add shell symlinks (#2395)
* add shell symlinks

* fix paths

* add a wrapper

* fix target output

* fix tests
2021-01-15 13:42:37 +03:00
github-actions[bot] da495ea119 Updating readme file for ubuntu16 version 20210111.1 (#2419)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-15 07:51:29 +00:00
github-actions[bot] 24d52e9697 Updating readme file for ubuntu20 version 20210111.1 (#2418)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-15 07:48:29 +00:00
Aleksandr Chebotov 32916b5163 deletes output of Stop/Set/Move-VM cmdlets (#2448) 2021-01-15 10:27:09 +03:00
Aleksandr Chebotov 3b80ec9501 deprecate go < 1.13 and node 8 (#2442) 2021-01-15 10:25:25 +03:00
github-actions[bot] 8c01125d31 Updating readme file for macOS-10.14 version 20210109.1 (#2434)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-15 06:41:02 +00:00
Leonid Lapshin 8079b61569 openssl php extension fix (#2444)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-01-15 09:35:36 +03:00
github-actions[bot] 2656f12b4c Updating readme file for ubuntu18 version 20210111.1 (#2417)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2021-01-15 05:14:12 +00:00
Dr e2027939f3 [Windows] use npm config instead of npm_config_cache (#2153)
The `npm_config_cache` env, if set, will have highest priority, and harder to change.

One way to un-set this is add a global workflow env, like:
```
env:
  npm_config_cache: ''
```

This commit change the cache config to use `npm config set cache $CachePath --global`,
which should save the path under the global npmrc at: `C:\npm\prefix\etc\npmrc`,
and allow easier later reset with user/repo level `.npmrc` files.

For the record, my usage is to unify all platform's npm cache to `~/.npm/`,
then use the same cache action config on all platform to cache the folder.
2021-01-14 19:27:02 +03:00
Aleksandr Chebotov ffc82ae582 [ubuntu] deprecate node.js 8 (#2443) 2021-01-14 17:40:43 +03:00
Leonid Lapshin 2e06b1a227 Removed PyPy version workaround for macOS 10.13 (#2414)
* removed pypy version workaround for macOS 10.13

* fix toolcache test on macos

* fixed an error

* disable strict name checking for imported powershell modules

* Ruby 3.0 doesn't exists on 10.13

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-01-14 12:17:44 +03:00
Darii Nurgaleev 0a255311b1 [macOS] Pester tests invocation after install. (#2421)
* [macOS] Fail Pester tests on error

* return it back

* [macOS] Pester tests invokation after install

* fix nitpicks

* CocoaPods fix
2021-01-13 20:46:44 +03:00
Aleksandr Chebotov e508e876f7 [Windows] Define mingw 8.1.0 (#2431)
* install the latest version

* Revert "install the latest version"

This reverts commit ddf40964b5.

* define mingw 8.1.0 version
2021-01-13 20:34:29 +03:00
Sergey Dolin ada08c2507 [windows] Change Android SDK root (#2343) 2021-01-13 15:58:05 +03:00
Aleksandr Chebotov f9383fcc03 [Image.CI] Change vm spec after shutdown (#2430)
* change spec after power off

* change specs after shutdown
2021-01-13 12:07:42 +03:00
Bruno Travouillon ab9b101a14 [ubuntu] Purge unattended upgrades (#2331)
The purge will remove any leftovers configuration files, including
/etc/apt/apt.conf.d/20auto-upgrades.
2021-01-13 12:07:02 +03:00
Nikita Bykov d20a55914c [Windows] Move the list of installed Java versions to toolset (#2369)
* added java to toolset

* updated java tests

* fixed windows2016.json

* fixed tests

* fixed java.Tests

* fixed Java.Tests.ps1

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-01-13 10:48:09 +03:00
Nikita Bykov 7457b9fecb [Ubuntu] Move the list of installed Java versions to toolset (#2393)
* added java to toolset

* fixed java-tools and updated tests

* fixed java-tools.sh

* fixed tests

* fixed java.Tests

* fixed java versions check

* fixed Java.Tests.ps1

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-01-13 10:47:03 +03:00
Nikita Bykov b42d8566f9 Add GraalVM Community Edition & GraalVM Native Image (#2330)
* added graalvm

* added native-image and updated SoftwareReport

* rework GraalVM installation

* fixed graalvm installation

* Updated SoftwareReport.Generator

* updated graalvm.sh

* fixed graalvm.sh

* fixed graalvm.sh

* removed rm command

* resolved comments

* fixed softwarereport for GraalVM

* added invoke_tests for graalvm

* fixed tests for graalvm

* fixed GraalVM tests and SoftwareReport

* added source  etc-environment.sh to graalvm.sh

* fixed GraalVM tests

* resolved comments

* fixed graalVM SoftwareReport

* added GRAALVM_11_ROOT variable

* fixed comment for env variable

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-01-13 10:45:39 +03:00
Leonid Lapshin 2882a9fde3 fixed comment in images.CI (#2427)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-01-12 17:29:48 +03:00
Dibir Magomedsaygitov c24eb0b7b5 [Windows] Fix hub installation (#2403)
* fix hub installation

* add comment

* small fix

* add link to the issue
2021-01-12 12:49:54 +03:00
Vladimir Safonkin afef0c94a8 [Ubuntu] Fix setEtcEnvironmentVariable function (#2394)
* Fix pipx installation

* Remove quotes from
2021-01-12 12:36:09 +03:00
Sergey Dolin ecc81aa902 Add missed Rust tools to the documentation for Win (#2401)
* Add documentation for rust tools

* Rename helpers

* Remove duplicates
2021-01-12 11:29:05 +03:00
github-actions[bot] 1d5d519fc5 Updating readme file for macOS-11.0 version 20210110.1 (#2413)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
2021-01-11 16:41:39 +00:00
Sergey Dolin 83ccdbcc9d Add missed Rust tools to the documentation for macOS (#2397)
* Add documentation for rust tools

* Rename helpers
2021-01-11 10:57:51 +03:00
Mikhail Timofeev 31c97aac43 [Ubuntu] Get rid of simple apt-get provisioners (#2376)
* move 7z installation to basic.sh

* remove build essential

* move imagemagick to apt

* move subversion to apt

* move subversion to apt

* move sphinxsearch to apt

* move swig to apt

* move pollinate to apt

* move haveged to apt

* add p7zip to ubuntu 16
2021-01-11 10:42:58 +03:00
Darii Nurgaleev df05e8c6cb [macOS] Pester tests fail on error (#2378)
* [macOS] Fail Pester tests on error

* return it back

* [macOS] Pester tests fail on error

* some tests were moved

* appcenter cli moved

* openssl separate describe

* added new tests for java

* moved stack from haskell

* invoke tests to stack

* xamarin added tests sources

* mongo tests fix

* ndk path

* xamarin-android-ndk-tests removed

* fix nitpicks

* added new filename for XamarinNDK

* AzCopy Describe change

* added azcopy C correct.

* android additional_tools tests

* remove null elements from massive

* added new lines for verification macos 10.13

* add Android Tests for mac, not for linux
2021-01-11 09:30:51 +03:00
Aleksandr Chebotov e470bcde79 fix empty password for mysql-server (#2400) 2021-01-08 16:02:09 +03:00
Darii Nurgaleev 2fdc4d38d9 [macOS] Ruby3.0 installation fix (#2390)
* [macOS] Fail Pester tests on error

* return it back

* [macOS] fix ruby3 installation.
2021-01-06 09:21:49 +03:00
iBug 9b11155b75 Preload libgsl-dev in Ubuntu images, resolves #2356 (#2360) 2020-12-31 15:28:51 +03:00
Sergey Dolin 204775df20 Add Android Command Line tools to Linux images (#2364)
* Add Android Comand Line tools for Linux

* Fix software report
2020-12-31 13:08:02 +03:00
Sergey Dolin 58a6784582 [macos] Add Android Comand Line tools (#2363) 2020-12-31 11:22:17 +03:00
Dibir Magomedsaygitov 875891b86b [Ubuntu] Migrate missing tools tests to Pester (#2374)
* add missing tests

* fix naming and nvm test

* fix containers test and bring pwsh test back

* remove pwsh test

* small fix
2020-12-31 10:00:43 +03:00
Leonid Lapshin 3753e7b923 Databases and java pester tests (#2338)
* added mongodb postgres java tests

* fixed 1.7 and 12 Java on Ubuntu 20

* several improvments

* removed update-environment function

* add etc-environment import

* removed sourcing invoke-tests

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-30 18:04:55 +03:00
Leonid Lapshin 86adee10d0 [MacOS] Build VM packer spec changed (#2359)
* scheduling condition added and changed VMs specs for macos

* typo

* changed conditions order

* fixed an error

* added spec parameters that use pipeline variables values

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-30 17:46:17 +03:00
Leonid Lapshin f3394fb979 [ubuntu] reverted dotnet sdk extraction in parallel (#2373)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-30 14:26:37 +03:00
Leonid Lapshin 1ce075fe93 [ubuntu] Pester tests for dotnet sdk, cmd tools and codeql (#2335)
* dotnet cmd codeql tests

* fixed dotnet tests, added codeql to toolset

* changed codeql version to wildcard

* removed unused import and a test call

* tmp

* lowercase file name

* removed sourcing invoke-tests

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-30 13:50:21 +03:00
Sergey Dolin 3e1fdc417b [windows] Add Android Comand Line tools (#2362) 2020-12-30 11:29:15 +03:00
Vladimir Safonkin f3f0f47926 Add ruby 3.0.0 to the toolcache (#2366)
* Add Ruby 3.0.0 to toolsets

* Ruby 2.7.2 as default for macOS

* Minor fix
2020-12-30 09:58:27 +03:00
Vladimir Safonkin 0ae118c6ae [Ubuntu] Create symlink for Pester test running (#2349)
* Create symlink for test running

* Fix 1604 and 2004 templates

* Fix php and haskell running

* Minor fix

* Fix new added tests

* Fix symlink

* Minor fix

* Fix script permissions

* Minor fix

* Fix firefox and rust tests

* Fix new merged tests
2020-12-30 09:57:11 +03:00
Sergey Dolin 81909fddd5 Replace dpkg with apt (#2334)
dpkg can not get a lock, use apt mock script instead
2020-12-29 10:04:25 +03:00
Vladimir Safonkin 0a768b0726 [Ubuntu] Migrate tests to Pester (#2340)
* Add Pester tests

* Fix incorrect merging

* Remove swift test from installing script

* Minor fix

* Remove Haskell tests from commons tests

* Fix selenium test

* Fix SVN test

* Fix pipx tests

* Debug

* Fix pipx packages test

* Skip pipx for 16.04
2020-12-29 10:02:46 +03:00
Dibir Magomedsaygitov f58f2c1e02 [Ubuntu] Migrate Toolset tests to Pester (#2339)
* migrate toolset tests to pester

* move test invocation

* minor fixes
2020-12-28 15:07:00 +03:00
Mikhail Timofeev ab06a8a68f [macOS] Keep ruby 2.7 as the default one (#2358)
* Set ruby 2.7 instead of the latest one

* change ruby path in bashrc
2020-12-28 12:53:43 +03:00
Dibir Magomedsaygitov 7c15befd02 [Ubuntu] Migrate Browsers and Rust tests to Pester (#2323)
* add tests for browsers and rust

* small fix

* fix tests invoking

* small fixes

* resolve conflicts

* fix firefox test
2020-12-28 11:34:32 +03:00
Leonid Lapshin ba0809214b [ubuntu] Changed dotnet core sdk unpacking stage (#2297)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-28 11:26:28 +03:00
Leonid Lapshin 44ca8038b2 [macOS] added quotes (#2316)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-28 11:26:03 +03:00
Nikita Bykov dd12c1ae21 Rework MacOS documentation (#2336)
* rework macOS documentation

* resolved comments

* fixed function name

* Updated SoftwareReport.Common.psm1 and SoftwareReport.Generator.ps1

* fixed name

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2020-12-28 11:15:54 +03:00
MaksimZhukov 310f692ea5 [macOS] Fix the issue with brew install (#2354)
* Update azure-cli installation

* Update curl installation

* Update git-lfs installation

* Add utils

* Update gnupg installation

* Add brew_install function

* Revert jq installation

* Add condition for the aws-sam-cli

* Add return to function, revert aws-sam-cli changes, rename brew_install function

* Fix typo

Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
2020-12-28 10:54:25 +03:00
Mikhail Timofeev 64c9751269 [Ubuntu] Migrate tests for common tools to Pester (part 3) (#2337)
* add test for Git

* Add Heroku

* Add hhvm

* Add Homebrew

* Add Julia

* Add kind

* Add Kubernetes Tools

* Remove kind and homebrew validate

* replace capital letter

* Add Leiningen

* add source to Leiningen

* Add Mercurial

* Add conda

* Add Netlify

* Add packer

* Add pollinate

* Add Pulumi

* Add Phantomjs

* Add Haveged

* Fix for kubectl

* Fix julia installation

* Add installer_script_folder env variable to run tests in brew provisioner

* Add delay after reboot

* Adjust pause settings
2020-12-25 18:03:35 +03:00
Maxim Lobanov f30f928378 Update readme to include more information about image availability (#2355)
* Update README.md

* Update README.md
2020-12-25 16:59:07 +03:00
Vladimir Safonkin 02c2fbad69 [Ubuntu] Migrate php to Pester tests (#2341)
* Php Pester tests

* Minor fix
2020-12-25 13:02:25 +03:00
Vladimir Safonkin 82b4e13fb0 [Ubuntu] Move Haskell tests to separate file. (#2348)
* Move Haskell tests to separate file

* Minor fix
2020-12-25 12:36:01 +03:00
Aleksandr Chebotov c86fcd37ee [ubuntu] remove stale go params (#2342) 2020-12-24 18:34:59 +03:00
Vladimir Safonkin ee8132a978 [Ubuntu] Migrate tests for Haskell to Pester (#2314)
* Add Pester tests for Haskell on Ubuntu

* Add tests for all installed ghc versions

* Minor fix

* Minor fix

* Fix number of installed ghc versions test

* Fix GHC number test
2020-12-24 12:36:37 +03:00
Vladimir Safonkin 7f1a7b4177 [Ubuntu] Migrate tests for Android to Pester (#2313)
* Add Pester tests for Android on Ubuntu

* Minor fix

* Move Get-AndroidPackages to common helpers

* Minor fix

* Delete Android test name for invoke_tests script
2020-12-24 12:14:41 +03:00
Dibir Magomedsaygitov 6245d40db7 fix vcpkg output (#2319) 2020-12-24 10:17:19 +03:00
Darii Nurgaleev 7403f33180 [macOS] add pester tests to install scripts part-1. (#2286)
* [macOS] add pester tests to install scripts part-1.

* changed version

* added changes related to common utils installation

* added source tests file

* removed tests from homebrew

* moved jq to homebrew

* fix nitpicks

* incorrect things are fixed.

* fixed some mistakes in the text

* commonutils changed.

* remove swiftlint installation from toolsets

* removed useless string
2020-12-23 18:14:13 +03:00
Aleksandr Chebotov ac87b63b13 [Ubuntu] Migrate PowerShell and Docker tests to Pester (#2317)
* PowerShell and Docker Pester tests

* no pester module

* import pester

* invoke docker with sudo

* remove native test

* add fix for az 1.0.0 module

* revert powershellget installation

* revert flag Force

* add $ProgressPreference = "SilentlyContinue"
2020-12-23 15:18:48 +03:00
Mikhail Timofeev ec4b0fa89c Revert "[windows] change vm spec to Standard_D8s_v4 for win images (#2318)" (#2333)
This reverts commit 1ff7e6a0c8.
2020-12-23 10:48:07 +03:00
Dibir Magomedsaygitov a9a236f7e5 [Ubuntu] Migrate tests for common tools to Pester (part 1) (#2288)
* add common tools tests pt1

* fix tests

* fix erlang test

* resolve comments

* minor changes

* remove extra logging
2020-12-23 10:25:52 +03:00
Mikhail Timofeev 7ff71c853d [macOS] Fix the issue with Python 2to3 symlink (#2326)
* change vm spec to Standard_D8s_v4 for win images

* remove symlink to 2to3

* explicitly overwrite symlinks
2020-12-22 21:34:29 +03:00
Darii Nurgaleev 0d93dd2fc9 [macOS] brew --cask option fix. (#2325)
* [macOS] brew --cask option fix.

* removed curl from HS

* return curl back
2020-12-22 10:48:31 +03:00
Aleksandr Chebotov 9da3c0764a Install the latest PHP version (#2210) 2020-12-22 09:45:29 +03:00
Dibir Magomedsaygitov 90ecf07404 [Ubuntu] Migrate tests for CLI tools to Pester (#2289)
* add tests for cli tools to pester

* small fix

* remove extra commenting

* resolve issues

* fix vercel test

* remove extra logging
2020-12-21 23:35:22 +03:00
CrazyMax 7e4e97b9d9 [Ubuntu] Add pass package (#2304)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-21 22:00:51 +03:00
Mikhail Timofeev 1ff7e6a0c8 [windows] change vm spec to Standard_D8s_v4 for win images (#2318) 2020-12-21 21:20:24 +03:00
Dmitry Shibanov 4de7f89a42 Add PYPY_VERSION file to the images (#2285)
* add PYPY_VERSION file

* resolving comments

* fix output for windows

* add fix for windows
2020-12-21 15:07:19 +03:00
Mikhail Timofeev b6b55afeaa [ubuntu] change to Standard_D4s_v4 (#2298) 2020-12-19 15:13:59 +03:00
Darii Nurgaleev a2e5aefffd [Ubuntu] update apt.mock with additional lock error. (#2299) 2020-12-18 21:34:02 +03:00
Alena Sviridenko 2012310c6c Update README with "how to contact us" guide (#2303)
* Added note about discussions

* added dot

* fixed formatting

* fixed wordnig
2020-12-18 20:52:28 +03:00
Mikhail Timofeev c160ddf991 [macOS] install swiftlint from pkg (#2296)
* install swiftling from pkg for Mojave

* Install swiftlint from package for all OS except HS, return xcode-clt installation

* add utils.sh
2020-12-18 20:41:31 +03:00
Darii Nurgaleev 73094f3bea [macOS] software update week 51 (#2287) 2020-12-18 10:32:29 +03:00
github-actions[bot] 08c829a5f0 Updating readme file for macOS-10.14 version 20201214.1 (#2269)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-18 06:57:34 +00:00
Darii Nurgaleev 0a9570b623 [macOS] change Invoke-Pester function (#2261)
* [macOS] change Invoke-Pester function

* added new logic

* try another approach.

* invoke-tests change

* added a little bunch of tests.

* remove import from browsers

* added source for all tests covered scripts.

* run all tests.

* added proper module import

* RunAll-Tests.ps1 changes.

* added shebang

* added new approach for tests.

* the first line should be shebang

* fixed nitpicks
2020-12-17 15:37:19 +03:00
github-actions[bot] bd488adea4 Updating readme file for macOS-10.15 version 20201212.1 (#2258)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-17 11:05:15 +00:00
Dibir Magomedsaygitov 2b93b03377 [Ubuntu] Implement first Pester tests (#2270)
* implement first pester tests

* add comment for azcopy test

* remove extra importing and old function

* resolve comments

* fix typo
2020-12-17 09:52:09 +03:00
github-actions[bot] be672cb22c Updating readme file for ubuntu18 version 20201210.0 (#2242)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-17 00:03:13 +00:00
github-actions[bot] fc8402e007 Updating readme file for win19 version 20201210.0 (#2239)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-16 13:56:20 +00:00
github-actions[bot] 1905c77688 Updating readme file for ubuntu20 version 20201210.0 (#2240)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-16 11:20:05 +00:00
Varun Agrawal 4462fe7121 Add Boost env variable to Linux docs (#2043)
* Add Boost env variable to Linux docs

* Revert "Add Boost env variable to Linux docs"

This reverts commit 67a54f233c.

* Update script to generate Boost variables for linux

* updated software report script to correct version

* Lots of fixes

* fix markdown formatting
2020-12-16 13:47:43 +03:00
github-actions[bot] 751222b27c Updating readme file for win16 version 20201210.0 (#2244)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-16 10:36:01 +00:00
github-actions[bot] 2856b92110 Updating readme file for ubuntu16 version 20201210.0 (#2246)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-16 09:45:27 +00:00
github-actions[bot] 8e2d3d3302 Updating readme file for macOS-10.13 version 20201214.1 (#2265)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-16 09:04:33 +00:00
Mikhail Timofeev cb27a9e0ad [macOS] Get rid of NDK version check test (#2280)
* change test to ndk 22

* remove test completely
2020-12-16 10:28:06 +03:00
Nikita Bykov d729747846 [macOS] Add GNU Tar (#2163)
* added gnu-tar

* rework gnu-tar installation

* fix SoftwareReport for gnu-tar

* add bsdtar to SoftwareReport

* updated SoftwareReport

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2020-12-15 10:43:27 +03:00
github-actions[bot] 8fb48a5c06 Updating readme file for macOS-11.0 version 20201213.1 (#2259)
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Actions service account <no-reply@github.com>
2020-12-14 18:39:02 +00:00
Mikhail Timofeev 596e47fbcc set brew cleanup period (#2262) 2020-12-14 18:41:34 +03:00
Aleksandr Chebotov 8bf8504e77 bash version output (#2238) 2020-12-14 09:29:13 +03:00
Aleksandr Chebotov 80c5d4a561 bash version output (#2243) 2020-12-14 09:29:07 +03:00
Aleksandr Chebotov 034cf97599 bash version output (#2241) 2020-12-14 09:24:20 +03:00
505 changed files with 23725 additions and 13246 deletions
+1
View File
@@ -0,0 +1 @@
* @actions/runner-images-team
-34
View File
@@ -1,34 +0,0 @@
---
name: Announcement
about: Submit an announcement
title: ''
labels: Announcement
assignees: ''
---
**Breaking changes**
<!-- Short description of the upcoming change -->
**Target date**
<!-- Date of changes propagation start -->
**The motivation for the changes**
<!-- Description of main reasons for this change -->
**Possible impact**
<!-- Description of who might be impacted by this change -->
**Virtual environments affected**
- [ ] Ubuntu 16.04
- [ ] Ubuntu 18.04
- [ ] Ubuntu 20.04
- [ ] macOS 10.13
- [ ] macOS 10.14
- [ ] macOS 10.15
- [ ] macOS 11.0
- [ ] Windows Server 2016 R2
- [ ] Windows Server 2019
**Mitigation ways**
<!-- Steps or options for impact mitigation -->
+52
View File
@@ -0,0 +1,52 @@
name: Announcement
description: Submit an announcement
labels: [Announcement]
body:
- type: textarea
attributes:
label: Breaking changes
placeholder: Short description of the upcoming change
validations:
required: true
- type: textarea
attributes:
label: Target date
placeholder: Date of changes propagation start
validations:
required: true
- type: textarea
attributes:
label: The motivation for the changes
placeholder: Description of main reasons for this change
validations:
required: true
- type: textarea
attributes:
label: Possible impact
placeholder: Description of who might be impacted by this change
validations:
required: true
- type: checkboxes
attributes:
label: Platforms affected
options:
- label: Azure DevOps
- label: GitHub Actions
- type: checkboxes
attributes:
label: Runner images affected
options:
- label: Ubuntu 20.04
- label: Ubuntu 22.04
- label: macOS 11
- label: macOS 12
- label: macOS 13
- label: Windows Server 2019
- label: Windows Server 2022
- type: textarea
attributes:
label: Mitigation ways
description: Steps or options for impact mitigation
validations:
required: true
-39
View File
@@ -1,39 +0,0 @@
---
name: Bug report
about: Submit a bug report
title: ''
labels: needs triage
assignees: ''
---
**Description**
A clear and concise description of what the bug is, and why you consider it to be a bug.
**Area for Triage**:
<!-- See https://github.com/actions/virtual-environments/tree/main/triage-rules.yml for areas -->
**Question, Bug, or Feature?**:
<!-- Choose "Question", "Bug", or "Feature" -->
**Virtual environments affected**
- [ ] Ubuntu 16.04
- [ ] Ubuntu 18.04
- [ ] Ubuntu 20.04
- [ ] macOS 10.15
- [ ] macOS 11.0
- [ ] Windows Server 2016 R2
- [ ] Windows Server 2019
**Expected behavior**
A description of what you expected to happen.
**Actual behavior**
A description of what is actually happening.
**Repro steps**
A description with steps to reproduce the issue. If your have a public example or repo to share,
please provide the link.
1. Step 1
2. Step 2
+66
View File
@@ -0,0 +1,66 @@
name: Bug Report
description: Submit a bug report.
labels: [bug report, needs triage]
body:
- type: textarea
attributes:
label: Description
description: A clear and concise description of what the bug is, and why you consider it to be a bug.
validations:
required: true
- type: checkboxes
attributes:
label: Platforms affected
options:
- label: Azure DevOps
- label: GitHub Actions - Standard Runners
- label: GitHub Actions - Larger Runners
- type: checkboxes
attributes:
label: Runner images affected
options:
- label: Ubuntu 20.04
- label: Ubuntu 22.04
- label: macOS 11
- label: macOS 12
- label: macOS 13
- label: Windows Server 2019
- label: Windows Server 2022
- type: textarea
attributes:
label: Image version and build link
description: |
Image version where you are experiencing the issue. Where to find image version in build logs:
1. For GitHub Actions, under "Set up job" -> "Runner Image" -> "Version".
2. For Azure DevOps, under "Initialize job" -> "Runner Image" -> "Version".
If you have a public example, please, provide a link to the failed build.
validations:
required: true
- type: input
attributes:
label: Is it regression?
description: If yes, please, provide the latest image version where the issue didn't persist, and a link to the latest successful build.
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: A description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Actual behavior
description: A description of what is actually happening.
validations:
required: true
- type: textarea
attributes:
label: Repro steps
placeholder: |
A description with steps to reproduce the issue.
1. Step 1
2. Step 2
validations:
required: true
+6
View File
@@ -0,0 +1,6 @@
blank_issues_enabled: false
contact_links:
- name: Get help in GitHub Discussions
url: https://github.com/actions/runner-images/discussions
about: Have a question? Feel free to ask in the runner-images GitHub Discussions!
-43
View File
@@ -1,43 +0,0 @@
---
name: Tool request
about: Request a new tool or update to a tool
title: Update/Add [tool name]
labels: feature request, needs triage
assignees: ''
---
**Tool information**
- Tool name: <!--- Name -->
- Tool license: <!--- Type of licensing for desired tool -->
- Add or update? <!--- Add or update? -->
- Desired version: <!--- Let us know if you're requesting a specific version, dev/RC, whatever is latest, etc. -->
- Approximate size: <!--- Leave blank if not known -->
- If this is an add request:
- Brief description of tool: <!--- Description -->
- URL for tool's homepage: <!--- URL -->
- Provide a basic test case to validate the tool's functionality: <!-- Code sample -->
**Area for Triage**:
<!-- See https://github.com/actions/virtual-environments/tree/main/triage-rules.yml for areas -->
**Question, Bug, or Feature?**:
<!-- Choose "Question", "Bug", or "Feature" -->
**Virtual environments affected**
- [ ] Ubuntu 16.04
- [ ] Ubuntu 18.04
- [ ] Ubuntu 20.04
- [ ] macOS 10.15
- [ ] macOS 11.0
- [ ] Windows Server 2016 R2
- [ ] Windows Server 2019
**Can this tool be installed during the build?**
<!--- If so, please provide a description with required steps. -->
**Tool installation time in runtime**
<!--- How long does it take to install the tool? -->
**Are you willing to submit a PR?**
<!--- We accept contributions! -->
+79
View File
@@ -0,0 +1,79 @@
name: Tool request
description: Request a new tool or update to a tool
title: Update/Add [tool name]
labels: [feature request, needs triage]
body:
- type: markdown
attributes:
value: "## Tool information"
- type: input
attributes:
label: Tool name
validations:
required: true
- type: input
attributes:
label: Tool license
description: Type of licensing for desired tool.
validations:
required: true
- type: checkboxes
attributes:
label: Add or update?
options:
- label: Add
- label: Update
- type: input
attributes:
label: Desired version
description: Let us know if you're requesting a specific version, dev/RC, whatever is latest, etc.
validations:
required: true
- type: input
attributes:
label: Approximate size
description: Leave blank if unknown.
- type: markdown
attributes:
value: "## If this is an add request"
- type: textarea
attributes:
label: Brief description of tool
- type: input
attributes:
label: URL for tool's homepage
- type: textarea
attributes:
label: Provide a basic test case to validate the tool's functionality.
description: This will be automatically formatted into code.
render: bash
- type: checkboxes
attributes:
label: Platforms where you need the tool
options:
- label: Azure DevOps
- label: GitHub Actions
- type: checkboxes
attributes:
label: Runner images where you need the tool
options:
- label: Ubuntu 20.04
- label: Ubuntu 22.04
- label: macOS 11
- label: macOS 12
- label: macOS 13
- label: Windows Server 2019
- label: Windows Server 2022
- type: textarea
attributes:
label: Can this tool be installed during the build?
description: If so, please provide a description with required steps. This will be automatically formatted into code.
render: bash
- type: input
attributes:
label: Tool installation time in runtime
description: How long does it take to install the tool?
- type: input
attributes:
label: Are you willing to submit a PR?
description: We accept contributions!
+2 -2
View File
@@ -1,6 +1,6 @@
# Description
New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
**For new tools, please provide total size and installation time.**
<!-- Currently, we can't accept external contributions to macOS source. Please find more details in [CONTRIBUTING.md](CONTRIBUTING.md#macOS) guide -->
+72
View File
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '32 4 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
# only required for workflows in private repositories
actions: read
contents: read
# required for all workflows
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python', 'ruby' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Create release for ${{ github.event.client_payload.ReleaseBranchName }}
uses: actions/create-release@v1.1.1
+17 -3
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -21,15 +21,29 @@ jobs:
git push origin ${{ github.event.client_payload.ReleaseBranchName }}-docs
- name: Create pull request for ${{ github.event.client_payload.ReleaseBranchName }}
id: create-pr
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.pulls.create({
let response = await github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "${{ github.event.client_payload.PullRequestTitle }}",
head: "${{ github.event.client_payload.ReleaseBranchName }}-docs",
base: "${{ github.event.client_payload.PullRequestBase }}",
body: `${{ github.event.client_payload.PullRequestBody }}`
});
});
return response.data.number
- name: Request reviewers
uses: actions/github-script@v2
with:
github-token: ${{secrets.PRAPPROVAL_SECRET}}
script: |
github.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: ${{ steps.create-pr.outputs.result }},
team_reviewers: ['runner-images-team']
})
+69
View File
@@ -0,0 +1,69 @@
name: Create and upload a SBOM to release assets
# Inherited variables:
# github.event.client_payload.agentSpec - Current YAML Label
# github.event.client_payload.ReleaseID - Current release ID
# github.event.client_payload.imageVersion - AzDO image version "major.minor"
# github.event.client_payload.ReleaseBranchName - Necessary to identify workflow run
#
# Current SYFT tool issues:
# macOS (minor): very long cataloging process (more than 6 hours) (https://github.com/anchore/syft/issues/1328),
# macOS (major): prompt privilegies that blocking process indefinetely (https://github.com/anchore/syft/issues/1367)
on:
repository_dispatch:
types: [generate-sbom]
defaults:
run:
shell: pwsh
jobs:
#Checking image version on available runner
version-check:
runs-on: ${{ github.event.client_payload.agentSpec }}
steps:
- name: Available image version check for ${{ github.event.client_payload.ReleaseBranchName }}
run: |
if ($env:ImageVersion -ne '${{ github.event.client_payload.imageVersion }}') {
throw "Current runner $env:ImageVersion image version don't match ${{ github.event.client_payload.imageVersion }}."
}
#Install and run SYFT, compress SBOM, upload it to release assets
create-sbom:
needs: version-check
runs-on: ${{ github.event.client_payload.agentSpec }}
steps:
#Installation section
- name: Install SYFT tool on Windows
if: ${{ runner.os == 'Windows' }}
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b D:/syft
- name: Install SYFT tool on Ubuntu or macOS
if: ${{ runner.os != 'Windows' }}
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
#Running section.
- name: Run SYFT on Windows
if: ${{ runner.os == 'Windows' }}
run: D:/syft/syft dir:C:/ -vv -o spdx-json=sbom.json
- name: Run SYFT on Ubuntu
if: ${{ runner.os == 'Linux' }}
run: syft dir:/ -vv -o spdx-json=sbom.json
- name: Run SYFT on macOS
if: ${{ runner.os == 'macOS' }}
run: syft dir:/ -vv -o spdx-json=sbom.json --exclude ./Users --exclude ./System/Volumes --exclude ./private
shell: bash
#Preparing artifact (raw SBOM.json is too big)
- name: Compress SBOM file
run: Compress-Archive sbom.json sbom.json.zip
#Upload artifact action
- uses: actions/upload-artifact@v3
with:
name: sbom-${{ github.event.client_payload.agentSpec }}-${{ github.event.client_payload.imageVersion }}
path: sbom.json.zip
if-no-files-found: warn
#Upload release asset action
#Might be changed to softprops/action-gh-release after additional check
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: "https://uploads.github.com/repos/actions/runner-images/releases/${{ github.event.client_payload.ReleaseID }}/assets{?name,label}"
asset_path: ./sbom.json.zip
asset_name: sbom.${{ github.event.client_payload.agentSpec }}.json.zip
asset_content_type: application/zip
-44
View File
@@ -1,44 +0,0 @@
# Adapted from: https://github.com/microsoft/azure-pipelines-tasks/blob/master/.github/workflows/blank.yml
# This action labels and assigns newly opened issues
name: Issue triager
on:
issues:
types: [opened]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: damccorm/tag-ur-it@master
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: "./triage-rules.yml"
- if: always()
uses: actions/github-script@0.4.0
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issueLabels = await github.issues.listLabelsOnIssue({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
});
const isAnnouncement = issueLabels.data && issueLabels.data
.map(label => label.name)
.includes('Announcement');
if (!isAnnouncement) {
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs triage']
})
}
+10 -3
View File
@@ -5,6 +5,10 @@ name: Linter
on:
pull_request:
branches: [ main ]
paths:
- '**.json'
- '**.md'
- '**.sh'
jobs:
build:
@@ -13,16 +17,19 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v3
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JSON: true
VALIDATE_MD: true
VALIDATE_MARKDOWN: true
DEFAULT_BRANCH: ${{ github.base_ref }}
FILTER_REGEX_EXCLUDE: .*images/*/.*-Readme.md
- name: Checking shebang lines in MacOS and Ubuntu releases.
run: ./images.CI/shebang-linter.ps1
+207
View File
@@ -0,0 +1,207 @@
name: macOS image generation
on:
workflow_call:
inputs:
image_label:
type: string
description: macOS codename
required: true
base_image_name:
type: string
description: Base clean image
required: true
template_path:
type: string
description: Packer template path
required: true
target_datastore:
type: string
description: Image datastore
required: true
custom_repo:
type: string
description: Custom repo to checkout
required: false
custom_repo_commit_hash:
type: string
description: Custom repo commit hash
required: false
env:
KEYVAULT: imagegeneration
ESXI_CLUSTER: mcv2-build-unstable
VCENTER_DATACENTER: imagegen
OUTPUT_FOLDER: mms-output
BUILD_DATASTORE: ds-image
defaults:
run:
shell: pwsh
jobs:
build:
#
# "macos-vmware" is dedicated runner not available in forks.
# to reduce undesired run attempts in forks, stick jobs to "actions" organization only
#
runs-on: macos-vmware
if: ${{ github.repository_owner == 'actions' }}
timeout-minutes: 1200
steps:
- name: Set image variables
run: |
$currentDate = Get-Date -Format "yyyyMMdd"
$templatePath = "${{ inputs.template_path }}"
$osName = $(($templatePath.Split("/")[-1]).Split(".")[0])
$virtualMachineName = "${osName}_${currentDate}_unstable.${{ github.run_id }}.${{ github.run_attempt }}"
"VM_NAME=$virtualMachineName" | Out-File -Append -FilePath $env:GITHUB_ENV
- name: Determine checkout type
run: |
if ("${{ inputs.custom_repo }}" -and "${{ inputs.custom_repo_commit_hash }}") {
$checkoutType = "custom_repo"
} elseif (("${{ github.event_name }}" -eq "pull_request_target") -and ("${{ github.event.action }}" -eq "labeled" )) {
$checkoutType = "pull_request"
} else {
$checkoutType = "main"
}
"CHECKOUT_TYPE=$checkoutType" | Out-File -Append $env:GITHUB_ENV
- name: Checkout repository
if: ${{ env.CHECKOUT_TYPE == 'main' }}
uses: actions/checkout@v3
with:
repository: actions/runner-images
- name: Checkout PR
if: ${{ env.CHECKOUT_TYPE == 'pull_request' }}
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout custom repository
if: ${{ env.CHECKOUT_TYPE == 'custom_repo' }}
uses: actions/checkout@v3
with:
repository: '${{ inputs.custom_repo }}'
ref: '${{ inputs.custom_repo_commit_hash }}'
- name: Validate contributor permissions
if: ${{ github.event_name == 'pull_request_target' }}
run: |
[string]$contributorAllowList = "${{ vars.CONTRIBUTOR_ALLOWLIST }}"
./images.CI/macos/validate-contributor.ps1 `
-RepositoryName ${{ github.repository }} `
-AccessToken ${{ secrets.GH_FEED }} `
-SourceBranch "refs/pull/${{ github.event.pull_request.number }}/merge" `
-ContributorAllowList $contributorAllowList
- name: Select datastore
run: |
./images.CI/macos/select-datastore.ps1 `
-VMName "${{ env.VM_NAME }}" `
-VIServer ${{ secrets.VISERVER_V2 }} `
-VIUserName ${{ secrets.VI_USER_NAME }} `
-VIPassword ${{ secrets.VI_PASSWORD }} `
-Cluster ${{ env.ESXI_CLUSTER }}
- name: Build VM
run: |
$SensitiveData = @(
'IP address:',
'Using ssh communicator to connect:'
)
packer build -on-error=abort `
-var="vcenter_server=${{ secrets.VISERVER_V2 }}" `
-var="vcenter_username=${{ secrets.VI_USER_NAME }}" `
-var="vcenter_password=${{ secrets.VI_PASSWORD }}" `
-var="vcenter_datacenter=${{ env.VCENTER_DATACENTER }}" `
-var="cluster_or_esxi_host=${{ env.ESXI_CLUSTER }}" `
-var="esxi_datastore=${{ env.BUILD_DATASTORE }}" `
-var="output_folder=${{ env.OUTPUT_FOLDER }}" `
-var="vm_username=${{ secrets.VM_USERNAME }}" `
-var="vm_password=${{ secrets.VM_PASSWORD }}" `
-var="github_api_pat=${{ secrets.GH_FEED_TOKEN }}" `
-var="build_id=${{ env.VM_NAME }}" `
-var="baseimage_name=${{ inputs.base_image_name }}" `
-var="xcode_install_user=${{ secrets.XCODE_USER }}" `
-var="xcode_install_password=${{ secrets.XCODE_PASSWORD }}" `
-color=false `
${{ inputs.template_path }} `
| Where-Object {
#Filter sensitive data from Packer logs
$currentString = $_
$sensitiveString = $SensitiveData | Where-Object { $currentString -match $_ }
$sensitiveString -eq $null
}
working-directory: images/macos
env:
PACKER_LOG: 1
PACKER_LOG_PATH: ${{ runner.temp }}/packer-log.txt
- name: Prepare artifact
shell: bash
run: |
echo "Preparing artifact directory"
mkdir -p ${{ runner.temp }}/artifacts
echo "Copy image output files"
cp -R "images/image-output/software-report/." "${{ runner.temp }}/artifacts"
echo "Put VM name to 'VM_Done_Name' file"
echo "${{ env.VM_NAME }}" > "${{ runner.temp }}/artifacts/VM_Done_Name"
- name: Print markdown software report
run: |
Get-Content "${{ runner.temp }}/artifacts/systeminfo.md"
- name: Print json software report
run: |
Get-Content "${{ runner.temp }}/artifacts/systeminfo.json"
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: Built_VM_Artifacts
path: ${{ runner.temp }}/artifacts/
- name: Print provisioners duration
run: |
./images.CI/measure-provisioners-duration.ps1 `
-PackerLogPath "${{ runner.temp }}/packer-log.txt" `
-PrintTopNLongest 25
- name: Move vm to cold storage and clear datastore tag
if: ${{ always() }}
run: |
./images.CI/macos/move-vm.ps1 `
-VMName "${{ env.VM_NAME }}" `
-TargetDataStore "${{ inputs.target_datastore }}" `
-VIServer "${{ secrets.VISERVER_V2 }}" `
-VIUserName "${{ secrets.VI_USER_NAME }}" `
-VIPassword "${{ secrets.VI_PASSWORD }}" `
-JobStatus "${{ job.status }}"
- name: Set VM size
run: |
$cpuCount = 3
$coresPerSocketCount = 3
$memory = 14336
./images.CI/macos/set-vm-size.ps1 `
-VMName "${{ env.VM_NAME }}" `
-CpuCount "$cpuCount" `
-CoresPerSocketCount "$coresPerSocketCount" `
-Memory "$memory" `
-VIServer "${{ secrets.VISERVER_V2 }}" `
-VIUserName "${{ secrets.VI_USER_NAME }}" `
-VIPassword "${{ secrets.VI_PASSWORD }}"
- name: Destroy VM (if build canceled only)
if: ${{ cancelled() }}
run: |
./images.CI/macos/destroy-vm.ps1 `
-VMName "${{ env.VM_NAME }}" `
-VIServer "${{ secrets.VISERVER_V2 }}" `
-VIUserName "${{ secrets.VI_USER_NAME }}" `
-VIPassword "${{ secrets.VI_PASSWORD }}"
+30
View File
@@ -0,0 +1,30 @@
run-name: macOS-11_unstable.${{ github.run_id }}.${{ github.run_attempt }}
on:
workflow_dispatch:
inputs:
CUSTOM_REPOSITORY:
description: 'Custom repository (owner/repo)'
required: false
CUSTOM_REPOSITORY_COMMIT_HASH:
description: 'Commit hash'
required: false
pull_request_target:
types: labeled
paths:
- 'images/macos/**'
schedule:
- cron: '45 0 * * *'
jobs:
macOS_11:
if: ${{ (github.event.label.name == 'CI macos-all') || (github.event.label.name == 'CI macos-11') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
name: macOS-11_unstable.${{ github.run_id }}.${{ github.run_attempt }}
uses: ./.github/workflows/macos-generation.yml
with:
image_label: 'macOS Big Sur'
base_image_name: 'clean-macOS-11-380Gb-runner'
template_path: 'templates/macOS-11.json'
target_datastore: 'ds-image'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
secrets: inherit
+30
View File
@@ -0,0 +1,30 @@
run-name: macOS-12_unstable.${{ github.run_id }}.${{ github.run_attempt }}
on:
workflow_dispatch:
inputs:
CUSTOM_REPOSITORY:
description: 'Custom repository (owner/repo)'
required: false
CUSTOM_REPOSITORY_COMMIT_HASH:
description: 'Commit hash'
required: false
pull_request_target:
types: labeled
paths:
- 'images/macos/**'
schedule:
- cron: '0 0 * * *'
jobs:
macOS_12:
if: ${{ (github.event.label.name == 'CI macos-all') || (github.event.label.name == 'CI macos-12') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
name: macOS-12_unstable.${{ github.run_id }}.${{ github.run_attempt }}
uses: ./.github/workflows/macos-generation.yml
with:
image_label: 'macOS Monterey'
base_image_name: 'clean-macOS-12-380Gb-runner'
template_path: 'templates/macOS-12.json'
target_datastore: 'ds-image'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
secrets: inherit
+1 -12
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -46,14 +46,3 @@ jobs:
pull_number: ${{ github.event.client_payload.PullRequestNumber }},
merge_method: "squash"
})
- name: Delete docs branch ${{ github.event.client_payload.ReleaseBranchName }}-docs
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "heads/${{ github.event.client_payload.ReleaseBranchName }}-docs"
})
+25
View File
@@ -0,0 +1,25 @@
# CI Validation
name: PowerShell Tests
on:
pull_request:
branches: [ main ]
paths:
- 'helpers/software-report-base/**'
jobs:
powershell-tests:
name: PowerShell tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Run Software Report module tests
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
Invoke-Pester -Output Detailed "helpers/software-report-base/tests"
+133
View File
@@ -0,0 +1,133 @@
name: MMS image generation
on:
workflow_call:
inputs:
image_name:
type: string
description: An OS image to build
required: true
image_readme_name:
type: string
description: README file path
required: true
custom_repo:
type: string
description: Custom repo to checkout
required: false
custom_repo_commit_hash:
type: string
description: Custom repo commit hash
required: false
defaults:
run:
shell: pwsh
jobs:
build:
#
# "azure-builds" is dedicated runner not available in forks.
# to reduce undesired run attempts in forks, stick jobs to "actions" organization only
#
runs-on: azure-builds
if: ${{ github.repository_owner == 'actions' }}
timeout-minutes: 1200
steps:
- name: Determine checkout type
run: |
if ("${{ inputs.custom_repo }}" -and "${{ inputs.custom_repo_commit_hash }}") {
$checkoutType = "custom_repo"
} elseif (("${{ github.event_name }}" -eq "pull_request_target") -and ("${{ github.event.action }}" -eq "labeled" )) {
$checkoutType = "pull_request"
} else {
$checkoutType = "main"
}
"CHECKOUT_TYPE=$checkoutType" | Out-File -Append $env:GITHUB_ENV
- name: Checkout repository
if: ${{ env.CHECKOUT_TYPE == 'main' }}
uses: actions/checkout@v3
with:
repository: actions/runner-images
- name: Checkout PR
if: ${{ env.CHECKOUT_TYPE == 'pull_request' }}
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout custom repository
if: ${{ env.CHECKOUT_TYPE == 'custom_repo' }}
uses: actions/checkout@v3
with:
repository: '${{ inputs.custom_repo }}'
ref: '${{ inputs.custom_repo_commit_hash }}'
- name: Set image varibles
run: |
$ImageType = "${{ inputs.image_name }}"
if ($ImageType.StartsWith("ubuntu")) { $TemplateDirectoryName = "linux" } else { $TemplateDirectoryName = "win" }
$TemplateDirectoryPath = Join-Path "images" $TemplateDirectoryName | Resolve-Path
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.pkr.hcl"
if ( -not (Test-Path $TemplatePath) ) {
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.json"
}
"TemplatePath=$TemplatePath" | Out-File -Append -FilePath $env:GITHUB_ENV
"TemplateDirectoryPath=$TemplateDirectoryPath" | Out-File -Append -FilePath $env:GITHUB_ENV
"ImageType=$ImageType" | Out-File -Append -FilePath $env:GITHUB_ENV
- name: Build image
run: |
./images.CI/linux-and-win/build-image.ps1 `
-TemplatePath ${{ env.TemplatePath }} `
-ClientId ${{ secrets.CLIENT_ID }} `
-ClientSecret ${{ secrets.CLIENT_SECRET }} `
-Location ${{ secrets.AZURE_LOCATION }} `
-ResourcesNamePrefix ${{ github.run_number }} `
-ResourceGroup ${{ secrets.AZURE_RESOURCE_GROUP }} `
-StorageAccount ${{ secrets.AZURE_STORAGE_ACCOUNT }} `
-SubscriptionId ${{ secrets.AZURE_SUBSCRIPTION }} `
-TenantId ${{ secrets.AZURE_TENANT }} `
-VirtualNetworkName ${{ secrets.BUILD_AGENT_VNET_NAME }} `
-VirtualNetworkSubnet ${{ secrets.BUILD_AGENT_SUBNET_NAME }} `
-VirtualNetworkRG ${{ secrets.BUILD_AGENT_VNET_RESOURCE_GROUP }} `
env:
PACKER_LOG: 1
PACKER_LOG_PATH: ${{ runner.temp }}/packer-log.txt
RUN_VALIDATION_FLAG: true
- name: Output Readme file content
run: |
Get-Content -Path (Join-Path "$env:TemplateDirectoryPath" "${{ inputs.image_readme_name }}")
- name: Print provisioners duration
run: |
./images.CI/measure-provisioners-duration.ps1 `
-PackerLogPath "${{ runner.temp }}/packer-log.txt" `
-PrefixToPathTrim ${{ env.TemplateDirectoryPath }} `
-PrintTopNLongest 25
- name: Create release for VM deployment
run: |
./images.CI/linux-and-win/create-release.ps1 `
-BuildId ${{ github.run_number }} `
-Organization ${{ secrets.RELEASE_TARGET_ORGANIZATION }} `
-DefinitionId ${{ secrets.RELEASE_TARGET_DEFINITION_ID }} `
-Project ${{ secrets.RELEASE_TARGET_PROJECT }} `
-ImageName ${{ env.ImageType }} `
-AccessToken ${{ secrets.RELEASE_TARGET_TOKEN }}
- name: Clean up resources
if: ${{ always() }}
run: |
./images.CI/linux-and-win/cleanup.ps1 `
-ResourcesNamePrefix ${{ github.run_number }} `
-Image ${{ env.ImageType }} `
-StorageAccount ${{ secrets.AZURE_STORAGE_ACCOUNT }} `
-SubscriptionId ${{ secrets.AZURE_SUBSCRIPTION }} `
-ClientId ${{ secrets.CLIENT_ID }} `
-ClientSecret ${{ secrets.CLIENT_SECRET }} `
-TenantId ${{ secrets.AZURE_TENANT }}
+27
View File
@@ -0,0 +1,27 @@
run-name: Ubuntu20.04 - ${{ (github.event.pull_request.title || 'scheduled/manual run') }}
on:
workflow_dispatch:
inputs:
CUSTOM_REPOSITORY:
description: 'Custom repository (owner/repo)'
required: false
CUSTOM_REPOSITORY_COMMIT_HASH:
description: 'Commit hash'
required: false
pull_request_target:
types: labeled
paths:
- 'images/linux/**'
schedule:
- cron: '0 0 * * *'
jobs:
Ubuntu_2004:
if: ${{ (github.event.label.name == 'CI ubuntu-all') || (github.event.label.name == 'CI ubuntu-2004') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
uses: ./.github/workflows/ubuntu-win-generation.yml
with:
image_name: 'ubuntu2004'
image_readme_name: 'Ubuntu2004-Readme.md'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
secrets: inherit
+27
View File
@@ -0,0 +1,27 @@
run-name: Ubuntu22.04 - ${{ (github.event.pull_request.title || 'scheduled/manual run') }}
on:
workflow_dispatch:
inputs:
CUSTOM_REPOSITORY:
description: 'Custom repository (owner/repo)'
required: false
CUSTOM_REPOSITORY_COMMIT_HASH:
description: 'Commit hash'
required: false
pull_request_target:
types: labeled
paths:
- 'images/linux/**'
schedule:
- cron: '0 0 * * *'
jobs:
Ubuntu_2204:
if: ${{ (github.event.label.name == 'CI ubuntu-all') || (github.event.label.name == 'CI ubuntu-2204') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
uses: ./.github/workflows/ubuntu-win-generation.yml
with:
image_name: 'ubuntu2204'
image_readme_name: 'Ubuntu2204-Readme.md'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
secrets: inherit
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Update release for ${{ github.event.client_payload.ReleaseBranchName }}
uses: actions/github-script@v2
+27
View File
@@ -0,0 +1,27 @@
run-name: Windows 2019 - ${{ (github.event.pull_request.title || 'scheduled/manual run') }}
on:
workflow_dispatch:
inputs:
CUSTOM_REPOSITORY:
description: 'Custom repository (owner/repo)'
required: false
CUSTOM_REPOSITORY_COMMIT_HASH:
description: 'Commit hash'
required: false
pull_request_target:
types: labeled
paths:
- 'images/win/**'
schedule:
- cron: '0 0 * * *'
jobs:
Windows_2019:
if: ${{ (github.event.label.name == 'CI windows-all') || (github.event.label.name == 'CI windows-2019') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
uses: ./.github/workflows/ubuntu-win-generation.yml
with:
image_name: 'windows2019'
image_readme_name: 'Windows2019-Readme.md'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
secrets: inherit
+27
View File
@@ -0,0 +1,27 @@
run-name: Windows 2022 - ${{ (github.event.pull_request.title || 'scheduled/manual run') }}
on:
workflow_dispatch:
inputs:
CUSTOM_REPOSITORY:
description: 'Custom repository (owner/repo)'
required: false
CUSTOM_REPOSITORY_COMMIT_HASH:
description: 'Commit hash'
required: false
pull_request_target:
types: labeled
paths:
- 'images/win/**'
schedule:
- cron: '0 0 * * *'
jobs:
Windows_2022:
if: ${{ (github.event.label.name == 'CI windows-all') || (github.event.label.name == 'CI windows-2022') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }}
uses: ./.github/workflows/ubuntu-win-generation.yml
with:
image_name: 'windows2022'
image_readme_name: 'Windows2022-Readme.md'
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
secrets: inherit
+7 -1
View File
@@ -267,6 +267,9 @@ paket-files/
.idea/
*.sln.iml
# VSCode settings
.vscode/settings.json
# CodeRush
.cr/
@@ -387,4 +390,7 @@ public
.dynamodb/
# visual studio code launch configuration
launch.json
launch.json
# Ignore dynamic template
images/*/*-temp.json
-3
View File
@@ -1,3 +0,0 @@
{
"files.trimTrailingWhitespace": false
}
+6 -6
View File
@@ -1,7 +1,7 @@
## Contributing
[fork]: https://github.com/actions/virtual-environments/fork
[pr]: https://github.com//actions/virtual-environments/compare
[fork]: https://github.com/actions/runner-images/fork
[pr]: https://github.com//actions/runner-images/compare
[code-of-conduct]: CODE_OF_CONDUCT.md
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
@@ -15,7 +15,7 @@ Please note that this project is released with a [Contributor Code of Conduct][c
1. [Fork][fork] and clone the repository
1. Create a new branch: `git checkout -b my-branch-name`
1. Make your changes, ensure that they include steps to install, validate post-install and update software report (please see [How to add new tool](CONTRIBUTING.md#how-to-add-new-tool) for details).
1. Test your changes by [creating VHD and deploying a VM](help/CreateImageAndAzureResources.md).
1. Test your changes by [creating VHD and deploying a VM](docs/create-image-and-azure-resources.md).
1. Push to your fork and [submit a pull request][pr]
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
@@ -32,13 +32,13 @@ Here are a few things you can do that will increase the likelihood of your pull
### General rules
- For every new tool add validation scripts and update software report script to make sure that it is included to documentation
- If the tool is available in other platforms (macOS, Windows, Linux), make sure you include it in as many as possible.
- If installing a few versions of the tool, consider putting the list of versions in the corresponding `toolset.json` file. It will help other customers to configure their builds flexibly. See [toolset-windows-2016.json](images/win/toolsets/toolset-2019.json) as example.
- If installing a few versions of the tool, consider putting the list of versions in the corresponding `toolset.json` file. It will help other customers to configure their builds flexibly. See [toolset-windows-2019.json](images/win/toolsets/toolset-2019.json) as example.
- Use consistent naming across all files
- Validation scripts should be simple and shouldn't change image content
### Windows
- Add a script that will install the tool and put the script in the `scripts/Installers` folder.
There are a bunch of helper functions that could simplify your code: `Choco-Install`, `Install-Binary`, `Install-VsixExtension`, `Start-DownloadWithRetry`, `Test-IsWin16`, `Test-IsWin19` (find the full list of helpers in [ImageHelpers.psm1](images/win/scripts/ImageHelpers/ImageHelpers.psm1)).
There are a bunch of helper functions that could simplify your code: `Choco-Install`, `Install-Binary`, `Install-VsixExtension`, `Start-DownloadWithRetry`, `Test-IsWin19`, `Test-IsWin22` (find the full list of helpers in [ImageHelpers.psm1](images/win/scripts/ImageHelpers/ImageHelpers.psm1)).
- Add a script that will validate the tool installation and put the script in the `scripts/Tests` folder.
We use [Pester v5](https://github.com/pester/pester) for validation scripts. If the tests for the tool are complex enough, create a separate `*.Tests.ps1`. Otherwise, use `Tools.Tests.ps1` for simple tests.
Add `Invoke-PesterTests -TestFile <testFileName> [-TestName <describeName>]` at the end of the installation script to make sure that your tests will be run.
@@ -49,7 +49,7 @@ Add `Invoke-PesterTests -TestFile <testFileName> [-TestName <describeName>]` at
Use existing scripts such as [github-cli.sh](images/linux/scripts/installers/github-cli.sh) as a starting point.
- Use [helpers](images/linux/scripts/helpers/install.sh) to simplify installation process.
- Validation part should `exit 1` if any issue with installation.
- Add changes to the software report generator `images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1`. The software report generator is used to generate an image's README file, e.g. [Ubuntu1804-Readme.md](images/linux/Ubuntu1804-README.md) and it uses [MarkdownPS](https://github.com/Sarafian/MarkdownPS).
- Add changes to the software report generator `images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1`. The software report generator is used to generate an image's README file, e.g. [Ubuntu2004-Readme.md](images/linux/Ubuntu2004-README.md) and it uses [MarkdownPS](https://github.com/Sarafian/MarkdownPS).
### macOS
macOS source lives in this repository and available for everyone. However, macOS image-generation CI doesn't support external contributions yet so we are not able to accept pull-requests for now.
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2020 GitHub
Copyright (c) 2023 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+188 -51
View File
@@ -1,65 +1,202 @@
# GitHub Actions Virtual Environments
This repository contains the source used to create the [virtual environments](https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners) for GitHub Actions hosted runners, as well as the VM images of [Microsoft-hosted agents](https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent) used for Azure Pipelines. To file bug reports, or request that tools be added/updated, please [open an issue using the appropriate template](https://github.com/actions/virtual-environments/issues/new/choose). To build a VM machine from this repo's source, see the [instructions](./help/CreateImageAndAzureResources.md).
For general questions about using the virtual environments or writing your Actions workflow, please open requests in the [GitHub Actions Community Forum](https://github.community/c/github-actions/41).
# GitHub Actions Runner Images
## Available Environments
| Environment | YAML Label | Included Software | Latest Release & Rollout Progress |
**Table of Contents**
- [About](#about)
- [Available Images](#available-images)
- [Announcements](#announcements)
- [Image Definitions](#image-definitions)
- [Image Releases](#image-releases)
- [Software and Image Support](#software-and-image-support)
- [How to Interact with the Repo](#how-to-interact-with-the-repo)
- [FAQs](#faqs)
## About
This repository contains the source code used to create the VM images for [GitHub-hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) used for Actions, as well as for [Microsoft-hosted agents](https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent) used for Azure Pipelines.
To build a VM machine from this repo's source, see the [instructions](docs/create-image-and-azure-resources.md).
## Available Images
| Image | YAML Label | Included Software | Rollout Progress of Latest Image Release |
| --------------------|---------------------|--------------------|---------------------|
| Ubuntu 20.04 | `ubuntu-20.04` | [ubuntu-20.04] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=ubuntu20&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=ubuntu20&redirect=1)
| Ubuntu 18.04 | `ubuntu-latest` or `ubuntu-18.04` | [ubuntu-18.04] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=ubuntu18&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=ubuntu18&redirect=1)
| Ubuntu 16.04 | `ubuntu-16.04` | [ubuntu-16.04] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=ubuntu16&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=ubuntu16&redirect=1) |
| macOS 11.0 | `macos-11.0` | [macOS-11.0] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-11.0&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-11.0&redirect=1)
| macOS 10.15 | `macos-latest` or `macos-10.15` | [macOS-10.15] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-10.15&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-10.15&redirect=1)
| Windows Server 2019 | `windows-latest` or `windows-2019` | [windows-2019] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=windows-2019&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=windows-2019&redirect=1)
| Windows Server 2016 | `windows-2016` | [windows-2016] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=windows-2016&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=windows-2016&redirect=1)
```
The Ubuntu 20.04 virtual environment is currently provided as a preview only.
The "ubuntu-latest" YAML workflow label still uses the Ubuntu 18.04 virtual environment.
```
```
The MacOS 11.0 virtual environment is currently provided as a preview only.
The "macos-latest" YAML workflow label still uses the MacOS 10.15 virtual environment.
```
| Ubuntu 22.04 | `ubuntu-latest` or `ubuntu-22.04` | [ubuntu-22.04] | [![status22](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=ubuntu22&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=ubuntu22&redirect=1)
| Ubuntu 20.04 | `ubuntu-20.04` | [ubuntu-20.04] | [![status20](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=ubuntu20&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=ubuntu20&redirect=1)
| macOS 13 [beta] | `macos-13` or `macos-13-xl`| [macOS-13] | [![statusumac13](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=macos-13&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=macos-13&redirect=1)
| macOS 12 | `macos-latest`, `macos-latest-xl`, `macos-12`, or `macos-12-xl`| [macOS-12] | [![statusumac12](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=macos-12&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=macos-12&redirect=1)
| macOS 11 | `macos-11`| [macOS-11] | [![statusmac11](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=macos-11&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=macos-11&redirect=1)
| Windows Server 2022 | `windows-latest` or `windows-2022` | [windows-2022] | [![statuswin22](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=windows-2022&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=windows-2022&redirect=1) |
| Windows Server 2019 | `windows-2019` | [windows-2019] | [![statuswin19](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=windows-2019&badge=1)](https://runnerimagesdeploymentstatus.azurewebsites.net/api/status?imageName=windows-2019&redirect=1)
***Looking for other Linux distributions?*** We do not plan to offer other Linux distributions. We recommend using Docker if you'd like to build using other distributions with the hosted virtual environments. Alternatively, you can leverage [self-hosted runners] and fully customize your environment to your needs.
### Label scheme
***How to contribute to macOS source?*** macOS source lives in this repository and available for everyone. However, MacOS image-generation CI doesn't support external contributions yet so we are not able to accept pull-requests for now.
We are in the process of preparing MacOS CI to accept contributions. Until then, we appreciate your patience and ask you continue to make tool requests by filing issues.
- In general the `-latest` label is used for the latest OS image version that is GA
- Before moving the`-latest` label to a new OS version we will announce the change and give sufficient lead time for users to update their workflows
## Software Guidelines
In general, these are the guidelines we consider when deciding what to pre-install:
[ubuntu-22.04]: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
[ubuntu-20.04]: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
[windows-2022]: https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md
[windows-2019]: https://github.com/actions/runner-images/blob/main/images/win/Windows2019-Readme.md
[macOS-11]: https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md
[macOS-12]: https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
[macOS-13]: https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
[macOS-10.15]: https://github.com/actions/runner-images/blob/main/images/macos/macos-10.15-Readme.md
[self-hosted runners]: https://help.github.com/en/actions/hosting-your-own-runners
- Tools and ecosystems that are broadly popular and widely-used will be given priority.
- Recent versions of tools will be given priority over older versions.
- Tools and versions that are deprecated or have reached end-of-life will not be added.
- Tools and versions will typically be removed 6 months after they are deprecated or have reached end-of-life.
- If a tool can be installed during the build, we will evaluate how much time is saved
and how much space is used by having the tool pre-installed.
- MIT, Apache, and GNU licenses are ok, anything else we'll have to check with lawyers.
- If a tool takes much space we will evaluate space usage and provide a decision if this tool can be pre-installed.
- If a tool requires the support of more than one version, we will consider the cost of this maintenance, how often new versions bring dangerous updates.
## Announcements
**Note:** For new tools, please, create an issue and get an approval from us to add this tool to the image before creating the pull request.
See notable upcoming changes by viewing issues with the [Announcement](https://github.com/actions/runner-images/labels/Announcement) label.
## Image Definitions
### Beta
The purpose of a Beta is to collect feedback on an image before it is released to GA. The goal of a Beta is to identify and fix any potential issues that exist on that
image. Images are updated on a weekly cadence. Any workflows that run on a beta image do not fall under the customer [SLA](https://github.com/customer-terms/github-online-services-sla) in place for Actions.
Customers choosing to use Beta images are encouraged to provide feedback in the runner-images repo by creating an issue. A Beta may take on different availability, i.e. public vs private.
### GA
A GA (General Availability) image has been through a Beta period and is deemed ready for general use. Images are updated on a weekly cadence. In order to be moved to
GA the image must meet the following criteria:
1. Has been through a Beta period (public or private)
2. Most major software we install on the image has a compatible
version for the underlying OS and
3. All major bugs reported during the Beta period have been addressed.
This image type falls under the customer [SLA](https://github.com/customer-terms/github-online-services-sla) for actions. GA images are eventually deprecated according to our guidelines as we only support the
latest 2 versions of an OS.
#### Latest Migration Process
GitHub Actions and Azure DevOps use the `-latest` YAML label (ex: `ubuntu-latest`, `windows-latest`, and `macos-latest`). These labels point towards the newest stable OS version available.
The `-latest` migration process is gradual and happens over 1-2 months in order to allow customers to adapt their workflows to the newest OS version. During this process, any workflow using the `-latest` label, may see changes in the OS version in their workflows or pipelines. To avoid unwanted migration, users can specify a specific OS version in the yaml file (ex: macos-12, windows-2022, ubuntu-22.04).
## Image Releases
*How to best follow along with changes*
1. Find the latest releases for this repository [here.](https://github.com/actions/runner-images/releases)
2. Subscribe to the releases coming out of this repository, instructions [here.](https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications#configuring-your-watch-settings-for-an-individual-repository)
3. Upcoming changes: A pre-release is created when the deployment of an image has started. As soon as the deployment is finished, the pre-release is converted to a release. If you have subscribed to releases, you will get notified of pre-releases as well.
- You can also track upcoming changes using the [awaiting-deployment](https://github.com/actions/runner-images/labels/awaiting-deployment) label.
4. For high impact changes, we will post these in advance to the GitHub Changelog on our [blog](https://github.blog/changelog/) and on [twitter](https://twitter.com/GHchangelog).
- Ex: breaking changes, GA or deprecation of images
## Updates to virtual environments
*Cadence*
We typically deploy weekly updates to the software on the virtual environments.
For some tools, we always install the latest at the time of the deployment; for others,
we pin the tool to specific version(s).
- We typically deploy weekly updates to the software on the runner images.
*Following Along / Change Notifications*
## Software and Image Support
* **High Impact Changes** (ex. breaking changes, new or deprecated environments) will be posted to the GitHub Changelog on our [blog](https://github.blog/changelog/) and on [twitter](https://twitter.com/GHchangelog).
Low Impact changes will be pinned in this repository and marked with the [Announcement](https://github.com/actions/virtual-environments/labels/Announcement) label.
* **Regular Weekly Rhythm** can be followed by watching [Releases](https://github.com/actions/virtual-environments/releases) to see when we generate candidate environments or deploy new ones. You can also track upcoming changes using the [awaiting-deployment](https://github.com/actions/virtual-environments/labels/awaiting-deployment) label.
### Support Policy
[ubuntu-20.04]: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
[ubuntu-18.04]: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
[ubuntu-16.04]: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1604-README.md
[Windows-2019]: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
[windows-2016]: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2016-Readme.md
[macOS-10.15]: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md
[macOS-11.0]: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11.0-Readme.md
[self-hosted runners]: https://help.github.com/en/actions/hosting-your-own-runners
- Tools and versions will typically be removed 6 months after they are deprecated or have reached end-of-life
- We support (at maximum) 2 GA images and 1 beta image at a time. We begin the deprecation process of the oldest image label once the newest OS image label has been released to GA.
- The images generally contain the latest versions of packages installed except for Ubuntu LTS where we mostly rely on the Canonical-provided repositories.
- Popular tools can have several versions installed side-by-side with the following strategy:
| Tool name | Installation strategy |
|-----------|-----------------------|
| Docker images | not more than 3 latest LTS OS\tool versions. New images or new versions of current images are added using the standard tool request process |
| Java | all LTS versions |
| Node.js | 3 latest LTS versions |
| Go | 3 latest minor versions |
| Python <br/> Ruby | 5 most popular `major.minor` versions |
| PyPy | 3 most popular `major.minor` versions |
| .NET Core | 2 latest LTS versions and 1 latest version. For each feature version only latest patch is installed |
| GCC <br/> GNU Fortran <br/> Clang <br/> GNU C++ | 3 latest major versions |
| Android NDK | 1 latest non-LTS, 2 latest LTS versions |
| Xcode | - all OS compatible versions side-by-side <br/> - for beta, GM versions - latest beta only <br/> - old patch versions are deprecated in 3 months |
### Package managers usage
We use third-party package managers to install software during the image generation process. The table below lists the package managers and the software installed.
> **Note**: third-party repositories are re-evaluated every year to identify if they are still useful and secure.
| Operating system | Package manager | Third-party repos and packages |
| :--- | :---: | ---: |
| Ubuntu | [APT](https://wiki.debian.org/Apt) | [Eclipse-Temurin (Adoptium)](https://packages.adoptium.net/artifactory/deb) </br> [Erlang](https://packages.erlang-solutions.com/ubuntu) </br>[Firefox](https://launchpad.net/~mozillateam/+archive/ubuntu/ppa) </br> [gcc, gfortran](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test) </br> [git](https://launchpad.net/~git-core/+archive/ubuntu/ppa) </br> [HHvm](https://dl.hhvm.com/ubuntu) </br> [PHP](https://launchpad.net/~ondrej/+archive/ubuntu/php) (Ubuntu 20 only) </br> [Mono](https://download.mono-project.com/repo/ubuntu) </br> [PostgreSQL](https://apt.postgresql.org/pub/repos/apt) </br> [R](https://cloud.r-project.org/bin/linux/ubuntu) |
| | [pipx](https://pypa.github.io/pipx) | ansible-core </br>yamllint |
| Windows | [Chocolatey](https://chocolatey.org) | No third-party repos installed |
| macOS | [Homebrew](https://brew.sh) | [aws-cli v2](https://github.com/aws/homebrew-tap) </br> [azure/bicep](https://github.com/Azure/homebrew-bicep) </br> [mongodb/brew](https://github.com/mongodb/homebrew-brew) |
| | [pipx](https://pypa.github.io/pipx/) | yamllint |
### Image Deprecation Policy
- Images begin the deprecation process of the oldest image label once a new GA OS version has been released.
- Deprecation process begins with an announcement that sets a date for deprecation
- As it gets closer to the date, GitHub begins doing scheduled brownouts of the image
- During this time there will be an Announcement pinned in the repo to remind users of the deprecation.
- Finally GitHub will deprecate the image and it will no longer be available
### Preinstallation Policy
In general, these are the guidelines we follow when deciding what to pre-install on our images:
- Popularity: widely-used tools and ecosystems will be given priority.
- Latest Technology: recent versions of tools will be given priority.
- Deprecation: end-of-life tools and versions will not be added.
- Licensing: MIT, Apache, or GNU licenses are allowed.
- Time & Space on the Image: we will evaluate how much time is saved and how much space is used by having the tool pre-installed.
- Support: If a tool requires the support of more than one version, we will consider the cost of this maintenance.
### Default Version Update Policy
- In general, once a new version is installed on the image, we announce the default version update 2 weeks prior to deploying it.
- For potentially dangerous updates, we may extend the timeline up to 1 month between the announcement and deployment.
## How to Interact with the Repo
- **Issues**: To file a bug report, or request tools to be added/updated, please [open an issue using the appropriate template](https://github.com/actions/runner-images/issues/new/choose)
- **Discussions**: If you want to share your thoughts about image configuration, installed software, or bring a new idea, please create a new topic in a [discussion](https://github.com/actions/runner-images/discussions) for a corresponding category. Before making a new discussion please make sure no similar topics were created earlier.
- For general questions about using the runner images or writing your Actions workflow, please open requests in the [GitHub Actions Community Forum](https://github.community/c/github-actions/41).
## FAQs
<details>
<summary><b><i>What images are available for GitHub Actions and Azure DevOps?</b></i></summary>
The availability of images for GitHub Actions and Azure DevOps is the same. However, deprecation policies may differ. See documentation for more details:
- [GitHub Actions](https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources)
- [Azure DevOps](https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#software)
</details>
<details>
<summary><b><i>What image version is used in my build?</b></i></summary>
Usually, image deployment takes 2-3 days, and documentation in the `main` branch is only updated when deployment is finished. To find out which image version and what software versions are used in a specific build, see `Set up job` (GitHub Actions) or `Initialize job` (Azure DevOps) step log.
<img width="1440" alt="actions-runner-image" src="https://user-images.githubusercontent.com/56982181/169595536-91a8a79b-d5e0-47d1-a736-510cff6cfb83.png">
</details>
<details>
<summary><b><i>Looking for other Linux distributions?</b></i></summary>
We do not plan to offer other Linux distributions. We recommend using Docker if you'd like to build using other distributions with the hosted runner images. Alternatively, you can leverage [self-hosted runners] and fully customize your VM image to your needs.
</details>
<details>
<summary><b><i>How do I contribute to the macOS source?</b></i></summary>
macOS source lives in this repository and is available for everyone. However, macOS image-generation CI doesn't support external contributions yet so we are not able to accept pull-requests for now.
We are in the process of preparing macOS CI to accept contributions. Until then, we appreciate your patience and ask you to continue to make tool requests by filing issues.
</details>
<details>
<summary><b><i>How does GitHub determine what tools are installed on the images?</b></i></summary>
For some tools, we always install the latest at the time of the deployment; for others, we pin the tool to specific version(s). For more details please see the [Preinstallation Policy](#preinstallation-policy)
</details>
<details>
<summary><b><i>How do I request that a new tool be pre-installed on the image?</b></i></summary>
Please create an issue and get an approval from us to add this tool to the image before creating the pull request.
</details>
-1
View File
@@ -1 +0,0 @@
theme: jekyll-theme-slate
+277
View File
@@ -0,0 +1,277 @@
# GitHub Actions Runner Images
The runner-images project uses [Packer](https://www.packer.io/) to generate disk images for Windows 2019/2022 and Ubuntu 20.04/22.04.
Each image is configured by a JSON or HCL2 Packer template that specifies where to build the image (Azure in this case)
and what steps to run to install software and prepare the disk.
The Packer process initializes a connection to Azure subscription using Azure CLI and creates temporary resources
required for the build process: resource group, network interfaces and virtual machine from the "clean" image specified in the template.
If the VM deployment succeeds, Packer connects it using ssh or WinRM and begins executing installation steps from the template one-by-one.
If any step fails, image generation is aborted and the temporary VM is terminated.
Packer also attempts to cleanup all the temporary resources it created (unless otherwise configured).
After successful completion of all installation steps Packer converts snapshot of the temporary VM to VHD image
and uploads it to the specified Azure Storage Account.
## Build agent preparation
Build agent is a machine where Packer process will be started.
You can use any physical or virtual machine running OS Windows or Linux.
Of course you may also use [Azure VM](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-cli).
In any case you will need these software installed:
- Packer 1.8.2 or higher.
Download and install it manually from [here](https://www.packer.io/downloads) or use [Chocolatey](https://chocolatey.org/):
```powershell
choco install packer
```
- Git.
For Linux - install the latest version from your distro's package repo.
For Windows - download and install it from [here](https://gitforwindows.org/) of use [Chocolatey](https://chocolatey.org/):
```powershell
choco install git -params '"/GitAndUnixToolsOnPath"'
```
- Powershell 5.0 or higher.
In Windows you already have it.
For Linux follow instructions [here](https://learn.microsoft.com/en-us/windows-server/administration/linux-package-repository-for-microsoft-software)
to add Microsoft's Linux Software Repository and then install package `powershell`.
- Azure CLI.
Follow instructions [here](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli).
Or if you use Windows you may run this command in Powershell instead:
```powershell
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi
Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
```
- [Az Powershell module](https://docs.microsoft.com/en-us/powershell/azure/install-az-ps).
Run this command in Powershell:
```powershell
Install-Module -Name Az -Repository PSGallery -Force
```
## Automated image generation
This repo bundles script that automates image generation process.
You only need a build agent configured as described above and active Azure subsctiption.
We suggest to start with UbuntuMinimal image because it includes only a minimal set of required software and builds in less then half an hour.
All steps here are supposed to run in Powershell.
First, clone runner-images repository and change directory:
```powershell
git clone https://github.com/actions/runner-images.git
Set-Location runner-images
```
Then import [GenerateResourcesAndImage](../helpers/GenerateResourcesAndImage.ps1) script from `helpers` subdirectory:
```powershell
Import-Module .\helpers\GenerateResourcesAndImage.ps1
```
Finally, run `GenerateResourcesAndImage` function setting mandatory arguments: image type and where to create resources:
- `SubscriptionId` - your Azure Subscription ID
- `ResourceGroupName` - name of the resource group that will be created within your subscription (e.g. "imagegen-test")
- `AzureLocation` - location where resources will be created (e.g. "East US")
- `ImageType` - what image to build (we suggest choosing "UbuntuMinimal" here, other valid options are "Windows2019", "Windows2022", "Ubuntu2004", "Ubuntu2204")
> :warning: When running `GenerateResourcesAndImage` in PowerShell 7.3, following command should be executed first:
> ```powershell
> $PSNativeCommandArgumentPassing = 'Legacy'
> ```
This function automatically creates all required Azure resources and kicks off packer image generation for the selected image type.
When image is ready you may proceed to [deployment](#generated-machine-deployment)
## Image generation customization
Function `GenerateResourcesAndImage` accepts a bunch of arguments that may help you generating image in your specific environment.
For example, you may want that all the resources involved in image generation process are tagged.
In this case pass a HashTable of tags as a value for `Tags` parameter.
If you don't want function to authenticate interactively, you should create Service Principal and invoke the function with parameters `AzureClientId`, `AzureClientSecret` and `AzureTenantId`.
You can find more details [in corresponding section below](#azure-subscription-authentication).
Use `get-help GenerateResourcesAndImage -Detailed` for the complete list of parameters available.
### Network security
To connect to a temporary virtual machine Packer uses WinRM or SSH.
If your build agent is located outside of the Azure subscription where temporary VM is created, the public network interface and public IP address is used.
Make sure that firewalls are configured properly and WinRM (tcp port 5986) and ssh (tcp port 22) connections are allowed both outgoing for build agent and incoming for temporary VM.
Also if you don't want temporary VM to be accessible from everywhere, set `RestrictToAgentIpAddress` parameter value to `$true`
to setup firewall rules allowing access only from your build agent public IP address.
If your build agent and temporary VM are in the same subscription you can configure Packer to connect using private virtual network.
To achieve that set proper values for environment variables `VNET_RESOURCE_GROUP`, `VNET_NAME` and `VNET_SUBNET`.
### Azure subscription authentication
Packer uses Service Principal to authenticate in Azure infrastructure.
For more information about Service Principals refer to
[Azure documentation](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal).
Function `GenerateResourcesAndImage` is able to create Service Principle to be used by Packer.
It uses Connect-AzAccount cmdlet that invokes interactive authentication process by default.
If you don't want to use interactive authentication you should create Service Principal with full read-write permissions for selected Azure subscription on your own
and provide proper values for parameters `AzureClientId`, `AzureClientSecret` and `AzureTenantId`.
Here is an example of how to create Service Principle using Az Powershell module:
```powershell
$credentials = [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential]@{
StartDateTime = Get-Date
EndDateTime = (Get-Date).AddDays(7)
}
$sp = New-AzADServicePrincipal -DisplayName "imagegen-app"
$appCred = New-AzADAppCredential -ApplicationId $sp.AppId -PasswordCredentials $credentials
Start-Sleep -Seconds 30
New-AzRoleAssignment -RoleDefinitionName "Contributor" -PrincipalId $sp.Id
Start-Sleep -Seconds 30
@{
ClientId = $sp.AppId
ClientSecret = $appCred.SecretText
TenantId = (Get-AzSubscription -SubscriptionId $SubscriptionId).TenantId
}
```
## Generated machine deployment
After the successful image generation, Virtual Machine can be created from the generated VHD using [CreateAzureVMFromPackerTemplate](../helpers/CreateAzureVMFromPackerTemplate.ps1) script.
```powershell
Import-Module .\helpers\CreateAzureVMFromPackerTemplate.ps1
CreateAzureVMFromPackerTemplate -SubscriptionId {YourSubscriptionId} -ResourceGroupName {ResourceGroupName} -TemplateFile "C:\BuildVmImages\temporaryTemplate.json" -VirtualMachineName "testvm1" -AdminUsername "shady1" -AdminPassword "SomeSecurePassword1" -AzureLocation "eastus"
```
Where:
- `SubscriptionId` - The Azure subscription Id where resources will be created.
- `ResourceGroupName` - The Azure resource group name where the Azure virtual machine will be created.
- `TemplateFilePath` - The path to the json ARM-template generated by packer during image generation locally.*
- `VirtualMachineName` - The name of the virtual machine to be generated.
- `AdminUserName` - The administrator username for the virtual machine to be created.
- `AdminPassword` - The administrator password for the virtual machine to be created.
- `AzureLocation` - The location where the Azure virtual machine will be provisioned. Example: "eastus"
\* *ARM-template can be obtained from the Packer output. For now, it seems like there is an [Az CLI bug](https://github.com/Azure/azure-cli/issues/5899) with specifying the template through a URI, so download the template from URI, that will be printed at the bottom of image-generation log, and use the local path of the template file.*
The function creates an Azure VM from a template and generates network resources in Azure to make the VM accessible.
## Manual image generation
If you want more control over image generation process you may run Packer directly. This section describes variables defined in Packer template. Some of them may be set using environment variabes.
### Required variables
| Template var | Env var | Description
| ------------ | ------- | -----------
| `subscription_id` | `ARM_SUBSCRIPTION_ID` | Subscription under which the build will be performed.
| `client_id` | `ARM_CLIENT_ID` | The Active Directory service principal associated with your builder.
| `client_secret` | `ARM_CLIENT_SECRET` | The password or secret for your service principal; may be omitted if `client_cert_path` is set.
| `client_cert_path` | `ARM_CLIENT_CERT_PATH` | The location of a PEM file containing a certificate and private key for service principal; may be omitted if `client_secret` is set.
| `location` | `ARM_RESOURCE_LOCATION` | Azure datacenter in which your VM will build.
| `resource_group` | `ARM_RESOURCE_GROUP` | Resource group under which the final artifact will be stored.
| `storage_account` | `ARM_STORAGE_ACCOUNT` | Storage account under which the final artifact will be stored.
### Optional variables
- `build_resource_group_name` - Specify an existing resource group to run the build in it. By default, a temporary resource group will be created and destroyed as part of the build. If you do not have permission to do so, use build_resource_group_name to specify an existing resource group to run the build in it.
- `object_id` - The object ID for the AAD SP. Will be derived from the oAuth token if empty.
- `tenant_id` - The Active Directory tenant identifier with which your `client_id` and `subscription_id` are associated. If not specified, `tenant_id` will be looked up using `subscription_id`.
- `temp_resource_group_name` - Name assigned to the temporary resource group created during the build. If this value is not set, a random value will be assigned. This resource group is deleted at the end of the build.
- `private_virtual_network_with_public_ip` - This value allows you to set a `virtual_network_name` and obtain a public IP. If this value is not set and `virtual_network_name` is defined Packer is only allowed to be executed from a host on the same subnet / virtual network.
- `virtual_network_name` - Use a pre-existing virtual network for the VM. This option enables private communication with the VM, no public IP address is used or provisioned (unless you set `private_virtual_network_with_public_ip`).
- `virtual_network_resource_group_name` - If `virtual_network_name` is set, this value may also be set. If `virtual_network_name` is set, and this value is not set the builder attempts to determine the resource group containing the virtual network. If the resource group cannot be found, or it cannot be disambiguated, this value should be set.
- `virtual_network_subnet_name` - If `virtual_network_name` is set, this value may also be set. If `virtual_network_name` is set, and this value is not set the builder attempts to determine the subnet to use with the virtual network. If the subnet cannot be found, or it cannot be disambiguated, this value should be set.
- `capture_name_prefix` - VHD prefix. The final artifacts will be named PREFIX-osDisk.UUID and PREFIX-vmTemplate.UUID.
### Builder variables
The `builders` section contains variables for the `azure-arm` builder used in the project. Most of the builder variables are inherited from the `user variables` section, however, the variables can be overwritten to adjust image-generation performance.
- `vm_size` - Size of the VM used for building. This can be changed when you deploy a VM from your VHD.
- `image_os` - Type of OS that will be deployed as a temporary VM.
- `image_version` - Specify version of an OS to boot from.
**Detailed Azure builders documentation can be found in [packer documentation](https://www.packer.io/docs/builders/azure).**
### Toolset
Configuration for some installed software is located in `toolset.json` files. These files define the list of Ruby, Python, Go versions, the list of PowerShell modules and VS components that will be installed to image. They can be changed if these tools are not required to reduce image generation time or image size.
Generated tool versions and details can be found in related projects:
- [Python](https://github.com/actions/python-versions/)
- [Go](https://github.com/actions/go-versions)
- [Node](https://github.com/actions/node-versions)
### Post-generation scripts
> :warning: These scripts are intended to run on a VM deployed in Azure
The user, created during the image generation, does not exist in the result VHD hence some configuration files related to the user's home directory need to be changed as well as the file permissions for some directories. Scripts for that are located in the `post-generation` folder in the repository:
- Windows: <https://github.com/actions/runner-images/tree/main/images/win/post-generation>
- Linux: <https://github.com/actions/runner-images/tree/main/images/linux/post-generation>
**Note:** The default user for Linux should have `sudo privileges`.
The scripts are copied to the VHD during the image generation process to the following paths:
- Windows: `C:\post-generation`
- Linux: `/opt/post-generation`
#### Running scripts
- Ubuntu
```bash
sudo su -c "find /opt/post-generation -mindepth 1 -maxdepth 1 -type f -name '*.sh' -exec bash {} \;"
```
- Windows
```powershell
Get-ChildItem C:\post-generation -Filter *.ps1 | ForEach-Object { & $_.FullName }
```
#### Script details
##### Ubuntu
- **cleanup-logs.sh** - removes all build process logs from the machine
- **environment-variables.sh** - replaces `$HOME` with the default user's home directory for environmental variables related to the default user home directory
- **homebrew-permissions.sh** - Resets homebrew repository directory by running `git reset --hard` to make the working tree clean after chmoding /home and changes the repository directory owner to the current user
- **rust-permissions.sh** - fixes permissions for the Rust folder. Detailed issue explanation is provided in [runner-images/issues/572](https://github.com/actions/runner-images/issues/572).
##### Windows
- **GenerateIISExpressCertificate.ps1** - generates and imports a certificate to run applications with IIS Express through HTTPS
- **InternetExplorerConfiguration** - turns off the Internet Explorer Enhanced Security feature
- **Msys2FirstLaunch.ps1** - initializes bash user profile in MSYS2
- **VSConfiguration.ps1** - performs initial Visual Studio configuration
@@ -1,27 +1,27 @@
# Debugging Failed Packer Builds
## Step 1: Run packer build `-on-error=ask`
When you run the `packer build` command, give it the `-on-error=ask` flag.
By default, `packer build` will delete the resource group as soon as the build fails.
`-on-error=ask` will pause it and wait for your input so you have time to remote in to the VM and diagnose the failure.
When the build fails, you will see this:
![Ask on error screenshot](/help/resources/askOnError.png "Ask on error screenshot")
## Step 2: Find the resource group name in the build log
At the beginning of the build log (written to console), find the resource group name for the VM:
![Resource group from log screenshot](/help/resources/resourceGroupName.png "Resource group from log screenshot")
Log into the Azure Portal. Find that resource group under `Resource groups`. You should see the resources for the Packer build:
![Packer resource group in Azure screenshot](/help/resources/packerResourceGroup.png "Packer resource group in Azure screenshot")
## Step 3: Connect to the VM
Select the VM in the resource group. Click `Connect:`
This will download an RDP file. Open that and enter the credentials found in the JSON file you pass to `packer build`:
![VM credentials screenshot](/help/resources/vmCredentials.png "VM credentials screenshot")
# Debugging Failed Packer Builds
## Step 1: Run packer build `-on-error=ask`
When you run the `packer build` command, give it the `-on-error=ask` flag.
By default, `packer build` will delete the resource group as soon as the build fails.
`-on-error=ask` will pause it and wait for your input so you have time to remote in to the VM and diagnose the failure.
When the build fails, you will see this:
![Ask on error screenshot](/docs/resources/askOnError.png "Ask on error screenshot")
## Step 2: Find the resource group name in the build log
At the beginning of the build log (written to console), find the resource group name for the VM:
![Resource group from log screenshot](/docs/resources/resourceGroupName.png "Resource group from log screenshot")
Log into the Azure Portal. Find that resource group under `Resource groups`. You should see the resources for the Packer build:
![Packer resource group in Azure screenshot](/docs/resources/packerResourceGroup.png "Packer resource group in Azure screenshot")
## Step 3: Connect to the VM
Select the VM in the resource group. Click `Connect:`
This will download an RDP file. Open that and enter the credentials found in the JSON file you pass to `packer build`:
![VM credentials screenshot](/docs/resources/vmCredentials.png "VM credentials screenshot")

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Before

Width:  |  Height:  |  Size: 204 KiB

After

Width:  |  Height:  |  Size: 204 KiB

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

-126
View File
@@ -1,126 +0,0 @@
# Virtual-Environments
The virtual-environments project uses [Packer](https://www.packer.io/) to generate disk images for the following platforms: Windows 2016/2019, Ubuntu 16.04/18.04/20.04.
Each image is configured through a JSON template that Packer understands and which specifies where to build the image (Azure in this case), and what scripts to run to install software and prepare the disk.
The Packer process initializes a connection to Azure subscription via Azure CLI, and automatically creates the temporary Azure resources required to build the source VM(temporary resource group, network interfaces, and VM from the "clean" image specified in the template).
If the VM deployment succeeds, the build agent connects to the VM and starts to execute installation steps from the JSON template.
If any step in the JSON template fails, image generation will be aborted and the temporary VM will be terminated. Packer will also attempt to cleanup all the temporary resources it created (unless otherwise told).
After successful image generation, a snapshot of the temporary VM will be converted to VHD image and then uploaded to the specified Azure Storage Account.
## Prerequisites and Image-generation
### Build Agent requirements
- `OS` - Windows/Linux
- `packer` - Can be downloaded from https://www.packer.io/downloads
- `PowerShell 5.0 or higher` or `PSCore` for linux distributes.
- `Azure CLI ` - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
- `Azure Powershell module` - https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-4.6.1
- `Git for Windows` - https://gitforwindows.org/
### Azure DevOps self-hosted pool requirements
To connect to a temporary VM packer use WinRM or SSH connections on public IP interfaces.
If you use a build agent located in an Azure subscription, please make sure that HTTPS/SSH ports are allowed for incoming/outgoing connections.
In case of firewall restrictions, prohibiting connections from public addresses, private virtual network resources can be deployed and passed as arguments to the packer. This approach allows virtual machines to use private connections inside VLAN.
### Service principal
Packer uses Service Principal to authorize in Azure infrastructure. To setup image-generation CI or use packer manually — SP with full read-write permissions for selected Azure subscription needed.
Detailed instruction can be found in [Azure documentation](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal)
### Prepare environment and image deployment
#### How to prepare Windows build agent
Local machine or [Azure VM](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-cli) can be used as a build agent.
Download `packer` from https://www.packer.io/downloads, or install it via Chocolately.
```
choco install packer
```
Install Azure CLI - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&tabs=azure-cli.
```
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
```
Download Virtual-Environments repository.
```
Set-Location c:\
git clone https://github.com/actions/virtual-environments.git
```
Import [GenerateResourcesAndImage](../helpers/GenerateResourcesAndImage.ps1) script from `/helpers` folder, and run `GenerateResourcesAndImage` function via Powershell.
```
Set-Location C:\virtual-environments
Import-Module .\helpers\GenerateResourcesAndImage.ps1
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "myTestResourceGroup" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu1604 -AzureLocation "East US"
```
Where:
- `SubscriptionId` - The Azure subscription Id where resources will be created.
- `ResourceGroupName` - The Azure resource group name where the Azure resources will be created.
- `ImageGenerationRepositoryRoot` - The root path of the image generation repository source.
- `ImageType` - The type of the image being generated. Valid options are: "Windows2016", "Windows2019", "Ubuntu1604", "Ubuntu1804", "Ubuntu2004".
- `AzureLocation` - The location of the resources being created in Azure. For example "East US".
The function automatically creates all required Azure resources and kicks off packer image generation for the selected image type.
*Please, check synopsis of `GenerateResourcesAndImage` for details about non-mandatory parameters.*
#### Generated VM Deployment
After the successful image generation, Virtual Machine can be created from the generated VHD using [CreateAzureVMFromPackerTemplate](../helpers/CreateAzureVMFromPackerTemplate.ps1) script.
```
Set-Location C:\virtual-environments
Import-Module .\helpers\CreateAzureVMFromPackerTemplate.ps1
CreateAzureVMFromPackerTemplate -SubscriptionId {YourSubscriptionId} -ResourceGroupName {ResourceGroupName} -TemplateFile "C:\BuildVmImages\temporaryTemplate.json" -VirtualMachineName "testvm1" -AdminUsername "shady1" -AdminPassword "SomeSecurePassword1" -AzureLocation "eastus"
```
Where:
- `SubscriptionId` - The Azure subscription Id where resources will be created.
- `ResourceGroupName` - The Azure resource group name where the Azure virtual machine will be created.
- `TemplateFilePath` - The path to the json ARM-template generated by packer during image generation locally.*
- `VirtualMachineName` - The name of the virtual machine to be generated.
- `AdminUserName` - The administrator username for the virtual machine to be created.
- `AdminPassword` - The administrator password for the virtual machine to be created.
- `AzureLocation` - The location where the Azure virtual machine will be provisioned. Example: "eastus"
\* *ARM-template can be obtained from the Packer output. For now, it seems like there is an [Az CLI bug](https://github.com/Azure/azure-cli/issues/5899) with specifying the template through a URI, so download the template from URI, that will be printed at the bottom of image-generation log, and use the local path of the template file.*
The function creates an Azure VM from a template and generates network resources in Azure to make the VM accessible.
## Additional
### User variables
The Packer template includes `variables` section containing user variables used in image generation. Each variable is defined as a key/value strings. User variables can be passed to packer via predefined environment variables, or as direct arguments, in case if packer started manually.
- `client_id` - The application ID of the AAD Service Principal. Requires `client_secret`.
- `object_id` - The object ID for the AAD SP. Will be derived from the oAuth token if empty.
- `client_secret` - A password/secret registered for the AAD SP.
- `subscription_id` - The subscription to use.
- `tenant_id` - The Active Directory tenant identifier with which your `client_id` and `subscription_id` are associated. If not specified, `tenant_id` will be looked up using `subscription_id`.
- `resource_group` - Resource group under which the final artifact will be stored.
- `storage_account` - Storage account under which the final artifact will be stored.
- `location` - Azure datacenter in which your VM will be built.
- `temp_resource_group_name` - Name assigned to the temporary resource group created during the build. If this value is not set, a random value will be assigned. This resource group is deleted at the end of the build.
- `private_virtual_network_with_public_ip` - This value allows you to set a `virtual_network_name` and obtain a public IP. If this value is not set and `virtual_network_name` is defined Packer is only allowed to be executed from a host on the same subnet / virtual network.
- `virtual_network_name` - Use a pre-existing virtual network for the VM. This option enables private communication with the VM, no public IP address is used or provisioned (unless you set `private_virtual_network_with_public_ip`).
- `virtual_network_resource_group_name` - If `virtual_network_name` is set, this value may also be set. If `virtual_network_name` is set, and this value is not set the builder attempts to determine the resource group containing the virtual network. If the resource group cannot be found, or it cannot be disambiguated, this value should be set.
- `virtual_network_subnet_name` - If `virtual_network_name` is set, this value may also be set. If `virtual_network_name` is set, and this value is not set the builder attempts to determine the subnet to use with the virtual network. If the subnet cannot be found, or it cannot be disambiguated, this value should be set.
- `capture_name_prefix` - VHD prefix. The final artifacts will be named PREFIX-osDisk.UUID and PREFIX-vmTemplate.UUID.
- `github_feed_token` - Github PAT. Required for NPM toolcache installation. Will be depricated soon.
### Builder variables
The `builders` section contains variables for the `azure-arm` builder used in the project. Most of the builder variables are inherited from the `user variables` section, however, the variables can be overwritten to adjust image-generation performance.
- `vm_size` - Size of the VM used for building. This can be changed when you deploy a VM from your VHD.
- `image_os` - Type of OS that will be deployed as a temporary VM.
- `image_version` - Specify version of an OS to boot from.
**Detailed Azure builders documentation can be found in [packer documentation](https://www.packer.io/docs/builders/azure).**
### Toolset
Configuration for some installed software is located in `toolset.json` files. These files define the list of Ruby, Python, Go versions, the list of PowerShell modules and VS components that will be installed to image. They can be changed if these tools are not required to reduce image generation time or image size.
Generated tool versions and details can be found in related projects:
- [Python](https://github.com/actions/python-versions/)
- [Go](https://github.com/actions/go-versions)
- [Node](https://github.com/actions/node-versions)
- [Boost](https://github.com/actions/boost-versions)
+12 -9
View File
@@ -28,7 +28,7 @@ Function CreateAzureVMFromPackerTemplate {
The location where the Azure virtual machine will be provisioned. Example: "eastus"
.EXAMPLE
CreateAzureVMFromPackerTemplate -SubscriptionId {YourSubscriptionId} -ResourceGroupName {ResourceGroupName} -TemplateFile "C:\BuildVmImages\temporaryTemplate.json" -VirtualMachineName "testvm1" -AdminUsername "shady1" -AdminPassword "SomeSecurePassword1" -AzureLocation "eastus"
CreateAzureVMFromPackerTemplate -SubscriptionId {YourSubscriptionId} -ResourceGroupName {ResourceGroupName} -TemplateFile "C:\BuildVmImages\temporaryTemplate.json" -VirtualMachineName "testvm1" -AdminUsername "shady1" -AdminPassword "SomeSecurePassword1" -AzureLocation "eastus"
#>
param (
[Parameter(Mandatory = $True)]
@@ -48,26 +48,29 @@ Function CreateAzureVMFromPackerTemplate {
)
$vmSize = "Standard_DS2_v2"
$vnetName = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$subnetName = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$nicName = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$publicIpName = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$guid = [System.GUID]::NewGuid().ToString().ToUpper()
$vnetName = $env:UserName + "vnet-" + $guid
$subnetName = $env:UserName + "subnet-" + $guid
$nicName = $env:UserName + "nic-" + $guid
$publicIpName = $env:UserName + "pip-" + $guid
Write-Host "Creating a virtual network and subnet"
($vnet = az network vnet create -g $ResourceGroupName -l $AzureLocation -n $vnetName --address-prefixes 10.0.0.0/16 --subnet-name $subnetName --subnet-prefixes 10.0.1.0/24 --subscription $subscriptionId)
($vnet = az network vnet create -g $ResourceGroupName -l $AzureLocation -n $vnetName --address-prefixes 10.0.0.0/16 --subnet-name $subnetName --subnet-prefixes 10.0.1.0/24 --subscription $subscriptionId -o json)
$subnetId = ($vnet | ConvertFrom-Json).newVNet.subnets[0].id
Write-Host "`nCreating a network interface controller (NIC)"
($nic = az network nic create -g $ResourceGroupName -l $AzureLocation -n $nicName --subnet $subnetId --subscription $subscriptionId)
($nic = az network nic create -g $ResourceGroupName -l $AzureLocation -n $nicName --subnet $subnetId --subscription $subscriptionId -o json)
$networkId = ($nic | ConvertFrom-Json).NewNIC.id
Write-Host "`nCreating a public IP address"
($publicIp = az network public-ip create -g $ResourceGroupName -l $AzureLocation -n $publicIpName --allocation-method Static --sku Standard --version IPv4 --subscription $subscriptionId)
($publicIp = az network public-ip create -g $ResourceGroupName -l $AzureLocation -n $publicIpName --allocation-method Static --sku Basic --version IPv4 --subscription $subscriptionId -o json)
$publicIpId = ($publicIp | ConvertFrom-Json).publicIp.id
Write-Host "`nAdding the public IP to the NIC"
az network nic ip-config update -g $ResourceGroupName -n ipconfig1 --nic-name $nicName --public-ip-address $publicIpId --subscription $subscriptionId
Write-Host "`nCreating the VM"
az group deployment create -g $ResourceGroupName -n $VirtualMachineName --subscription $subscriptionId --template-file $templateFilePath --parameters vmSize=$vmSize vmName=$VirtualMachineName adminUserName=$AdminUsername adminPassword=$AdminPassword networkInterfaceId=$networkId
az deployment group create -g $ResourceGroupName -n $VirtualMachineName --subscription $subscriptionId --template-file $templateFilePath --parameters vmSize=$vmSize vmName=$VirtualMachineName adminUserName=$AdminUsername adminPassword=$AdminPassword networkInterfaceId=$networkId
Write-Host "`nCreated in ${ResourceGroupName}:`n vnet ${vnetName}`n subnet ${subnetName}`n nic ${nicName}`n publicip ${publicIpName}`n vm ${VirtualMachineName}"
}
+228 -115
View File
@@ -1,11 +1,11 @@
$ErrorActionPreference = 'Stop'
enum ImageType {
Windows2016 = 0
Windows2019 = 1
Ubuntu1604 = 2
Ubuntu1804 = 3
Ubuntu2004 = 4
Windows2022 = 2
Ubuntu2004 = 3
Ubuntu2204 = 4
UbuntuMinimal = 5
}
Function Get-PackerTemplatePath {
@@ -17,21 +17,21 @@ Function Get-PackerTemplatePath {
)
switch ($ImageType) {
([ImageType]::Windows2016) {
$relativeTemplatePath = Join-Path "win" "windows2016.json"
}
([ImageType]::Windows2019) {
$relativeTemplatePath = Join-Path "win" "windows2019.json"
}
([ImageType]::Ubuntu1604) {
$relativeTemplatePath = Join-Path "linux" "ubuntu1604.json"
}
([ImageType]::Ubuntu1804) {
$relativeTemplatePath = Join-Path "linux" "ubuntu1804.json"
([ImageType]::Windows2022) {
$relativeTemplatePath = Join-Path "win" "windows2022.json"
}
([ImageType]::Ubuntu2004) {
$relativeTemplatePath = Join-Path "linux" "ubuntu2004.json"
}
([ImageType]::Ubuntu2204) {
$relativeTemplatePath = Join-Path "linux" "ubuntu2204.pkr.hcl"
}
([ImageType]::UbuntuMinimal) {
$relativeTemplatePath = Join-Path "linux" "ubuntuminimal.pkr.hcl"
}
default { throw "Unknown type of image" }
}
@@ -58,33 +58,37 @@ Function GenerateResourcesAndImage {
<#
.SYNOPSIS
A helper function to help generate an image.
.DESCRIPTION
Creates Azure resources and kicks off a packer image generation for the selected image type.
.PARAMETER SubscriptionId
The Azure subscription Id where resources will be created.
.PARAMETER ResourceGroupName
The Azure resource group name where the Azure resources will be created.
.PARAMETER ImageGenerationRepositoryRoot
The root path of the image generation repository source.
.PARAMETER ImageType
The type of the image being generated. Valid options are: {"Windows2016", "Windows2019", "Ubuntu1604", "Ubuntu1804"}.
The type of the image being generated. Valid options are: {"Windows2019", "Windows2022", "Ubuntu2004", "Ubuntu2204", "UbuntuMinimal"}.
.PARAMETER AzureLocation
The location of the resources being created in Azure. For example "East US".
.PARAMETER Force
Delete the resource group if it exists without user confirmation.
.PARAMETER GithubFeedToken
GitHub PAT to download tool packages from GitHub Package Registry
.PARAMETER AzureClientId
Client id needs to be provided for optional authentication via service principal. Example: "11111111-1111-1111-1111-111111111111"
.PARAMETER AzureClientSecret
Client secret needs to be provided for optional authentication via service principal. Example: "11111111-1111-1111-1111-111111111111"
.PARAMETER AzureTenantId
Tenant needs to be provided for optional authentication via service principal. Example: "11111111-1111-1111-1111-111111111111"
.PARAMETER RestrictToAgentIpAddress
If set, access to the VM used by packer to generate the image is restricted to the public IP address this script is run from.
This parameter cannot be used in combination with the virtual_network_name packer parameter.
.PARAMETER AllowBlobPublicAccess
The Azure storage account will be created with this option.
.PARAMETER EnableHttpsTrafficOnly
The Azure storage account will be created with this option.
.PARAMETER OnError
Specify how packer handles an error during image creation.
.EXAMPLE
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "shsamytest1" -ImageGenerationRepositoryRoot "C:\virtual-environments" -ImageType Ubuntu1604 -AzureLocation "East US"
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "shsamytest1" -ImageGenerationRepositoryRoot "C:\runner-images" -ImageType Ubuntu2004 -AzureLocation "East US"
#>
param (
[Parameter(Mandatory = $True)]
@@ -100,110 +104,219 @@ Function GenerateResourcesAndImage {
[Parameter(Mandatory = $False)]
[int] $SecondsToWaitForServicePrincipalSetup = 30,
[Parameter(Mandatory = $False)]
[string] $GithubFeedToken,
[string] $AzureClientId,
[Parameter(Mandatory = $False)]
[Switch] $Force
[string] $AzureClientSecret,
[Parameter(Mandatory = $False)]
[string] $AzureTenantId,
[Parameter(Mandatory = $False)]
[Switch] $RestrictToAgentIpAddress,
[Parameter(Mandatory = $False)]
[Switch] $Force,
[Parameter(Mandatory = $False)]
[bool] $AllowBlobPublicAccess = $False,
[Parameter(Mandatory = $False)]
[bool] $EnableHttpsTrafficOnly = $False,
[Parameter(Mandatory = $False)]
[ValidateSet("abort","ask","cleanup","run-cleanup-provisioner")]
[string] $OnError = "ask",
[Parameter(Mandatory = $False)]
[hashtable] $Tags
)
if (([string]::IsNullOrEmpty($GithubFeedToken)))
{
Write-Error "'-GithubFeedToken' parameter is not specified. You have to specify valid GitHub PAT to download tool packages from GitHub Package Registry"
exit 1
}
$builderScriptPath = Get-PackerTemplatePath -RepositoryRoot $ImageGenerationRepositoryRoot -ImageType $ImageType
$ServicePrincipalClientSecret = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper();
$InstallPassword = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper();
Connect-AzAccount
Set-AzContext -SubscriptionId $SubscriptionId
$alreadyExists = $true;
try {
Get-AzResourceGroup -Name $ResourceGroupName
Write-Verbose "Resource group was found, will delete and recreate it."
}
catch {
Write-Verbose "Resource group was not found, will create it."
$alreadyExists = $false;
}
$builderScriptPath = Get-PackerTemplatePath -RepositoryRoot $ImageGenerationRepositoryRoot -ImageType $ImageType
$ServicePrincipalClientSecret = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$InstallPassword = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
if ($alreadyExists) {
if($Force -eq $true) {
# Cleanup the resource group if it already exitsted before
Remove-AzResourceGroup -Name $ResourceGroupName -Force
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation
if ([string]::IsNullOrEmpty($AzureClientId))
{
Connect-AzAccount
} else {
$title = "Delete Resource Group"
$message = "The resource group you specified already exists. Do you want to clean it up?"
$AzSecureSecret = ConvertTo-SecureString $AzureClientSecret -AsPlainText -Force
$AzureAppCred = New-Object System.Management.Automation.PSCredential($AzureClientId, $AzSecureSecret)
Connect-AzAccount -ServicePrincipal -Credential $AzureAppCred -Tenant $AzureTenantId
}
Set-AzContext -SubscriptionId $SubscriptionId
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
"Delete the resource group including all resources."
$alreadyExists = $true;
try {
Get-AzResourceGroup -Name $ResourceGroupName
Write-Verbose "Resource group was found, will delete and recreate it."
}
catch {
Write-Verbose "Resource group was not found, will create it."
$alreadyExists = $false;
}
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
"Keep the resource group and continue."
if ($alreadyExists) {
if($Force -eq $true) {
# Cleanup the resource group if it already exitsted before
Remove-AzResourceGroup -Name $ResourceGroupName -Force
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation -Tag $tags
$stop = New-Object System.Management.Automation.Host.ChoiceDescription "&Stop", `
"Stop the current action."
} else {
$title = "Delete Resource Group"
$message = "The resource group you specified already exists. Do you want to clean it up?"
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no, $stop)
$result = $host.ui.PromptForChoice($title, $message, $options, 0)
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
"Delete the resource group including all resources."
switch ($result)
{
0 { Remove-AzResourceGroup -Name $ResourceGroupName -Force; New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation }
1 { <# Do nothing #> }
2 { exit }
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
"Keep the resource group and continue."
$stop = New-Object System.Management.Automation.Host.ChoiceDescription "&Stop", `
"Stop the current action."
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no, $stop)
$result = $host.ui.PromptForChoice($title, $message, $options, 0)
switch ($result)
{
0 { Remove-AzResourceGroup -Name $ResourceGroupName -Force; New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation -Tag $tags }
1 { <# Do nothing #> }
2 { exit }
}
}
} else {
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation -Tag $tags
}
# This script should follow the recommended naming conventions for azure resources
$storageAccountName = if($ResourceGroupName.EndsWith("-rg")) {
$ResourceGroupName.Substring(0, $ResourceGroupName.Length -3)
} else { $ResourceGroupName }
# Resource group names may contain special characters, that are not allowed in the storage account name
$storageAccountName = $storageAccountName.Replace("-", "").Replace("_", "").Replace("(", "").Replace(")", "").ToLower()
$storageAccountName += "001"
# Storage Account Name can only be 24 characters long
if ($storageAccountName.Length -gt 24){
$storageAccountName = $storageAccountName.Substring(0, 24)
}
if ($tags) {
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS" -AllowBlobPublicAccess $AllowBlobPublicAccess -EnableHttpsTrafficOnly $EnableHttpsTrafficOnly -Tag $tags
} else {
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS" -AllowBlobPublicAccess $AllowBlobPublicAccess -EnableHttpsTrafficOnly $EnableHttpsTrafficOnly
}
if ([string]::IsNullOrEmpty($AzureClientId)) {
# Interactive authentication: A service principal is created during runtime.
$spDisplayName = [System.GUID]::NewGuid().ToString().ToUpper()
$startDate = Get-Date
$endDate = $startDate.AddYears(1)
if ('Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential' -as [type]) {
$credentials = [Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential]@{
StartDate = $startDate
EndDate = $endDate
Password = $ServicePrincipalClientSecret
}
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName -PasswordCredential $credentials
$spClientId = $sp.ApplicationId
$azRoleParam = @{
RoleDefinitionName = "Contributor"
ServicePrincipalName = $spClientId
}
}
if ('Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential' -as [type]) {
$credentials = [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential]@{
StartDateTime = $startDate
EndDateTime = $endDate
}
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName
$appCred = New-AzADAppCredential -ApplicationId $sp.AppId -PasswordCredentials $credentials
$spClientId = $sp.AppId
$azRoleParam = @{
RoleDefinitionName = "Contributor"
PrincipalId = $sp.Id
}
$ServicePrincipalClientSecret = $appCred.SecretText
}
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
New-AzRoleAssignment @azRoleParam
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
$sub = Get-AzSubscription -SubscriptionId $SubscriptionId
$tenantId = $sub.TenantId
# Remove ADPrincipal after the script completed
$isCleanupADPrincipal = $true
} else {
# Parametrized Authentication via given service principal: The service principal with the data provided via the command line
# is used for all authentication purposes.
$spClientId = $AzureClientId
$credentials = $AzureAppCred
$ServicePrincipalClientSecret = $AzureClientSecret
$tenantId = $AzureTenantId
}
Get-LatestCommit -ErrorAction SilentlyContinue
$packerBinary = Get-Command "packer"
if (-not ($packerBinary)) {
throw "'packer' binary is not found on PATH"
}
if ($RestrictToAgentIpAddress) {
$AgentIp = (Invoke-RestMethod http://ipinfo.io/json).ip
Write-Host "Restricting access to packer generated VM to agent IP Address: $AgentIp"
}
if ($builderScriptPath.Contains("pkr.hcl")) {
if ($AgentIp) {
$AgentIp = '[ \"{0}\" ]' -f $AgentIp
} else {
$AgentIp = "[]"
}
if (-not $Tags) {
$Tags = @{}
}
}
} else {
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation
if ($builderScriptPath.Contains(".json")) {
if ($Tags) {
$builderScriptPath_temp = $builderScriptPath.Replace(".json", "-temp.json")
$packer_script = Get-Content -Path $builderScriptPath | ConvertFrom-Json
$packer_script.builders | Add-Member -Name "azure_tags" -Value $Tags -MemberType NoteProperty
$packer_script | ConvertTo-Json -Depth 3 | Out-File -Encoding Ascii $builderScriptPath_temp
$builderScriptPath = $builderScriptPath_temp
}
}
& $packerBinary build -on-error="$($OnError)" `
-var "client_id=$($spClientId)" `
-var "client_secret=$($ServicePrincipalClientSecret)" `
-var "subscription_id=$($SubscriptionId)" `
-var "tenant_id=$($tenantId)" `
-var "location=$($AzureLocation)" `
-var "resource_group=$($ResourceGroupName)" `
-var "storage_account=$($storageAccountName)" `
-var "install_password=$($InstallPassword)" `
-var "allowed_inbound_ip_addresses=$($AgentIp)" `
-var "azure_tags=$($Tags | ConvertTo-Json -Compress)" `
$builderScriptPath
}
# This script should follow the recommended naming conventions for azure resources
$storageAccountName = if($ResourceGroupName.EndsWith("-rg")) {
$ResourceGroupName.Substring(0, $ResourceGroupName.Length -3)
} else { $ResourceGroupName }
# Resource group names may contain special characters, that are not allowed in the storage account name
$storageAccountName = $storageAccountName.Replace("-", "").Replace("_", "").Replace("(", "").Replace(")", "").ToLower()
$storageAccountName += "001"
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS"
$spDisplayName = [System.GUID]::NewGuid().ToString().ToUpper()
$credentialProperties = @{ StartDate=Get-Date; EndDate=Get-Date -Year 2024; Password=$ServicePrincipalClientSecret }
$credentials = New-Object -TypeName Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential -Property $credentialProperties
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName -PasswordCredential $credentials
$spAppId = $sp.ApplicationId
$spClientId = $sp.ApplicationId
$spObjectId = $sp.Id
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
New-AzRoleAssignment -RoleDefinitionName Contributor -ServicePrincipalName $spAppId
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
$sub = Get-AzSubscription -SubscriptionId $SubscriptionId
$tenantId = $sub.TenantId
# "", "Note this variable-setting script for running Packer with these Azure resources in the future:", "==============================================================================================", "`$spClientId = `"$spClientId`"", "`$ServicePrincipalClientSecret = `"$ServicePrincipalClientSecret`"", "`$SubscriptionId = `"$SubscriptionId`"", "`$tenantId = `"$tenantId`"", "`$spObjectId = `"$spObjectId`"", "`$AzureLocation = `"$AzureLocation`"", "`$ResourceGroupName = `"$ResourceGroupName`"", "`$storageAccountName = `"$storageAccountName`"", "`$install_password = `"$install_password`"", ""
Get-LatestCommit -ErrorAction SilentlyContinue
$packerBinary = Get-Command "packer"
if (-not ($packerBinary)) {
throw "'packer' binary is not found on PATH"
catch {
Write-Error $_
}
finally {
# Remove ADServicePrincipal and ADApplication
if ($isCleanupADPrincipal) {
Write-Host "`nRemoving ${spDisplayName}/${spClientId}:"
if (Get-AzADServicePrincipal -DisplayName $spDisplayName) {
Write-Host " [+] ADServicePrincipal"
Remove-AzADServicePrincipal -DisplayName $spDisplayName -Confirm:$false
}
& $packerBinary build -on-error=ask `
-var "client_id=$($spClientId)" `
-var "client_secret=$($ServicePrincipalClientSecret)" `
-var "subscription_id=$($SubscriptionId)" `
-var "tenant_id=$($tenantId)" `
-var "object_id=$($spObjectId)" `
-var "location=$($AzureLocation)" `
-var "resource_group=$($ResourceGroupName)" `
-var "storage_account=$($storageAccountName)" `
-var "install_password=$($InstallPassword)" `
-var "github_feed_token=$($GithubFeedToken)" `
$builderScriptPath
if (Get-AzADApplication -DisplayName $spDisplayName) {
Write-Host " [+] ADApplication"
Remove-AzADApplication -DisplayName $spDisplayName -Confirm:$false
}
}
}
}
@@ -0,0 +1,66 @@
using module ./SoftwareReport.psm1
using module ./SoftwareReport.DifferenceCalculator.psm1
<#
.SYNOPSIS
Calculates the difference between two software reports and saves it to a file.
.PARAMETER PreviousJsonReportPath
Path to the previous software report.
.PARAMETER CurrentJsonReportPath
Path to the current software report.
.PARAMETER OutputFile
Path to the file where the difference will be saved.
.PARAMETER ReleaseBranchName
Name of the release branch to build image docs URL.
.PARAMETER ReadmePath
Path to the README file in repository to build image docs URL.
#>
Param (
[Parameter(Mandatory=$true)]
[string] $PreviousJsonReportPath,
[Parameter(Mandatory=$true)]
[string] $CurrentJsonReportPath,
[Parameter(Mandatory=$true)]
[string] $OutputFile,
[Parameter(Mandatory=$false)]
[string] $ReleaseBranchName,
[Parameter(Mandatory=$false)]
[string] $ReadmePath
)
$ErrorActionPreference = "Stop"
$global:ErrorView = "NormalView"
function Read-SoftwareReport {
Param (
[Parameter(Mandatory=$true)]
[string] $JsonReportPath
)
if (-not (Test-Path $JsonReportPath)) {
throw "File '$JsonReportPath' does not exist"
}
$jsonReport = Get-Content -Path $JsonReportPath -Raw
$report = [SoftwareReport]::FromJson($jsonReport)
return $report
}
$previousReport = Read-SoftwareReport -JsonReportPath $PreviousJsonReportPath
$currentReport = Read-SoftwareReport -JsonReportPath $CurrentJsonReportPath
$comparer = [SoftwareReportDifferenceCalculator]::new($previousReport, $currentReport)
$comparer.CompareReports()
$diff = $comparer.GetMarkdownReport()
if ($ReleaseBranchName -and $ReadmePath) {
# https://github.com/actions/runner-images/blob/releases/macOS-12/20221215/images/macos/macos-12-Readme.md
$ImageDocsUrl = "https://github.com/actions/runner-images/blob/${ReleaseBranchName}/${ReadmePath}"
$diff += "`n`n`nFor comprehensive list of software installed on this image please click [here]($ImageDocsUrl)."
}
$parentDirectory = Split-Path $OutputFile -Parent
if (-not (Test-Path $parentDirectory)) { New-Item -Path $parentDirectory -ItemType Directory | Out-Null }
$diff | Out-File -Path $OutputFile -Encoding utf8NoBOM
@@ -0,0 +1,56 @@
############################
### Abstract base nodes ####
############################
# Abstract base class for all nodes
class BaseNode {
[Boolean] ShouldBeIncludedToDiff() {
return $false
}
[String] ToMarkdown() {
return $this.ToMarkdown(1)
}
[String] ToMarkdown([Int32] $Level) {
throw "Abtract method 'ToMarkdown(level)' is not implemented for '$($this.GetType().Name)'"
}
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
throw "Abtract method 'IsSimilarTo' is not implemented for '$($this.GetType().Name)'"
}
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
throw "Abtract method 'IsIdenticalTo' is not implemented for '$($this.GetType().Name)'"
}
}
# Abstract base class for all nodes that describe a tool and should be rendered inside diff table
class BaseToolNode: BaseNode {
[ValidateNotNullOrEmpty()]
[String] $ToolName
BaseToolNode([String] $ToolName) {
$this.ToolName = $ToolName
}
[Boolean] ShouldBeIncludedToDiff() {
return $true
}
[String] GetValue() {
throw "Abtract method 'GetValue' is not implemented for '$($this.GetType().Name)'"
}
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
if ($this.GetType() -ne $OtherNode.GetType()) {
return $false
}
return $this.ToolName -eq $OtherNode.ToolName
}
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
return $this.IsSimilarTo($OtherNode) -and ($this.GetValue() -eq $OtherNode.GetValue())
}
}
@@ -0,0 +1,136 @@
using module ./SoftwareReport.psm1
using module ./SoftwareReport.BaseNodes.psm1
using module ./SoftwareReport.Nodes.psm1
using module ./SoftwareReport.DifferenceRender.psm1
class SoftwareReportDifferenceCalculator {
[ValidateNotNullOrEmpty()]
hidden [SoftwareReport] $PreviousReport
[ValidateNotNullOrEmpty()]
hidden [SoftwareReport] $CurrentReport
hidden [Collections.Generic.List[ReportDifferenceItem]] $AddedItems
hidden [Collections.Generic.List[ReportDifferenceItem]] $ChangedItems
hidden [Collections.Generic.List[ReportDifferenceItem]] $DeletedItems
SoftwareReportDifferenceCalculator([SoftwareReport] $PreviousReport, [SoftwareReport] $CurrentReport) {
$this.PreviousReport = $PreviousReport
$this.CurrentReport = $CurrentReport
}
[void] CompareReports() {
$this.AddedItems = @()
$this.ChangedItems = @()
$this.DeletedItems = @()
$this.CompareInternal($this.PreviousReport.Root, $this.CurrentReport.Root, @())
}
[String] GetMarkdownReport() {
$reporter = [SoftwareReportDifferenceRender]::new()
$report = $reporter.GenerateMarkdownReport($this.CurrentReport, $this.PreviousReport, $this.AddedItems, $this.ChangedItems, $this.DeletedItems)
return $report
}
hidden [void] CompareInternal([HeaderNode] $previousReportPointer, [HeaderNode] $currentReportPointer, [String[]] $Headers) {
$currentReportPointer.Children ?? @() | Where-Object { $_.ShouldBeIncludedToDiff() -and $this.FilterExcludedNodes($_) } | ForEach-Object {
$currentReportNode = $_
$sameNodeInPreviousReport = $previousReportPointer ? $previousReportPointer.FindSimilarChildNode($currentReportNode) : $null
if ($currentReportNode -is [HeaderNode]) {
# Compare HeaderNode recursively
$this.CompareInternal($sameNodeInPreviousReport, $currentReportNode, $Headers + $currentReportNode.Title)
} else {
if ($sameNodeInPreviousReport -and ($currentReportNode.IsIdenticalTo($sameNodeInPreviousReport))) {
# Nodes are identical, nothing changed, just ignore it
} elseif ($sameNodeInPreviousReport) {
# Nodes are equal but not identical, something was changed
if ($currentReportNode -is [TableNode]) {
$this.CompareSimilarTableNodes($sameNodeInPreviousReport, $currentReportNode, $Headers)
} elseif ($currentReportNode -is [ToolVersionsListNode]) {
$this.CompareSimilarToolVersionsListNodes($sameNodeInPreviousReport, $currentReportNode, $Headers)
} else {
$this.ChangedItems.Add([ReportDifferenceItem]::new($sameNodeInPreviousReport, $currentReportNode, $Headers))
}
} else {
# Node was not found in previous report, new node was added
$this.AddedItems.Add([ReportDifferenceItem]::new($null, $currentReportNode, $Headers))
}
}
}
# Detecting nodes that were removed
$previousReportPointer.Children ?? @() | Where-Object { $_.ShouldBeIncludedToDiff() -and $this.FilterExcludedNodes($_) } | ForEach-Object {
$previousReportNode = $_
$sameNodeInCurrentReport = $currentReportPointer ? $currentReportPointer.FindSimilarChildNode($previousReportNode) : $null
if (-not $sameNodeInCurrentReport) {
if ($previousReportNode -is [HeaderNode]) {
# Compare removed HeaderNode recursively
$this.CompareInternal($previousReportNode, $null, $Headers + $previousReportNode.Title)
} else {
# Node was not found in current report, node was removed
$this.DeletedItems.Add([ReportDifferenceItem]::new($previousReportNode, $null, $Headers))
}
}
}
}
hidden [void] CompareSimilarTableNodes([TableNode] $PreviousReportNode, [TableNode] $CurrentReportNode, [String[]] $Headers) {
$addedRows = $CurrentReportNode.Rows | Where-Object { $_ -notin $PreviousReportNode.Rows }
$deletedRows = $PreviousReportNode.Rows | Where-Object { $_ -notin $CurrentReportNode.Rows }
if (($addedRows.Count -eq 0) -and ($deletedRows.Count -eq 0)) {
# Unexpected state: TableNodes are identical
return
}
if ($PreviousReportNode.Headers -ne $CurrentReportNode.Headers) {
# If headers are changed and rows are changed at the same time, we should track it as removing table and adding new one
$this.DeletedItems.Add([ReportDifferenceItem]::new($PreviousReportNode, $null, $Headers))
$this.AddedItems.Add([ReportDifferenceItem]::new($null, $CurrentReportNode, $Headers))
} elseif (($addedRows.Count -gt 0) -and ($deletedRows.Count -eq 0)) {
# If new rows were added and no rows were deleted, then it is AddedItem
$this.AddedItems.Add([ReportDifferenceItem]::new($PreviousReportNode, $CurrentReportNode, $Headers))
} elseif (($deletedRows.Count -gt 0) -and ($addedRows.Count -eq 0)) {
# If no rows were added and some rows were deleted, then it is DeletedItem
$this.DeletedItems.Add([ReportDifferenceItem]::new($PreviousReportNode, $CurrentReportNode, $Headers))
} else {
# If some rows were added and some rows were removed, then it is UpdatedItem
$this.ChangedItems.Add([ReportDifferenceItem]::new($PreviousReportNode, $CurrentReportNode, $Headers))
}
}
hidden [void] CompareSimilarToolVersionsListNodes([ToolVersionsListNode] $PreviousReportNode, [ToolVersionsListNode] $CurrentReportNode, [String[]] $Headers) {
$previousReportMajorVersions = $PreviousReportNode.Versions | ForEach-Object { $PreviousReportNode.ExtractMajorVersion($_) }
$currentReportMajorVersion = $CurrentReportNode.Versions | ForEach-Object { $CurrentReportNode.ExtractMajorVersion($_) }
$addedVersions = $CurrentReportNode.Versions | Where-Object { $CurrentReportNode.ExtractMajorVersion($_) -notin $previousReportMajorVersions }
$deletedVersions = $PreviousReportNode.Versions | Where-Object { $PreviousReportNode.ExtractMajorVersion($_) -notin $currentReportMajorVersion }
$changedPreviousVersions = $PreviousReportNode.Versions | Where-Object { ($PreviousReportNode.ExtractMajorVersion($_) -in $currentReportMajorVersion) -and ($_ -notin $CurrentReportNode.Versions) }
$changedCurrentVersions = $CurrentReportNode.Versions | Where-Object { ($CurrentReportNode.ExtractMajorVersion($_) -in $previousReportMajorVersions) -and ($_ -notin $PreviousReportNode.Versions) }
if ($addedVersions.Count -gt 0) {
$this.AddedItems.Add([ReportDifferenceItem]::new($null, [ToolVersionsListNode]::new($CurrentReportNode.ToolName, $addedVersions, $CurrentReportNode.MajorVersionRegex, "List"), $Headers))
}
if ($deletedVersions.Count -gt 0) {
$this.DeletedItems.Add([ReportDifferenceItem]::new([ToolVersionsListNode]::new($PreviousReportNode.ToolName, $deletedVersions, $PreviousReportNode.MajorVersionRegex, "List"), $null, $Headers))
}
$previousChangedNode = ($changedPreviousVersions.Count -gt 0) ? [ToolVersionsListNode]::new($PreviousReportNode.ToolName, $changedPreviousVersions, $PreviousReportNode.MajorVersionRegex, "List") : $null
$currentChangedNode = ($changedCurrentVersions.Count -gt 0) ? [ToolVersionsListNode]::new($CurrentReportNode.ToolName, $changedCurrentVersions, $CurrentReportNode.MajorVersionRegex, "List") : $null
if ($previousChangedNode -and $currentChangedNode) {
$this.ChangedItems.Add([ReportDifferenceItem]::new($previousChangedNode, $currentChangedNode, $Headers))
}
}
hidden [Boolean] FilterExcludedNodes([BaseNode] $Node) {
# We shouldn't show "Image Version" diff because it is already shown in report header
if (($Node -is [ToolVersionNode]) -and ($Node.ToolName -eq "Image Version:")) {
return $false
}
return $true
}
}
@@ -0,0 +1,225 @@
using module ./SoftwareReport.psm1
using module ./SoftwareReport.BaseNodes.psm1
using module ./SoftwareReport.Nodes.psm1
class SoftwareReportDifferenceRender {
[String] GenerateMarkdownReport([SoftwareReport] $CurrentReport, [SoftwareReport] $PreviousReport, [ReportDifferenceItem[]] $AddedItems, [ReportDifferenceItem[]] $ChangedItems, [ReportDifferenceItem[]] $DeletedItems) {
$sb = [System.Text.StringBuilder]::new()
$rootNode = $CurrentReport.Root
$imageVersion = $CurrentReport.GetImageVersion()
$previousImageVersion = $PreviousReport.GetImageVersion()
#############################
### Render report header ####
#############################
$sb.AppendLine("# :desktop_computer: Actions Runner Image: $($rootNode.Title)")
# ToolVersionNodes on root level contains main image description so just copy-paste them to final report
$rootNode.Children | Where-Object { $_ -is [ToolVersionNode] } | ForEach-Object {
$sb.AppendLine($_.ToMarkdown())
}
$sb.AppendLine()
$sb.AppendLine("## :mega: What's changed?").AppendLine()
###########################
### Render added items ####
###########################
[ReportDifferenceItem[]] $addedItemsBaseTools = $AddedItems | Where-Object { $_.IsBaseToolNode() }
[ReportDifferenceItem[]] $addedItemsTables = $AddedItems | Where-Object { $_.IsTableNode() }
if ($addedItemsBaseTools.Count + $addedItemsTables.Count -gt 0) {
$sb.AppendLine("### Added :heavy_plus_sign:").AppendLine()
}
if ($addedItemsBaseTools.Count -gt 0) {
$tableItems = $addedItemsBaseTools | ForEach-Object {
[PSCustomObject]@{
"Category" = $this.RenderCategory($_.Headers, $true);
"Tool name" = $this.RenderToolName($_.CurrentReportNode.ToolName);
"Current ($imageVersion)" = $_.CurrentReportNode.GetValue();
}
}
$sb.AppendLine($this.RenderHtmlTable($tableItems, "Category"))
}
if ($addedItemsTables.Count -gt 0) {
$addedItemsTables | ForEach-Object {
$sb.AppendLine($this.RenderTableNodesDiff($_))
}
}
#############################
### Render deleted items ####
#############################
[ReportDifferenceItem[]] $deletedItemsBaseTools = $DeletedItems | Where-Object { $_.IsBaseToolNode() }
[ReportDifferenceItem[]] $deletedItemsTables = $DeletedItems | Where-Object { $_.IsTableNode() }
if ($deletedItemsBaseTools.Count + $deletedItemsTables.Count -gt 0) {
$sb.AppendLine("### Deleted :heavy_minus_sign:").AppendLine()
}
if ($deletedItemsBaseTools.Count -gt 0) {
$tableItems = $deletedItemsBaseTools | ForEach-Object {
[PSCustomObject]@{
"Category" = $this.RenderCategory($_.Headers, $true);
"Tool name" = $this.RenderToolName($_.PreviousReportNode.ToolName);
"Previous ($previousImageVersion)" = $_.PreviousReportNode.GetValue();
}
}
$sb.AppendLine($this.RenderHtmlTable($tableItems, "Category"))
}
if ($deletedItemsTables.Count -gt 0) {
$deletedItemsTables | ForEach-Object {
$sb.AppendLine($this.RenderTableNodesDiff($_))
}
}
#############################
### Render updated items ####
#############################
[ReportDifferenceItem[]] $changedItemsBaseTools = $ChangedItems | Where-Object { $_.IsBaseToolNode() }
[ReportDifferenceItem[]] $changedItemsTables = $ChangedItems | Where-Object { $_.IsTableNode() }
if ($changedItemsBaseTools.Count + $changedItemsTables.Count -gt 0) {
$sb.AppendLine("### Updated").AppendLine()
}
if ($changedItemsBaseTools.Count -gt 0) {
$tableItems = $changedItemsBaseTools | ForEach-Object {
[PSCustomObject]@{
"Category" = $this.RenderCategory($_.Headers, $true);
"Tool name" = $this.RenderToolName($_.CurrentReportNode.ToolName);
"Previous ($previousImageVersion)" = $_.PreviousReportNode.GetValue();
"Current ($imageVersion)" = $_.CurrentReportNode.GetValue();
}
}
$sb.AppendLine($this.RenderHtmlTable($tableItems, "Category"))
}
if ($changedItemsTables.Count -gt 0) {
$changedItemsTables | ForEach-Object {
$sb.AppendLine($this.RenderTableNodesDiff($_))
}
}
return $sb.ToString()
}
[String] RenderHtmlTable([PSCustomObject[]] $Table, [String] $RowSpanColumnName) {
$headers = $Table[0].PSObject.Properties.Name
$sb = [System.Text.StringBuilder]::new()
$sb.AppendLine("<table>")
$sb.AppendLine(" <thead>")
$headers | ForEach-Object {
$sb.AppendLine(" <th>$_</th>")
}
$sb.AppendLine(" </thead>")
$sb.AppendLine(" <tbody>")
$tableRowSpans = $this.CalculateHtmlTableRowSpan($Table, $RowSpanColumnName)
for ($rowIndex = 0; $rowIndex -lt $Table.Count; $rowIndex++) {
$row = $Table[$rowIndex]
$sb.AppendLine(" <tr>")
$headers | ForEach-Object {
if ($_ -eq $RowSpanColumnName) {
if ($tableRowSpans[$rowIndex] -gt 0) {
$sb.AppendLine(" <td rowspan=`"$($tableRowSpans[$rowIndex])`">$($row.$_)</td>")
} else {
# Skip rendering this cell at all
}
} else {
$sb.AppendLine(" <td>$($row.$_)</td>")
}
}
$sb.AppendLine(" </tr>")
}
$sb.AppendLine(" </tbody>")
$sb.AppendLine("</table>")
return $sb.ToString()
}
[int[]] CalculateHtmlTableRowSpan([PSCustomObject[]] $Table, [String] $keyColumn) {
$result = @(0) * $Table.Count
for ($rowIndex = $Table.Count - 1; $rowIndex -ge 0; $rowIndex--) {
if (($rowIndex -lt ($Table.Count - 1)) -and ($Table[$rowIndex].$keyColumn -eq $Table[$rowIndex + 1].$keyColumn)) {
# If the current row is the same as the next row
# Then rowspan of current row should be equal to rowspan of the next row + 1
# And rowspan of the next row should be 0 because it is already included in the rowspan of the current row
$result[$rowIndex] = $result[$rowIndex + 1] + 1
$result[$rowIndex + 1] = 0
} else {
$result[$rowIndex] = 1
}
}
return $result
}
[String] RenderTableNodesDiff([ReportDifferenceItem] $DiffItem) {
# Use the simplest approach for now: first, print all removed lines. Then print added lines
# It will work well for most cases like changing existing rows, adding new rows and removing rows
# But can produce not so pretty results for cases when some rows are changed and some rows are added at the same time
# Let's see how it works in practice and improve it later if needed
[String] $tableHeaders = ($DiffItem.CurrentReportNode ?? $DiffItem.PreviousReportNode).Headers
[Collections.Generic.List[String]] $tableRows = @()
$DiffItem.PreviousReportNode.Rows ?? @() | Where-Object { $_ -notin $DiffItem.CurrentReportNode.Rows } | ForEach-Object {
$tableRows.Add($this.StrikeTableRow($_))
}
$DiffItem.CurrentReportNode.Rows ?? @() | Where-Object { $_ -notin $DiffItem.PreviousReportNode.Rows } | ForEach-Object {
$tableRows.Add($_)
}
$sb = [System.Text.StringBuilder]::new()
$sb.AppendLine("#### $($this.RenderCategory($DiffItem.Headers, $false))")
$sb.AppendLine([TableNode]::new($tableHeaders, $tableRows).ToMarkdown())
return $sb.ToString()
}
[String] RenderCategory([String[]] $Headers, [Boolean] $AddLineSeparator) {
# Always skip the first header because it is "Installed Software"
[String[]] $takeHeaders = $Headers | Select-Object -Skip 1
if ($takeHeaders.Count -eq 0) {
return ""
}
$lineSeparator = $AddLineSeparator ? "<br>": ""
return [String]::Join(" >$lineSeparator ", $takeHeaders)
}
[String] RenderToolName([String] $ToolName) {
return $ToolName.TrimEnd(":")
}
[String] StrikeTableRow([String] $Row) {
# Convert "a|b|c" to "~~a~~|~~b~~|~~c~~
$cells = $Row.Split("|")
$strikedCells = $cells | ForEach-Object { "~~$($_)~~"}
return [String]::Join("|", $strikedCells)
}
}
# Temporary structure to store the single difference between two reports
class ReportDifferenceItem {
[BaseNode] $PreviousReportNode
[BaseNode] $CurrentReportNode
[String[]] $Headers
ReportDifferenceItem([BaseNode] $PreviousReportNode, [BaseNode] $CurrentReportNode, [String[]] $Headers) {
$this.PreviousReportNode = $PreviousReportNode
$this.CurrentReportNode = $CurrentReportNode
$this.Headers = $Headers
}
[Boolean] IsBaseToolNode() {
$node = $this.CurrentReportNode ?? $this.PreviousReportNode
return $node -is [BaseToolNode]
}
[Boolean] IsTableNode() {
$node = $this.CurrentReportNode ?? $this.PreviousReportNode
return $node -is [TableNode]
}
}
@@ -0,0 +1,429 @@
using module ./SoftwareReport.BaseNodes.psm1
#########################################
### Nodes to describe image software ####
#########################################
# NodesFactory is used to simplify parsing different types of notes
# Every node has own logic of parsing and this method just invokes "FromJsonObject" of correct node type
class NodesFactory {
static [BaseNode] ParseNodeFromObject([object] $JsonObj) {
if ($JsonObj.NodeType -eq [HeaderNode].Name) {
return [HeaderNode]::FromJsonObject($JsonObj)
} elseif ($JsonObj.NodeType -eq [ToolVersionNode].Name) {
return [ToolVersionNode]::FromJsonObject($JsonObj)
} elseif ($JsonObj.NodeType -eq [ToolVersionsListNode].Name) {
return [ToolVersionsListNode]::FromJsonObject($JsonObj)
} elseif ($JsonObj.NodeType -eq [TableNode].Name) {
return [TableNode]::FromJsonObject($JsonObj)
} elseif ($JsonObj.NodeType -eq [NoteNode].Name) {
return [NoteNode]::FromJsonObject($JsonObj)
}
throw "Unknown node type in ParseNodeFromObject '$($JsonObj.NodeType)'"
}
}
class HeaderNode: BaseNode {
[ValidateNotNullOrEmpty()]
[String] $Title
[Collections.Generic.List[BaseNode]] $Children
HeaderNode([String] $Title) {
$this.Title = $Title
$this.Children = @()
}
[Boolean] ShouldBeIncludedToDiff() {
return $true
}
[void] AddNode([BaseNode] $node) {
$similarNode = $this.FindSimilarChildNode($node)
if ($similarNode) {
throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.`nFound node: $($similarNode.ToJsonObject() | ConvertTo-Json)`nNew node: $($node.ToJsonObject() | ConvertTo-Json)"
}
if (-not $this.IsNodeHasMarkdownHeader($node)) {
# If the node doesn't print own header to markdown, we should check that there is no other nodes that print header to markdown before it.
# It is done to avoid unexpected situation like this:
#
# HeaderNode A -> # A
# HeaderNode B -> ## B
# ToolVersionNode C -> - C
# ToolVersionNode D -> - D
#
# In this example, we add 'HeaderNode B" to 'HeaderNode A' and add 'ToolVersionNode C' to 'HeaderNode B'.
# Then we add 'ToolVersionNode D' to 'HeaderNode A'.
# But the result markdown will look like 'ToolVersionNode D' belongs to 'HeaderNode B' instead of 'HeaderNode A'.
$this.Children | Where-Object { $this.IsNodeHasMarkdownHeader($_) } | ForEach-Object {
throw "It is not allowed to add the non-header node after the header node. Consider adding the separate HeaderNode for this node"
}
}
$this.Children.Add($node)
}
[void] AddNodes([BaseNode[]] $nodes) {
$nodes | ForEach-Object {
$this.AddNode($_)
}
}
[HeaderNode] AddHeader([String] $Title) {
$node = [HeaderNode]::new($Title)
$this.AddNode($node)
return $node
}
[void] AddToolVersion([String] $ToolName, [String] $Version) {
$this.AddNode([ToolVersionNode]::new($ToolName, $Version))
}
[void] AddToolVersionsList([String] $ToolName, [String[]] $Version, [String] $MajorVersionRegex) {
$this.AddNode([ToolVersionsListNode]::new($ToolName, $Version, $MajorVersionRegex, "List"))
}
[void] AddToolVersionsListInline([String] $ToolName, [String[]] $Version, [String] $MajorVersionRegex) {
$this.AddNode([ToolVersionsListNode]::new($ToolName, $Version, $MajorVersionRegex, "Inline"))
}
[void] AddTable([PSCustomObject[]] $Table) {
$this.AddNode([TableNode]::FromObjectsArray($Table))
}
[void] AddNote([String] $Content) {
$this.AddNode([NoteNode]::new($Content))
}
[String] ToMarkdown([Int32] $Level) {
$sb = [System.Text.StringBuilder]::new()
$sb.AppendLine()
$sb.AppendLine("$("#" * $Level) $($this.Title)")
$this.Children | ForEach-Object {
$sb.AppendLine($_.ToMarkdown($Level + 1))
}
return $sb.ToString().TrimEnd()
}
[PSCustomObject] ToJsonObject() {
return [PSCustomObject]@{
NodeType = $this.GetType().Name
Title = $this.Title
Children = $this.Children | ForEach-Object { $_.ToJsonObject() }
}
}
static [HeaderNode] FromJsonObject([Object] $JsonObj) {
$node = [HeaderNode]::new($JsonObj.Title)
$JsonObj.Children | Where-Object { $_ } | ForEach-Object { $node.AddNode([NodesFactory]::ParseNodeFromObject($_)) }
return $node
}
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
if ($OtherNode.GetType() -ne [HeaderNode]) {
return $false
}
return $this.Title -eq $OtherNode.Title
}
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
return $this.IsSimilarTo($OtherNode)
}
[BaseNode] FindSimilarChildNode([BaseNode] $Find) {
foreach ($childNode in $this.Children) {
if ($childNode.IsSimilarTo($Find)) {
return $childNode
}
}
return $null
}
hidden [Boolean] IsNodeHasMarkdownHeader([BaseNode] $node) {
if ($node -is [HeaderNode]) {
return $true
}
if (($node -is [ToolVersionsListNode]) -and ($node.ListType -eq "List")) {
return $true
}
return $false
}
}
class ToolVersionNode: BaseToolNode {
[ValidateNotNullOrEmpty()]
[String] $Version
ToolVersionNode([String] $ToolName, [String] $Version): base($ToolName) {
$this.Version = $Version
}
[String] ToMarkdown([Int32] $Level) {
return "- $($this.ToolName) $($this.Version)"
}
[String] GetValue() {
return $this.Version
}
[PSCustomObject] ToJsonObject() {
return [PSCustomObject]@{
NodeType = $this.GetType().Name
ToolName = $this.ToolName
Version = $this.Version
}
}
static [BaseNode] FromJsonObject([Object] $JsonObj) {
return [ToolVersionNode]::new($JsonObj.ToolName, $JsonObj.Version)
}
}
class ToolVersionsListNode: BaseToolNode {
[ValidateNotNullOrEmpty()]
[String[]] $Versions
[Regex] $MajorVersionRegex
[ValidateSet("List", "Inline")]
[String] $ListType
ToolVersionsListNode([String] $ToolName, [String[]] $Versions, [String] $MajorVersionRegex, [String] $ListType): base($ToolName) {
$this.Versions = $Versions
$this.MajorVersionRegex = [Regex]::new($MajorVersionRegex)
$this.ListType = $ListType
$this.ValidateMajorVersionRegex()
}
[String] ToMarkdown([Int32] $Level) {
if ($this.ListType -eq "Inline") {
return "- $($this.ToolName): $($this.Versions -join ', ')"
}
$sb = [System.Text.StringBuilder]::new()
$sb.AppendLine()
$sb.AppendLine("$("#" * $Level) $($this.ToolName)")
$this.Versions | ForEach-Object {
$sb.AppendLine("- $_")
}
return $sb.ToString().TrimEnd()
}
[String] GetValue() {
return $this.Versions -join ', '
}
[String] ExtractMajorVersion([String] $Version) {
$match = $this.MajorVersionRegex.Match($Version)
if (($match.Success -ne $true) -or [String]::IsNullOrEmpty($match.Groups[0].Value)) {
throw "Version '$Version' doesn't match regex '$($this.PrimaryVersionRegex)'"
}
return $match.Groups[0].Value
}
[PSCustomObject] ToJsonObject() {
return [PSCustomObject]@{
NodeType = $this.GetType().Name
ToolName = $this.ToolName
Versions = $this.Versions
MajorVersionRegex = $this.MajorVersionRegex.ToString()
ListType = $this.ListType
}
}
static [ToolVersionsListNode] FromJsonObject([Object] $JsonObj) {
return [ToolVersionsListNode]::new($JsonObj.ToolName, $JsonObj.Versions, $JsonObj.MajorVersionRegex, $JsonObj.ListType)
}
hidden [void] ValidateMajorVersionRegex() {
$this.Versions | Group-Object { $this.ExtractMajorVersion($_) } | ForEach-Object {
if ($_.Count -gt 1) {
throw "Multiple versions from list '$($this.GetValue())' return the same result from regex '$($this.MajorVersionRegex)': $($_.Name)"
}
}
}
}
class TableNode: BaseNode {
# It is easier to store the table as rendered lines because it will simplify finding differences in rows later
[ValidateNotNullOrEmpty()]
[String] $Headers
[ValidateNotNullOrEmpty()]
[String[]] $Rows
TableNode([String] $Headers, [String[]] $Rows) {
$this.Headers = $Headers
$this.Rows = $Rows
$columnsCount = $this.Headers.Split("|").Count
$this.Rows | ForEach-Object {
if ($_.Split("|").Count -ne $columnsCount) {
throw "Table has different number of columns in different rows"
}
}
}
[Boolean] ShouldBeIncludedToDiff() {
return $true
}
[String] ToMarkdown([Int32] $Level) {
$maxColumnWidths = $this.CalculateColumnsWidth()
$columnsCount = $maxColumnWidths.Count
$delimiterLine = [String]::Join("|", @("-") * $columnsCount)
$sb = [System.Text.StringBuilder]::new()
@($this.Headers) + @($delimiterLine) + $this.Rows | ForEach-Object {
$sb.Append("|")
$row = $_.Split("|")
for ($colIndex = 0; $colIndex -lt $columnsCount; $colIndex++) {
$padSymbol = $row[$colIndex] -eq "-" ? "-" : " "
$cellContent = $row[$colIndex].PadRight($maxColumnWidths[$colIndex], $padSymbol)
$sb.Append(" $($cellContent) |")
}
$sb.AppendLine()
}
return $sb.ToString().TrimEnd()
}
hidden [Int32[]] CalculateColumnsWidth() {
$maxColumnWidths = $this.Headers.Split("|") | ForEach-Object { $_.Length }
$columnsCount = $maxColumnWidths.Count
$this.Rows | ForEach-Object {
$columnWidths = $_.Split("|") | ForEach-Object { $_.Length }
for ($colIndex = 0; $colIndex -lt $columnsCount; $colIndex++) {
$maxColumnWidths[$colIndex] = [Math]::Max($maxColumnWidths[$colIndex], $columnWidths[$colIndex])
}
}
return $maxColumnWidths
}
[PSCustomObject] ToJsonObject() {
return [PSCustomObject]@{
NodeType = $this.GetType().Name
Headers = $this.Headers
Rows = $this.Rows
}
}
static [TableNode] FromJsonObject([Object] $JsonObj) {
return [TableNode]::new($JsonObj.Headers, $JsonObj.Rows)
}
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
if ($OtherNode.GetType() -ne [TableNode]) {
return $false
}
# We don't support having multiple TableNode instances on the same header level so such check is fine
return $true
}
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
if (-not $this.IsSimilarTo($OtherNode)) {
return $false
}
# We don't compare $this.Headers intentionally
# It is fine to ignore the tables where headers are changed but rows are not changed
if ($this.Rows.Count -ne $OtherNode.Rows.Count) {
return $false
}
for ($rowIndex = 0; $rowIndex -lt $this.Rows.Count; $rowIndex++) {
if ($this.Rows[$rowIndex] -ne $OtherNode.Rows[$rowIndex]) {
return $false
}
}
return $true
}
static [TableNode] FromObjectsArray([PSCustomObject[]] $Table) {
if ($Table.Count -eq 0) {
throw "Failed to create TableNode from empty objects array"
}
[String] $tableHeaders = [TableNode]::ArrayToTableRow($Table[0].PSObject.Properties.Name)
[Collections.Generic.List[String]] $tableRows = @()
$Table | ForEach-Object {
$rowHeaders = [TableNode]::ArrayToTableRow($_.PSObject.Properties.Name)
if (($rowHeaders -ne $tableHeaders)) {
throw "Failed to create TableNode from objects array because objects have different properties"
}
$tableRows.Add([TableNode]::ArrayToTableRow($_.PSObject.Properties.Value))
}
return [TableNode]::new($tableHeaders, $tableRows)
}
hidden static [String] ArrayToTableRow([String[]] $Values) {
if ($Values.Count -eq 0) {
throw "Failed to create TableNode because some objects are empty"
}
$Values | ForEach-Object {
if ($_.Contains("|")) {
throw "Failed to create TableNode because some cells '$_' contains forbidden symbol '|'"
}
}
return [String]::Join("|", $Values)
}
}
class NoteNode: BaseNode {
[ValidateNotNullOrEmpty()]
[String] $Content
NoteNode([String] $Content) {
$this.Content = $Content
}
[String] ToMarkdown([Int32] $Level) {
return @(
'```',
$this.Content,
'```'
) -join "`n"
}
[PSCustomObject] ToJsonObject() {
return [PSCustomObject]@{
NodeType = $this.GetType().Name
Content = $this.Content
}
}
static [NoteNode] FromJsonObject([Object] $JsonObj) {
return [NoteNode]::new($JsonObj.Content)
}
[Boolean] IsSimilarTo([BaseNode] $OtherNode) {
if ($OtherNode.GetType() -ne [NoteNode]) {
return $false
}
return $this.Content -eq $OtherNode.Content
}
[Boolean] IsIdenticalTo([BaseNode] $OtherNode) {
return $this.IsSimilarTo($OtherNode)
}
}
@@ -0,0 +1,34 @@
using module ./SoftwareReport.BaseNodes.psm1
using module ./SoftwareReport.Nodes.psm1
class SoftwareReport {
[ValidateNotNullOrEmpty()]
[HeaderNode] $Root
SoftwareReport([String] $Title) {
$this.Root = [HeaderNode]::new($Title)
}
SoftwareReport([HeaderNode] $Root) {
$this.Root = $Root
}
[String] ToJson() {
return $this.Root.ToJsonObject() | ConvertTo-Json -Depth 10
}
static [SoftwareReport] FromJson([String] $JsonString) {
$jsonObj = $JsonString | ConvertFrom-Json
$rootNode = [NodesFactory]::ParseNodeFromObject($jsonObj)
return [SoftwareReport]::new($rootNode)
}
[String] ToMarkdown() {
return $this.Root.ToMarkdown().Trim()
}
[String] GetImageVersion() {
$imageVersionNode = $this.Root.Children ?? @() | Where-Object { ($_ -is [ToolVersionNode]) -and ($_.ToolName -eq "Image Version:") } | Select-Object -First 1
return $imageVersionNode.Version ?? "Unknown version"
}
}
@@ -0,0 +1,558 @@
using module ../SoftwareReport.psm1
using module ../SoftwareReport.DifferenceCalculator.psm1
Describe "Comparer.E2E" {
It "Some tools are updated" {
# Previous report
$prevSoftwareReport = [SoftwareReport]::new("macOS 11")
$prevSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.1 (20G817)")
$prevSoftwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$prevInstalledSoftware = $prevSoftwareReport.Root.AddHeader("Installed Software")
$prevTools = $prevInstalledSoftware.AddHeader("Tools")
$prevTools.AddToolVersion("ToolWillBeUpdated1", "1.0.0")
$prevTools.AddToolVersion("ToolWillBeUpdated2", "3.0.1")
$prevTools.AddToolVersionsList("ToolWillBeUpdated3", @("14.0.0", "15.5.1"), "^\d+")
# Next report
$nextSoftwareReport = [SoftwareReport]::new("macOS 11")
$nextSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.1 (20G817)")
$nextSoftwareReport.Root.AddToolVersion("Image Version:", "20220922.1")
$nextInstalledSoftware = $nextSoftwareReport.Root.AddHeader("Installed Software")
$nextTools = $nextInstalledSoftware.AddHeader("Tools")
$nextTools.AddToolVersion("ToolWillBeUpdated1", "2.5.0")
$nextTools.AddToolVersion("ToolWillBeUpdated2", "3.0.2")
$nextTools.AddToolVersionsList("ToolWillBeUpdated3", @("14.2.0", "15.5.1"), "^\d+")
# Compare reports
$comparer = [SoftwareReportDifferenceCalculator]::new($prevSoftwareReport, $nextSoftwareReport)
$comparer.CompareReports()
$comparer.GetMarkdownReport() | Should -BeExactly @'
# :desktop_computer: Actions Runner Image: macOS 11
- OS Version: macOS 11.7.1 (20G817)
- Image Version: 20220922.1
## :mega: What's changed?
### Updated
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Previous (20220918.1)</th>
<th>Current (20220922.1)</th>
</thead>
<tbody>
<tr>
<td rowspan="3">Tools</td>
<td>ToolWillBeUpdated1</td>
<td>1.0.0</td>
<td>2.5.0</td>
</tr>
<tr>
<td>ToolWillBeUpdated2</td>
<td>3.0.1</td>
<td>3.0.2</td>
</tr>
<tr>
<td>ToolWillBeUpdated3</td>
<td>14.0.0</td>
<td>14.2.0</td>
</tr>
</tbody>
</table>
'@
}
It "Some tools are updated, added and removed" {
# Previous report
$prevSoftwareReport = [SoftwareReport]::new("macOS 11")
$prevSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.1 (20G817)")
$prevSoftwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$prevInstalledSoftware = $prevSoftwareReport.Root.AddHeader("Installed Software")
$prevLanguagesAndRuntimes = $prevInstalledSoftware.AddHeader("Language and Runtime")
$prevLanguagesAndRuntimes.AddToolVersion("ToolWillBeRemoved", "5.1.16(1)-release")
$prevLanguagesAndRuntimes.AddToolVersionsListInline("ToolWithMultipleVersions3", @("1.2.100", "1.2.200", "1.3.500", "1.4.100", "1.4.200"), "^\d+\.\d+\.\d")
$prevLanguagesAndRuntimes.AddToolVersion("ToolWithoutChanges", "5.34.0")
$prevLanguagesAndRuntimes.AddToolVersion("ToolWillBeUpdated", "8.1.0")
$prevCachedTools = $prevInstalledSoftware.AddHeader("Cached Tools")
$prevCachedTools.AddToolVersionsList("ToolWithMultipleVersions1", @("2.7.3", "2.8.1", "3.1.2"), "^\d+\.\d+")
$prevCachedTools.AddToolVersionsList("ToolWithMultipleVersions2", @("14.8.0", "15.1.0", "16.4.2"), "^\d+")
$prevSQLSection = $prevInstalledSoftware.AddHeader("Databases")
$prevSQLSection.AddToolVersion("MineSQL", "6.1.0")
$prevSQLSection.AddNote("First Note")
# Next report
$nextSoftwareReport = [SoftwareReport]::new("macOS 11")
$nextSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.2 (20G922)")
$nextSoftwareReport.Root.AddToolVersion("Image Version:", "20220922.0")
$nextInstalledSoftware = $nextSoftwareReport.Root.AddHeader("Installed Software")
$nextLanguagesAndRuntimes = $nextInstalledSoftware.AddHeader("Language and Runtime")
$nextLanguagesAndRuntimes.AddToolVersion("ToolWillBeAdded", "16.18.0")
$nextLanguagesAndRuntimes.AddToolVersionsListInline("ToolWithMultipleVersions3", @("1.2.200", "1.3.515", "1.4.100", "1.4.200", "1.5.800"), "^\d+\.\d+\.\d")
$nextLanguagesAndRuntimes.AddToolVersion("ToolWithoutChanges", "5.34.0")
$nextLanguagesAndRuntimes.AddToolVersion("ToolWillBeUpdated", "8.3.0")
$nextCachedTools = $nextInstalledSoftware.AddHeader("Cached Tools")
$nextCachedTools.AddToolVersionsList("ToolWithMultipleVersions1", @("2.7.3", "2.8.1", "3.1.2"), "^\d+\.\d+")
$nextCachedTools.AddToolVersionsList("ToolWithMultipleVersions2", @("15.1.0", "16.4.2", "17.0.1"), "^\d+")
$nextSQLSection = $nextInstalledSoftware.AddHeader("Databases")
$nextSQLSection.AddToolVersion("MineSQL", "6.1.1")
$nextSQLSection.AddNote("Second Note")
# Compare reports
$comparer = [SoftwareReportDifferenceCalculator]::new($prevSoftwareReport, $nextSoftwareReport)
$comparer.CompareReports()
$comparer.GetMarkdownReport() | Should -BeExactly @'
# :desktop_computer: Actions Runner Image: macOS 11
- OS Version: macOS 11.7.2 (20G922)
- Image Version: 20220922.0
## :mega: What's changed?
### Added :heavy_plus_sign:
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Current (20220922.0)</th>
</thead>
<tbody>
<tr>
<td rowspan="2">Language and Runtime</td>
<td>ToolWillBeAdded</td>
<td>16.18.0</td>
</tr>
<tr>
<td>ToolWithMultipleVersions3</td>
<td>1.5.800</td>
</tr>
<tr>
<td rowspan="1">Cached Tools</td>
<td>ToolWithMultipleVersions2</td>
<td>17.0.1</td>
</tr>
</tbody>
</table>
### Deleted :heavy_minus_sign:
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Previous (20220918.1)</th>
</thead>
<tbody>
<tr>
<td rowspan="2">Language and Runtime</td>
<td>ToolWithMultipleVersions3</td>
<td>1.2.100</td>
</tr>
<tr>
<td>ToolWillBeRemoved</td>
<td>5.1.16(1)-release</td>
</tr>
<tr>
<td rowspan="1">Cached Tools</td>
<td>ToolWithMultipleVersions2</td>
<td>14.8.0</td>
</tr>
</tbody>
</table>
### Updated
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Previous (20220918.1)</th>
<th>Current (20220922.0)</th>
</thead>
<tbody>
<tr>
<td rowspan="1"></td>
<td>OS Version</td>
<td>macOS 11.7.1 (20G817)</td>
<td>macOS 11.7.2 (20G922)</td>
</tr>
<tr>
<td rowspan="2">Language and Runtime</td>
<td>ToolWithMultipleVersions3</td>
<td>1.3.500</td>
<td>1.3.515</td>
</tr>
<tr>
<td>ToolWillBeUpdated</td>
<td>8.1.0</td>
<td>8.3.0</td>
</tr>
<tr>
<td rowspan="1">Databases</td>
<td>MineSQL</td>
<td>6.1.0</td>
<td>6.1.1</td>
</tr>
</tbody>
</table>
'@
}
It "Header tree changes" {
# Previous report
$prevSoftwareReport = [SoftwareReport]::new("macOS 11")
$prevSoftwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$prevInstalledSoftware = $prevSoftwareReport.Root.AddHeader("Installed Software")
$prevInstalledSoftware.AddToolVersion("ToolWithoutChanges", "5.34.0")
$prevInstalledSoftware.AddHeader("HeaderWillBeRemoved").AddHeader("SubheaderWillBeRemoved").AddToolVersion("ToolWillBeRemoved", "1.0.0")
$prevInstalledSoftware.AddHeader("Header1").AddToolVersion("ToolWillBeMovedToAnotherHeader", "3.0.0")
# Next report
$nextSoftwareReport = [SoftwareReport]::new("macOS 11")
$nextSoftwareReport.Root.AddToolVersion("Image Version:", "20220922.0")
$nextInstalledSoftware = $nextSoftwareReport.Root.AddHeader("Installed Software")
$nextInstalledSoftware.AddToolVersion("ToolWithoutChanges", "5.34.0")
$nextInstalledSoftware.AddHeader("HeaderWillBeAdded").AddHeader("SubheaderWillBeAdded").AddToolVersion("ToolWillBeAdded", "5.0.0")
$nextInstalledSoftware.AddHeader("Header2").AddToolVersion("ToolWillBeMovedToAnotherHeader", "3.0.0")
# Compare reports
$comparer = [SoftwareReportDifferenceCalculator]::new($prevSoftwareReport, $nextSoftwareReport)
$comparer.CompareReports()
$comparer.GetMarkdownReport() | Should -BeExactly @'
# :desktop_computer: Actions Runner Image: macOS 11
- Image Version: 20220922.0
## :mega: What's changed?
### Added :heavy_plus_sign:
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Current (20220922.0)</th>
</thead>
<tbody>
<tr>
<td rowspan="1">HeaderWillBeAdded ><br> SubheaderWillBeAdded</td>
<td>ToolWillBeAdded</td>
<td>5.0.0</td>
</tr>
<tr>
<td rowspan="1">Header2</td>
<td>ToolWillBeMovedToAnotherHeader</td>
<td>3.0.0</td>
</tr>
</tbody>
</table>
### Deleted :heavy_minus_sign:
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Previous (20220918.1)</th>
</thead>
<tbody>
<tr>
<td rowspan="1">HeaderWillBeRemoved ><br> SubheaderWillBeRemoved</td>
<td>ToolWillBeRemoved</td>
<td>1.0.0</td>
</tr>
<tr>
<td rowspan="1">Header1</td>
<td>ToolWillBeMovedToAnotherHeader</td>
<td>3.0.0</td>
</tr>
</tbody>
</table>
'@
}
It "Tables are added and removed" {
# Previous report
$prevSoftwareReport = [SoftwareReport]::new("macOS 11")
$prevSoftwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$prevInstalledSoftware = $prevSoftwareReport.Root.AddHeader("Installed Software")
$prevInstalledSoftware.AddHeader("HeaderWillExist").AddTable(@(
[PSCustomObject]@{TableInExistingHeaderWillBeRemoved = "Q"; Value = "25"},
[PSCustomObject]@{TableInExistingHeaderWillBeRemoved = "O"; Value = "24"}
))
$prevTools = $prevInstalledSoftware.AddHeader("Tools")
$prevTools.AddHeader("HeaderWillBeRemoved").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "Z"; Value = "30"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "W"; Value = "29"}
))
# Next report
$nextSoftwareReport = [SoftwareReport]::new("macOS 11")
$nextSoftwareReport.Root.AddToolVersion("Image Version:", "20220922.1")
$nextInstalledSoftware = $nextSoftwareReport.Root.AddHeader("Installed Software")
$nextInstalledSoftware.AddHeader("HeaderWillExist")
$nextTools = $nextInstalledSoftware.AddHeader("Tools")
$nextTools.AddToolVersion("ToolWillBeAdded", "3.0.1")
$nextTools.AddTable(@(
[PSCustomObject]@{NewTableInExistingHeader = "A"; Value = "1"},
[PSCustomObject]@{NewTableInExistingHeader = "B"; Value = "2"}
))
$nextTools.AddHeader("NewHeaderWithTable").AddTable(@(
[PSCustomObject]@{NewTableInNewHeader = "C"; Value = "3"},
[PSCustomObject]@{NewTableInNewHeader = "D"; Value = "4"}
))
# Compare reports
$comparer = [SoftwareReportDifferenceCalculator]::new($prevSoftwareReport, $nextSoftwareReport)
$comparer.CompareReports()
$comparer.GetMarkdownReport() | Should -BeExactly @'
# :desktop_computer: Actions Runner Image: macOS 11
- Image Version: 20220922.1
## :mega: What's changed?
### Added :heavy_plus_sign:
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Current (20220922.1)</th>
</thead>
<tbody>
<tr>
<td rowspan="1">Tools</td>
<td>ToolWillBeAdded</td>
<td>3.0.1</td>
</tr>
</tbody>
</table>
#### Tools
| NewTableInExistingHeader | Value |
| ------------------------ | ----- |
| A | 1 |
| B | 2 |
#### Tools > NewHeaderWithTable
| NewTableInNewHeader | Value |
| ------------------- | ----- |
| C | 3 |
| D | 4 |
### Deleted :heavy_minus_sign:
#### HeaderWillExist
| TableInExistingHeaderWillBeRemoved | Value |
| ---------------------------------- | ------ |
| ~~Q~~ | ~~25~~ |
| ~~O~~ | ~~24~~ |
#### Tools > HeaderWillBeRemoved
| TableWillBeRemovedWithHeader | Value |
| ---------------------------- | ------ |
| ~~Z~~ | ~~30~~ |
| ~~W~~ | ~~29~~ |
'@
}
It "Tables are changed" {
# Previous report
$prevSoftwareReport = [SoftwareReport]::new("macOS 11")
$prevSoftwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$prevInstalledSoftware = $prevSoftwareReport.Root.AddHeader("Installed Software")
$prevTools = $prevInstalledSoftware.AddHeader("Tools")
$prevTools.AddHeader("TableWithAddedRows").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "AA"; Value = "10"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "AB"; Value = "11"}
))
$prevTools.AddHeader("TableWithRemovedRows").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "BA"; Value = "32"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "BB"; Value = "33"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "BC"; Value = "34"}
))
$prevTools.AddHeader("TableWithUpdatedRow").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "CA"; Value = "42"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "CB"; Value = "43"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "CC"; Value = "44"}
))
$prevTools.AddHeader("TableWithUpdatedRows").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DA"; Value = "50"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DB"; Value = "51"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DC"; Value = "52"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DD"; Value = "53"}
))
$prevTools.AddHeader("TableWithComplexChanges").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "EA"; Value = "62"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "EB"; Value = "63"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "EC"; Value = "64"}
[PSCustomObject]@{TableWillBeRemovedWithHeader = "ED"; Value = "65"}
))
$prevTools.AddHeader("TableWithOnlyHeaderChanged").AddTable(@(
[PSCustomObject]@{TableWithOnlyHeaderChanged = "FA"; Value = "72"},
[PSCustomObject]@{TableWithOnlyHeaderChanged = "FB"; Value = "73"}
))
$prevTools.AddHeader("TableWithHeaderAndRowsChanges").AddTable(@(
[PSCustomObject]@{TableWithHeaderAndRowsChanges = "GA"; Value = "82"},
[PSCustomObject]@{TableWithHeaderAndRowsChanges = "GB"; Value = "83"},
[PSCustomObject]@{TableWithHeaderAndRowsChanges = "GC"; Value = "84"}
))
# Next report
$nextSoftwareReport = [SoftwareReport]::new("macOS 11")
$nextSoftwareReport.Root.AddToolVersion("Image Version:", "20220922.1")
$nextInstalledSoftware = $nextSoftwareReport.Root.AddHeader("Installed Software")
$nextTools = $nextInstalledSoftware.AddHeader("Tools")
$nextTools.AddHeader("TableWithAddedRows").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "AA"; Value = "10"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "AB"; Value = "11"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "AC"; Value = "12"}
))
$nextTools.AddHeader("TableWithRemovedRows").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "BB"; Value = "33"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "BC"; Value = "34"}
))
$nextTools.AddHeader("TableWithUpdatedRow").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "CA"; Value = "42"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "CB"; Value = "500"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "CC"; Value = "44"}
))
$nextTools.AddHeader("TableWithUpdatedRows").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DA"; Value = "50"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DB"; Value = "5100"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DC"; Value = "5200"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "DD"; Value = "53"}
))
$nextTools.AddHeader("TableWithComplexChanges").AddTable(@(
[PSCustomObject]@{TableWillBeRemovedWithHeader = "EB"; Value = "63"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "EC"; Value = "640"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "ED"; Value = "65"},
[PSCustomObject]@{TableWillBeRemovedWithHeader = "EE"; Value = "66"}
))
$nextTools.AddHeader("TableWithOnlyHeaderChanged").AddTable(@(
[PSCustomObject]@{TableWithOnlyHeaderChanged2 = "FA"; Value = "72"},
[PSCustomObject]@{TableWithOnlyHeaderChanged2 = "FB"; Value = "73"}
))
$nextTools.AddHeader("TableWithHeaderAndRowsChanges").AddTable(@(
[PSCustomObject]@{TableWithHeaderAndRowsChanges2 = "GA"; Value = "82"},
[PSCustomObject]@{TableWithHeaderAndRowsChanges2 = "GE"; Value = "850"},
[PSCustomObject]@{TableWithHeaderAndRowsChanges2 = "GC"; Value = "840"}
))
# Compare reports
$comparer = [SoftwareReportDifferenceCalculator]::new($prevSoftwareReport, $nextSoftwareReport)
$comparer.CompareReports()
$comparer.GetMarkdownReport() | Should -BeExactly @'
# :desktop_computer: Actions Runner Image: macOS 11
- Image Version: 20220922.1
## :mega: What's changed?
### Added :heavy_plus_sign:
#### Tools > TableWithAddedRows
| TableWillBeRemovedWithHeader | Value |
| ---------------------------- | ----- |
| AC | 12 |
#### Tools > TableWithHeaderAndRowsChanges
| TableWithHeaderAndRowsChanges2 | Value |
| ------------------------------ | ----- |
| GA | 82 |
| GE | 850 |
| GC | 840 |
### Deleted :heavy_minus_sign:
#### Tools > TableWithRemovedRows
| TableWillBeRemovedWithHeader | Value |
| ---------------------------- | ------ |
| ~~BA~~ | ~~32~~ |
#### Tools > TableWithHeaderAndRowsChanges
| TableWithHeaderAndRowsChanges | Value |
| ----------------------------- | ------ |
| ~~GA~~ | ~~82~~ |
| ~~GB~~ | ~~83~~ |
| ~~GC~~ | ~~84~~ |
### Updated
#### Tools > TableWithUpdatedRow
| TableWillBeRemovedWithHeader | Value |
| ---------------------------- | ------ |
| ~~CB~~ | ~~43~~ |
| CB | 500 |
#### Tools > TableWithUpdatedRows
| TableWillBeRemovedWithHeader | Value |
| ---------------------------- | ------ |
| ~~DB~~ | ~~51~~ |
| ~~DC~~ | ~~52~~ |
| DB | 5100 |
| DC | 5200 |
#### Tools > TableWithComplexChanges
| TableWillBeRemovedWithHeader | Value |
| ---------------------------- | ------ |
| ~~EA~~ | ~~62~~ |
| ~~EC~~ | ~~64~~ |
| EC | 640 |
| EE | 66 |
'@
}
It "Reports are identical" {
# Previous report
$prevSoftwareReport = [SoftwareReport]::new("macOS 11")
$prevSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.1 (20G817)")
$prevSoftwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$prevInstalledSoftware = $prevSoftwareReport.Root.AddHeader("Installed Software")
$prevTools = $prevInstalledSoftware.AddHeader("Tools")
$prevTools.AddToolVersion("ToolA", "1.0.0")
$prevTools.AddToolVersion("ToolB", "3.0.1")
# Next report
$nextSoftwareReport = [SoftwareReport]::new("macOS 11")
$nextSoftwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7.1 (20G817)")
$nextSoftwareReport.Root.AddToolVersion("Image Version:", "20220922.1")
$nextInstalledSoftware = $nextSoftwareReport.Root.AddHeader("Installed Software")
$nextTools = $nextInstalledSoftware.AddHeader("Tools")
$nextTools.AddToolVersion("ToolA", "1.0.0")
$nextTools.AddToolVersion("ToolB", "3.0.1")
# Compare reports
$comparer = [SoftwareReportDifferenceCalculator]::new($prevSoftwareReport, $nextSoftwareReport)
$comparer.CompareReports()
$comparer.GetMarkdownReport() | Should -BeExactly @'
# :desktop_computer: Actions Runner Image: macOS 11
- OS Version: macOS 11.7.1 (20G817)
- Image Version: 20220922.1
## :mega: What's changed?
'@
}
}
@@ -0,0 +1,603 @@
using module ../SoftwareReport.Nodes.psm1
using module ../SoftwareReport.DifferenceCalculator.psm1
BeforeDiscovery {
Import-Module $(Join-Path $PSScriptRoot "TestHelpers.psm1") -DisableNameChecking
}
Describe "Comparer.UnitTests" {
Describe "Headers Tree" {
It "Add Node to existing header" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersion("MyTool1", "2.1.3")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Version | Should -Be "2.1.3"
$comparer.AddedItems[0].Headers | Should -BeArray @("MyHeader")
}
It "Add new header with Node" {
$prevReport = [HeaderNode]::new("Version 1")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddHeader("MySubHeader").AddToolVersion("MyTool1", "2.1.3")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Version | Should -Be "2.1.3"
$comparer.AddedItems[0].Headers | Should -BeArray @("MyHeader", "MySubHeader")
}
It "Remove Node from existing header" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersion("MyTool1", "2.1.3")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Version | Should -Be "2.1.3"
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
$comparer.DeletedItems[0].Headers | Should -BeArray @("MyHeader")
}
It "Remove header with Node" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddHeader("MySubheader").AddToolVersion("MyTool1", "2.1.3")
$nextReport = [HeaderNode]::new("Version 2")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Version | Should -Be "2.1.3"
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
$comparer.DeletedItems[0].Headers | Should -BeArray @("MyHeader", "MySubheader")
}
It "Node with minor changes" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddHeader("MySubheader").AddToolVersion("MyTool1", "2.1.3")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddHeader("MySubheader").AddToolVersion("MyTool1", "2.1.4")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Version | Should -Be "2.1.3"
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Version | Should -Be "2.1.4"
$comparer.ChangedItems[0].Headers | Should -BeArray @("MyHeader", "MySubHeader")
}
It "Node without changes" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddHeader("MySubheader").AddToolVersion("MyTool1", "2.1.3")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddHeader("MySubheader").AddToolVersion("MyTool1", "2.1.3")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
}
It "Node is moved to different header" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddHeader("MySubheader").AddToolVersion("MyTool1", "2.1.3")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddHeader("MySubheader2").AddToolVersion("MyTool1", "2.1.3")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Version | Should -Be "2.1.3"
$comparer.AddedItems[0].Headers | Should -BeArray @("MyHeader", "MySubheader2")
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Version | Should -Be "2.1.3"
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
$comparer.DeletedItems[0].Headers | Should -BeArray @("MyHeader", "MySubheader")
}
It "Complex structure" {
$prevReport = [HeaderNode]::new("Version 1")
$prevSubHeader = $prevReport.AddHeader("MyHeader").AddHeader("MySubheader")
$prevSubHeader.AddToolVersion("MyTool1", "2.1.3")
$prevSubHeader.AddHeader("MySubSubheader").AddToolVersion("MyTool2", "2.9.1")
$prevReport.AddHeader("MyHeader2")
$prevReport.AddHeader("MyHeader3").AddHeader("MySubheader3").AddToolVersion("MyTool3", "14.2.1")
$nextReport = [HeaderNode]::new("Version 2")
$nextSubHeader = $nextReport.AddHeader("MyHeader").AddHeader("MySubheader")
$nextSubHeader.AddToolVersion("MyTool1", "2.1.4")
$nextSubSubHeader = $nextSubHeader.AddHeader("MySubSubheader")
$nextSubSubHeader.AddToolVersion("MyTool2", "2.9.1")
$nextSubSubHeader.AddToolVersion("MyTool4", "2.7.6")
$nextReport.AddHeader("MyHeader2")
$nextReport.AddHeader("MyHeader3")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 1
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool4"
$comparer.AddedItems[0].CurrentReportNode.Version | Should -Be "2.7.6"
$comparer.AddedItems[0].Headers | Should -BeArray @("MyHeader", "MySubheader", "MySubSubheader")
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Version | Should -Be "2.1.3"
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Version | Should -Be "2.1.4"
$comparer.ChangedItems[0].Headers | Should -BeArray @("MyHeader", "MySubheader")
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool3"
$comparer.DeletedItems[0].PreviousReportNode.Version | Should -Be "14.2.1"
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
$comparer.DeletedItems[0].Headers | Should -BeArray @("MyHeader3", "MySubheader3")
}
}
Describe "ToolVersionNode" {
It "ToolVersionNode is updated" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersion("MyTool1", "2.1.3")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersion("MyTool1", "2.1.4")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Version | Should -Be "2.1.3"
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Version | Should -Be "2.1.4"
$comparer.ChangedItems[0].Headers | Should -BeArray @("MyHeader")
}
}
Describe "ToolVersionsListNode" {
It "Single version is not changed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3"), "^.+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3"), "^.+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
}
It "Single version is changed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3"), "^\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.4"), "^\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Versions | Should -BeArray @("2.1.3")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Versions | Should -BeArray @("2.1.4")
}
It "Major version is added" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3"), "^\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3", "3.1.4"), "^\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Versions | Should -BeArray @("3.1.4")
}
It "Major version is removed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3", "3.1.4"), "^\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("3.1.4"), "^\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Versions | Should -BeArray @("2.1.3")
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
}
It "Major version is changed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("3.1.4"), "^\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("3.2.0"), "^\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Versions | Should -BeArray @("3.1.4")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Versions | Should -BeArray @("3.2.0")
}
It "Major version is added, removed and updated at the same time" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("1.0.0", "2.1.3", "3.1.4", "4.0.2"), "^\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.1.3", "3.2.0", "4.0.2", "5.1.0"), "^\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 1
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Versions | Should -BeArray @("5.1.0")
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Versions | Should -BeArray @("3.1.4")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Versions | Should -BeArray @("3.2.0")
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Versions | Should -BeArray @("1.0.0")
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
}
It "Minor version is added, removed and updated at the same time" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.3.8", "2.4.9", "2.5.3", "2.6.0", "2.7.4", "2.8.0"), "^\d+\.\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.5.3", "2.6.2", "2.7.5", "2.8.0", "2.9.2", "2.10.3"), "^\d+\.\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 1
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Versions | Should -BeArray @("2.9.2", "2.10.3")
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].PreviousReportNode.Versions | Should -BeArray @("2.6.0", "2.7.4")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.ChangedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.ChangedItems[0].CurrentReportNode.Versions | Should -BeArray @("2.6.2", "2.7.5")
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Versions | Should -BeArray @("2.3.8", "2.4.9")
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
}
It "Patch version is added, removed and updated at the same time" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.3.8", "2.4.9", "2.5.3", "2.6.0", "2.7.4"), "^\d+\.\d+\.\d+")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddToolVersionsList("MyTool1", @("2.4.9", "2.5.4", "2.6.0", "2.7.5", "2.8.2"), "^\d+\.\d+\.\d+")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.AddedItems[0].CurrentReportNode.ToolName | Should -Be "MyTool1"
$comparer.AddedItems[0].CurrentReportNode.Versions | Should -BeArray @("2.5.4", "2.7.5", "2.8.2")
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([ToolVersionsListNode])
$comparer.DeletedItems[0].PreviousReportNode.ToolName | Should -Be "MyTool1"
$comparer.DeletedItems[0].PreviousReportNode.Versions | Should -BeArray @("2.3.8", "2.5.3", "2.7.4")
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
}
}
Describe "TableNode" {
It "Rows are added" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2", "C1|C2", "D1|D2")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
$comparer.AddedItems[0].PreviousReportNode | Should -BeOfType ([TableNode])
$comparer.AddedItems[0].PreviousReportNode.Headers | Should -Be "Name|Value"
$comparer.AddedItems[0].PreviousReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2")
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([TableNode])
$comparer.AddedItems[0].CurrentReportNode.Headers | Should -Be "Name|Value"
$comparer.AddedItems[0].CurrentReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2", "C1|C2", "D1|D2")
}
It "Rows are deleted" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2", "C1|C2", "D1|D2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("C1|C2", "D1|D2")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([TableNode])
$comparer.DeletedItems[0].PreviousReportNode.Headers | Should -Be "Name|Value"
$comparer.DeletedItems[0].PreviousReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2", "C1|C2", "D1|D2")
$comparer.DeletedItems[0].CurrentReportNode | Should -BeOfType ([TableNode])
$comparer.DeletedItems[0].CurrentReportNode.Headers | Should -Be "Name|Value"
$comparer.DeletedItems[0].CurrentReportNode.Rows | Should -BeArray @("C1|C2", "D1|D2")
}
It "Rows are changed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B3|B4")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([TableNode])
$comparer.ChangedItems[0].PreviousReportNode.Headers | Should -Be "Name|Value"
$comparer.ChangedItems[0].PreviousReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([TableNode])
$comparer.ChangedItems[0].CurrentReportNode.Headers | Should -Be "Name|Value"
$comparer.ChangedItems[0].CurrentReportNode.Rows | Should -BeArray @("A1|A2", "B3|B4")
}
It "Rows are changed and updated at the same time" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B3|B4", "C1|C2")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([TableNode])
$comparer.ChangedItems[0].PreviousReportNode.Headers | Should -Be "Name|Value"
$comparer.ChangedItems[0].PreviousReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([TableNode])
$comparer.ChangedItems[0].CurrentReportNode.Headers | Should -Be "Name|Value"
$comparer.ChangedItems[0].CurrentReportNode.Rows | Should -BeArray @("A1|A2", "B3|B4", "C1|C2")
}
It "Rows are changed and removed at the same time" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2", "C1|C2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B3|B4")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 1
$comparer.DeletedItems | Should -HaveCount 0
$comparer.ChangedItems[0].PreviousReportNode | Should -BeOfType ([TableNode])
$comparer.ChangedItems[0].PreviousReportNode.Headers | Should -Be "Name|Value"
$comparer.ChangedItems[0].PreviousReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2", "C1|C2")
$comparer.ChangedItems[0].CurrentReportNode | Should -BeOfType ([TableNode])
$comparer.ChangedItems[0].CurrentReportNode.Headers | Should -Be "Name|Value"
$comparer.ChangedItems[0].CurrentReportNode.Rows | Should -BeArray @("A1|A2", "B3|B4")
}
It "Rows are not changed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
}
It "Rows are not changed but header is changed" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value2", @("A1|A2", "B1|B2")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
}
It "Rows are changed and header is changed at the same time" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value", @("A1|A2", "B1|B2")))
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddHeader("MyHeader").AddNode([TableNode]::new("Name|Value2", @("A1|A2", "B1|B2", "C1|C2")))
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 1
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 1
$comparer.AddedItems[0].PreviousReportNode | Should -BeNullOrEmpty
$comparer.AddedItems[0].CurrentReportNode | Should -BeOfType ([TableNode])
$comparer.AddedItems[0].CurrentReportNode.Headers | Should -Be "Name|Value2"
$comparer.AddedItems[0].CurrentReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2", "C1|C2")
$comparer.DeletedItems[0].PreviousReportNode | Should -BeOfType ([TableNode])
$comparer.DeletedItems[0].PreviousReportNode.Headers | Should -Be "Name|Value"
$comparer.DeletedItems[0].PreviousReportNode.Rows | Should -BeArray @("A1|A2", "B1|B2")
$comparer.DeletedItems[0].CurrentReportNode | Should -BeNullOrEmpty
}
}
Describe "NoteNode" {
It "NoteNode is ignored from report" {
$prevReport = [HeaderNode]::new("Version 1")
$prevReport.AddNote("MyFirstNote")
$prevReport.AddHeader("MyFirstHeader").AddNote("MyFirstSubNote")
$nextReport = [HeaderNode]::new("Version 2")
$nextReport.AddNote("MySecondNote")
$nextReport.AddHeader("MySecondHeader").AddNote("MySecondSubNote")
$comparer = [SoftwareReportDifferenceCalculator]::new($prevReport, $nextReport)
$comparer.CompareReports()
$comparer.AddedItems | Should -HaveCount 0
$comparer.ChangedItems | Should -HaveCount 0
$comparer.DeletedItems | Should -HaveCount 0
}
}
}
@@ -0,0 +1,291 @@
using module ../SoftwareReport.Nodes.psm1
using module ../SoftwareReport.DifferenceRender.psm1
BeforeDiscovery {
Import-Module $(Join-Path $PSScriptRoot "TestHelpers.psm1") -DisableNameChecking
}
Describe "ComparerReport.UnitTests" {
BeforeAll {
$script:DifferenceRender = [SoftwareReportDifferenceRender]::new()
}
Context "CalculateHtmlTableRowSpan" {
It "Without the equal cells" {
$table = @(
[PSCustomObject]@{ Key = "A"; Value = "1" }
[PSCustomObject]@{ Key = "B"; Value = "2" }
[PSCustomObject]@{ Key = "C"; Value = "3" }
)
$actual = $DifferenceRender.CalculateHtmlTableRowSpan($table, "Key")
$actual | Should -BeArray @(1, 1, 1)
}
It "Only equal cells" {
$table = @(
[PSCustomObject]@{ Key = "A"; Value = "D" }
[PSCustomObject]@{ Key = "B"; Value = "D" }
[PSCustomObject]@{ Key = "C"; Value = "D" }
)
$actual = $DifferenceRender.CalculateHtmlTableRowSpan($table, "Value")
$actual | Should -BeArray @(3, 0, 0)
}
It "Single row" {
$table = @(
[PSCustomObject]@{ Key = "A"; Value = "1" }
)
$actual = $DifferenceRender.CalculateHtmlTableRowSpan($table, "Key")
$actual | Should -BeArray @(1)
}
It "Different cells" {
$table = @(
[PSCustomObject]@{ Key = "A"; Value = "1" }
[PSCustomObject]@{ Key = "B"; Value = "2" }
[PSCustomObject]@{ Key = "B"; Value = "3" }
[PSCustomObject]@{ Key = "C"; Value = "4" }
[PSCustomObject]@{ Key = "C"; Value = "5" }
[PSCustomObject]@{ Key = "C"; Value = "6" }
[PSCustomObject]@{ Key = "D"; Value = "7" }
[PSCustomObject]@{ Key = "E"; Value = "8" }
[PSCustomObject]@{ Key = "E"; Value = "9" }
[PSCustomObject]@{ Key = "F"; Value = "10" }
)
$actual = $DifferenceRender.CalculateHtmlTableRowSpan($table, "Key")
$actual | Should -BeArray @(1, 2, 0, 3, 0, 0, 1, 2, 0, 1)
}
}
Context "RenderCategory" {
It "With line separator" {
$actual = $DifferenceRender.RenderCategory(@("Header 1", "Header 2", "Header 3"), $true)
$actual | Should -Be "Header 2 ><br> Header 3"
}
It "Without line separator" {
$actual = $DifferenceRender.RenderCategory(@("Header 1", "Header 2", "Header 3"), $false)
$actual | Should -Be "Header 2 > Header 3"
}
It "One header" {
$actual = $DifferenceRender.RenderCategory(@("Header 1"), $false)
$actual | Should -Be ""
}
It "Empty headers" {
$actual = $DifferenceRender.RenderCategory(@(), $false)
$actual | Should -Be ""
}
}
Context "RenderToolName" {
It "Clear tool name" {
$actual = $DifferenceRender.RenderToolName("My Tool 1")
$actual | Should -Be "My Tool 1"
}
It "Name with colon symbol" {
$actual = $DifferenceRender.RenderToolName("My Tool 1:")
$actual | Should -Be "My Tool 1"
}
}
Context "StrikeTableRow" {
It "Simple row" {
$actual = $DifferenceRender.StrikeTableRow("Test1|Test2|Test3")
$actual | Should -Be "~~Test1~~|~~Test2~~|~~Test3~~"
}
It "Row with spaces" {
$actual = $DifferenceRender.StrikeTableRow("Test 1|Test 2|Test 3")
$actual | Should -Be "~~Test 1~~|~~Test 2~~|~~Test 3~~"
}
}
Context "RenderHtmlTable" {
It "Simple table" {
$table = @(
[PSCustomObject]@{ "Category" = "A"; "Tool name" = "My Tool 1"; "Version" = "1.0" },
[PSCustomObject]@{ "Category" = "B"; "Tool name" = "My Tool 2"; "Version" = "2.0" },
[PSCustomObject]@{ "Category" = "C"; "Tool name" = "My Tool 3"; "Version" = "3.0" }
)
$renderedTable = $DifferenceRender.RenderHtmlTable($table, "Category")
$renderedTable | Should -Be @'
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Version</th>
</thead>
<tbody>
<tr>
<td rowspan="1">A</td>
<td>My Tool 1</td>
<td>1.0</td>
</tr>
<tr>
<td rowspan="1">B</td>
<td>My Tool 2</td>
<td>2.0</td>
</tr>
<tr>
<td rowspan="1">C</td>
<td>My Tool 3</td>
<td>3.0</td>
</tr>
</tbody>
</table>
'@
}
It "Table with the same category" {
$table = @(
[PSCustomObject]@{ "Category" = "A"; "Tool name" = "My Tool 1"; "Version" = "1.0" },
[PSCustomObject]@{ "Category" = "A"; "Tool name" = "My Tool 2"; "Version" = "2.0" },
[PSCustomObject]@{ "Category" = "A"; "Tool name" = "My Tool 3"; "Version" = "3.0" },
[PSCustomObject]@{ "Category" = "B"; "Tool name" = "My Tool 4"; "Version" = "4.0" }
)
$renderedTable = $DifferenceRender.RenderHtmlTable($table, "Category")
$renderedTable | Should -Be @'
<table>
<thead>
<th>Category</th>
<th>Tool name</th>
<th>Version</th>
</thead>
<tbody>
<tr>
<td rowspan="3">A</td>
<td>My Tool 1</td>
<td>1.0</td>
</tr>
<tr>
<td>My Tool 2</td>
<td>2.0</td>
</tr>
<tr>
<td>My Tool 3</td>
<td>3.0</td>
</tr>
<tr>
<td rowspan="1">B</td>
<td>My Tool 4</td>
<td>4.0</td>
</tr>
</tbody>
</table>
'@
}
}
Context "RenderTableNodesDiff" {
It "Add new table" {
$previousNode = $null
$currentNode = [TableNode]::new("Name|Value", @("A|1", "B|2"))
$reportItem = [ReportDifferenceItem]::new($previousNode, $currentNode, @("Header 1", "Header 2", "Header 3"))
$actual = $DifferenceRender.RenderTableNodesDiff($reportItem)
$actual | Should -Be @'
#### Header 2 > Header 3
| Name | Value |
| ---- | ----- |
| A | 1 |
| B | 2 |
'@
}
It "Remove existing table" {
$previousNode = [TableNode]::new("Name|Value", @("A|1", "B|2"))
$currentNode = $null
$reportItem = [ReportDifferenceItem]::new($previousNode, $currentNode, @("Header 1", "Header 2", "Header 3"))
$actual = $DifferenceRender.RenderTableNodesDiff($reportItem)
$actual | Should -Be @'
#### Header 2 > Header 3
| Name | Value |
| ----- | ----- |
| ~~A~~ | ~~1~~ |
| ~~B~~ | ~~2~~ |
'@
}
It "Add new rows to existing table" {
$previousNode = [TableNode]::new("Name|Value", @("A|1", "B|2"))
$currentNode = [TableNode]::new("Name|Value", @("A|1", "B|2", "C|3", "D|4"))
$reportItem = [ReportDifferenceItem]::new($previousNode, $currentNode, @("Header 1", "Header 2", "Header 3"))
$actual = $DifferenceRender.RenderTableNodesDiff($reportItem)
$actual | Should -Be @'
#### Header 2 > Header 3
| Name | Value |
| ---- | ----- |
| C | 3 |
| D | 4 |
'@
}
It "Remove rows from existing table" {
$previousNode = [TableNode]::new("Name|Value", @("A|1", "B|2", "C|3", "D|4"))
$currentNode = [TableNode]::new("Name|Value", @("C|3", "D|4"))
$reportItem = [ReportDifferenceItem]::new($previousNode, $currentNode, @("Header 1", "Header 2", "Header 3"))
$actual = $DifferenceRender.RenderTableNodesDiff($reportItem)
$actual | Should -Be @'
#### Header 2 > Header 3
| Name | Value |
| ----- | ----- |
| ~~A~~ | ~~1~~ |
| ~~B~~ | ~~2~~ |
'@
}
It "Row is changed in existing table" {
$previousNode = [TableNode]::new("Name|Value", @("A|1", "B|2"))
$currentNode = [TableNode]::new("Name|Value", @("A|1", "B|3"))
$reportItem = [ReportDifferenceItem]::new($previousNode, $currentNode, @("Header 1", "Header 2", "Header 3"))
$actual = $DifferenceRender.RenderTableNodesDiff($reportItem)
$actual | Should -Be @'
#### Header 2 > Header 3
| Name | Value |
| ----- | ----- |
| ~~B~~ | ~~2~~ |
| B | 3 |
'@
}
It "Row is changed, added and removed at the same time in existing table" {
$previousNode = [TableNode]::new("Name|Value", @("A|1", "B|2", "C|3", "D|4"))
$currentNode = [TableNode]::new("Name|Value", @("B|2", "C|4", "D|4", "E|5"))
$reportItem = [ReportDifferenceItem]::new($previousNode, $currentNode, @("Header 1", "Header 2", "Header 3"))
$actual = $DifferenceRender.RenderTableNodesDiff($reportItem)
$actual | Should -Be @'
#### Header 2 > Header 3
| Name | Value |
| ----- | ----- |
| ~~A~~ | ~~1~~ |
| ~~C~~ | ~~3~~ |
| C | 4 |
| E | 5 |
'@
}
}
}
@@ -0,0 +1,93 @@
using module ../SoftwareReport.psm1
using module ../SoftwareReport.Nodes.psm1
Describe "SoftwareReport.E2E" {
Context "Report example 1" {
BeforeEach {
$softwareReport = [SoftwareReport]::new("macOS 11")
$softwareReport.Root.AddToolVersion("OS Version:", "macOS 11.7 (20G817)")
$softwareReport.Root.AddToolVersion("Image Version:", "20220918.1")
$installedSoftware = $softwareReport.Root.AddHeader("Installed Software")
$languagesAndRuntimes = $installedSoftware.AddHeader("Language and Runtime")
$languagesAndRuntimes.AddToolVersion("Bash", "5.1.16(1)-release")
$languagesAndRuntimes.AddToolVersionsListInline(".NET Core SDK", @("1.2.100", "1.2.200", "3.1.414"), "^\d+\.\d+\.\d")
$languagesAndRuntimes.AddNode([ToolVersionNode]::new("Perl", "5.34.0"))
$cachedTools = $installedSoftware.AddHeader("Cached Tools")
$cachedTools.AddToolVersionsList("Ruby", @("2.7.3", "2.8.1", "3.1.2"), "^\d+\.\d+")
$cachedTools.AddToolVersionsList("Node.js", @("14.8.0", "15.1.0", "16.4.2"), "^\d+")
$javaSection = $installedSoftware.AddHeader("Java")
$javaSection.AddTable(@(
[PSCustomObject] @{ Version = "8.0.125"; Vendor = "My Vendor"; "Environment Variable" = "JAVA_HOME_8_X64" },
[PSCustomObject] @{ Version = "11.3.103"; Vendor = "My Vendor"; "Environment Variable" = "JAVA_HOME_11_X64" }
))
$sqlSection = $installedSoftware.AddHeader("MySQL")
$sqlSection.AddToolVersion("MySQL", "6.1.0")
$sqlSection.AddNote("MySQL service is disabled by default.`nUse the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'")
$expectedMarkdown = @'
# macOS 11
- OS Version: macOS 11.7 (20G817)
- Image Version: 20220918.1
## Installed Software
### Language and Runtime
- Bash 5.1.16(1)-release
- .NET Core SDK: 1.2.100, 1.2.200, 3.1.414
- Perl 5.34.0
### Cached Tools
#### Ruby
- 2.7.3
- 2.8.1
- 3.1.2
#### Node.js
- 14.8.0
- 15.1.0
- 16.4.2
### Java
| Version | Vendor | Environment Variable |
| -------- | --------- | -------------------- |
| 8.0.125 | My Vendor | JAVA_HOME_8_X64 |
| 11.3.103 | My Vendor | JAVA_HOME_11_X64 |
### MySQL
- MySQL 6.1.0
```
MySQL service is disabled by default.
Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'
```
'@
}
It "ToMarkdown" {
$softwareReport.ToMarkdown() | Should -Be $expectedMarkdown
}
It "Serialization + Deserialization" {
$json = $softwareReport.ToJson()
$deserializedReport = [SoftwareReport]::FromJson($json)
$deserializedReport.ToMarkdown() | Should -Be $expectedMarkdown
}
}
Context "GetImageVersion" {
It "Image version exists" {
$softwareReport = [SoftwareReport]::new("MyReport")
$softwareReport.Root.AddToolVersion("Image Version:", "123.4")
$softwareReport.GetImageVersion() | Should -Be "123.4"
}
It "Empty report" {
$softwareReport = [SoftwareReport]::new("MyReport")
$softwareReport.GetImageVersion() | Should -Be "Unknown version"
}
}
}
@@ -0,0 +1,511 @@
using module ../SoftwareReport.Nodes.psm1
BeforeDiscovery {
Import-Module $(Join-Path $PSScriptRoot "TestHelpers.psm1") -DisableNameChecking
}
Describe "Nodes.UnitTests" {
Context "ToolVersionNode" {
It "ToMarkdown" {
$node = [ToolVersionNode]::new("MyTool", "2.1.3")
$node.ToMarkdown() | Should -Be "- MyTool 2.1.3"
}
It "GetValue" {
$node = [ToolVersionNode]::new("MyTool", "2.1.3")
$node.GetValue() | Should -Be "2.1.3"
}
It "Serialization" {
$node = [ToolVersionNode]::new("MyTool", "2.1.3")
$json = $node.ToJsonObject()
$json.NodeType | Should -Be "ToolVersionNode"
$json.ToolName | Should -Be "MyTool"
$json.Version | Should -Be "2.1.3"
}
It "Deserialization" {
{ [ToolVersionNode]::FromJsonObject(@{ NodeType = "ToolVersionNode"; ToolName = ""; Version = "2.1.3" }) } | Should -Throw '*Exception setting "ToolName": "The argument is null or empty.*'
{ [ToolVersionNode]::FromJsonObject(@{ NodeType = "ToolVersionNode"; ToolName = "MyTool"; Version = "" }) } | Should -Throw '*Exception setting "Version": "The argument is null or empty.*'
{ [ToolVersionNode]::FromJsonObject(@{ NodeType = "ToolVersionNode"; ToolName = "MyTool"; Version = "2.1.3" }) } | Should -Not -Throw
}
It "Serialization + Deserialization" {
$node = [ToolVersionNode]::new("MyTool", "2.1.3")
$json = $node.ToJsonObject()
$node2 = [ToolVersionNode]::FromJsonObject($json)
$json2 = $node2.ToJsonObject()
$($json | ConvertTo-Json) | Should -Be $($json2 | ConvertTo-Json)
}
It "IsSimilarTo" {
[ToolVersionNode]::new("MyTool", "2.1.3").IsSimilarTo([ToolVersionNode]::new("MyTool", "2.1.3")) | Should -BeTrue
[ToolVersionNode]::new("MyTool", "2.1.3").IsSimilarTo([ToolVersionNode]::new("MyTool", "1.0.0")) | Should -BeTrue
[ToolVersionNode]::new("MyTool", "2.1.3").IsSimilarTo([ToolVersionNode]::new("MyTool2", "2.1.3")) | Should -BeFalse
}
It "IsIdenticalTo" {
[ToolVersionNode]::new("MyTool", "2.1.3").IsIdenticalTo([ToolVersionNode]::new("MyTool", "2.1.3")) | Should -BeTrue
[ToolVersionNode]::new("MyTool", "2.1.3").IsIdenticalTo([ToolVersionNode]::new("MyTool", "1.0.0")) | Should -BeFalse
[ToolVersionNode]::new("MyTool", "2.1.3").IsIdenticalTo([ToolVersionNode]::new("MyTool2", "2.1.3")) | Should -BeFalse
}
}
Context "ToolVersionsListNode" {
It "ToMarkdown - List" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.7.7", "3.0.5", "3.1.3"), "^.+", "List")
$expected = @(
"",
"# MyTool"
"- 2.7.7"
"- 3.0.5"
"- 3.1.3"
) -join "`n"
$node.ToMarkdown() | Should -Be $expected
}
It "ToMarkdown - Inline" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.7.7", "3.0.5", "3.1.3"), "^.+", "Inline")
$node.ToMarkdown() | Should -Be "- MyTool: 2.7.7, 3.0.5, 3.1.3"
}
It "GetValue" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.7.7", "3.0.5", "3.1.3"), "^.+", "List")
$node.GetValue() | Should -Be "2.7.7, 3.0.5, 3.1.3"
}
It "Serialization - List" {
$node = [ToolVersionsListNode]::new("Ruby", @("2.7.7", "3.0.5", "3.1.3"), "^.+", "List")
$json = $node.ToJsonObject()
$json.NodeType | Should -Be "ToolVersionsListNode"
$json.ToolName | Should -Be "Ruby"
$json.Versions | Should -BeArray @("2.7.7", "3.0.5", "3.1.3")
$json.MajorVersionRegex | Should -Be "^.+"
$json.ListType | Should -Be "List"
}
It "Serialization - Inline" {
$node = [ToolVersionsListNode]::new("Ruby", @("2.7.7", "3.0.5", "3.1.3"), "^.+", "Inline")
$json = $node.ToJsonObject()
$json.NodeType | Should -Be "ToolVersionsListNode"
$json.ToolName | Should -Be "Ruby"
$json.Versions | Should -BeArray @("2.7.7", "3.0.5", "3.1.3")
$json.MajorVersionRegex | Should -Be "^.+"
$json.ListType | Should -Be "Inline"
}
It "Deserialization" {
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = ""; Versions = @("2.1.3", "3.1.4"); MajorVersionRegex = "^\d+"; ListType = "List" }) } | Should -Throw '*Exception setting "ToolName": "The argument is null or empty.*'
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; MajorVersionRegex = "^\d+"; ListType = "List" }) } | Should -Throw '*Exception setting "Versions": "The argument is null or empty.*'
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; Versions = @(); MajorVersionRegex = "^\d+"; ListType = "List" }) } | Should -Throw '*Exception setting "Versions": "The argument is null, empty,*'
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; Versions = @("2.1.3", '2.2.4'); MajorVersionRegex = "^\d+"; ListType = "List" }) } | Should -Throw 'Multiple versions from list * return the same result from regex *'
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; Versions = @("2.1.3", "3.1.4"); MajorVersionRegex = ""; ListType = "List" }) } | Should -Throw 'Version * doesn''t match regex *'
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; Versions = @("2.1.3", "3.1.4"); MajorVersionRegex = "^\d+"; ListType = "Fake" }) } | Should -Throw '*Exception setting "ListType": "The argument * does not belong to the set*'
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; Versions = @("2.1.3", "3.1.4"); MajorVersionRegex = "^\d+"; ListType = "List" }) } | Should -Not -Throw
{ [ToolVersionsListNode]::FromJsonObject(@{ NodeType = "ToolVersionsListNode"; ToolName = "MyTool"; Versions = @("2.1.3", "3.1.4"); MajorVersionRegex = "^\d+"; ListType = "Inline" }) } | Should -Not -Throw
}
It "Serialization + Deserialization" {
$node = [ToolVersionsListNode]::new("Ruby", @("2.7.7", "3.0.5", "3.1.3"), "^.+", "List")
$json = $node.ToJsonObject()
$node2 = [ToolVersionsListNode]::FromJsonObject($json)
$json2 = $node2.ToJsonObject()
$($json | ConvertTo-Json) | Should -Be $($json2 | ConvertTo-Json)
}
It "IsSimilarTo" {
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List").IsSimilarTo(
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List")
) | Should -BeTrue
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List").IsSimilarTo(
[ToolVersionsListNode]::new("MyTool", @("2.1.5", "5.0.0"), "^.+", "List")
) | Should -BeTrue
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List").IsSimilarTo(
[ToolVersionsListNode]::new("MyTool2", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List")
) | Should -BeFalse
}
It "IsIdenticalTo" {
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List").IsIdenticalTo(
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List")
) | Should -BeTrue
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List").IsIdenticalTo(
[ToolVersionsListNode]::new("MyTool", @("2.1.5", "5.0.0"), "^.+", "List")
) | Should -BeFalse
[ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List").IsIdenticalTo(
[ToolVersionsListNode]::new("MyTool2", @("2.1.3", "3.1.5", "4.0.0"), "^.+", "List")
) | Should -BeFalse
}
It "ExtractMajorVersion" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^\d+\.\d+", "List")
$node.ExtractMajorVersion("2.1.3") | Should -Be "2.1"
$node.ExtractMajorVersion("3.1.5") | Should -Be "3.1"
$node.ExtractMajorVersion("4.0.0") | Should -Be "4.0"
}
Context "ValidateMajorVersionRegex" {
It "Major version regex - unique versions" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "4.0.0"), "^\d+", "List")
$node.Versions | Should -BeArray @("2.1.3", "3.1.5", "4.0.0")
}
It "Major version regex - non-unique versions" {
{ [ToolVersionsListNode]::new("MyTool", @("2.1.3", "3.1.5", "3.2.0", "4.0.0"), "^\d+", "List") } | Should -Throw "Multiple versions from list * return the same result from regex *"
}
It "Minor version regex - unique versions" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.1.3", "2.4.0", "3.1.2"), "^\d+\.\d+", "List")
$node.Versions | Should -BeArray @("2.1.3", "2.4.0", "3.1.2")
}
It "Minor version regex - non-unique versions" {
{ [ToolVersionsListNode]::new("MyTool", @("2.1.3", "2.1.4", "3.1.2"), "^\d+\.\d+", "List") } | Should -Throw "Multiple versions from list * return the same result from regex *"
}
It "Patch version regex - unique versions" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.1.3", "2.1.4", "2.1.5"), "^\d+\.\d+\.\d+", "List")
$node.Versions | Should -BeArray @("2.1.3", "2.1.4", "2.1.5")
}
It "Patch version regex - non-unique versions" {
{ [ToolVersionsListNode]::new("MyTool", @("2.1.3", "2.1.4", "2.1.4"), "^\d+\.\d+\.\d+", "List") } | Should -Throw "Multiple versions from list * return the same result from regex *"
}
It ".NET Core version regex - unique versions" {
$node = [ToolVersionsListNode]::new("MyTool", @("2.1.100", "2.1.205", "2.1.303"), "^\d+\.\d+\.\d", "List")
$node.Versions | Should -BeArray @("2.1.100", "2.1.205", "2.1.303")
}
It ".NET Core version regex - non-unique versions" {
{ [ToolVersionsListNode]::new("MyTool", @("2.1.100", "2.1.205", "2.1.230", "3.1.0"), "^\d+\.\d+\.\d", "List") } | Should -Throw "Multiple versions from list * return the same result from regex *"
}
}
}
Context "TableNode" {
It "ToMarkdown (Simple table)" {
$node = [TableNode]::new("Name|Value", @("A|B", "C|D"))
$node.ToMarkdown() | Should -Be @'
| Name | Value |
| ---- | ----- |
| A | B |
| C | D |
'@
}
It "ToMarkdown (Wide cells)" {
$node = [TableNode]::new("Name|Value", @("Very long value here|B", "C|And very long value here too"))
$node.ToMarkdown() | Should -Be @'
| Name | Value |
| -------------------- | ---------------------------- |
| Very long value here | B |
| C | And very long value here too |
'@
}
It "CalculateColumnsWidth" {
[TableNode]::new("Name|Value", @("A|B", "C|D")).CalculateColumnsWidth() | Should -BeArray @(4, 5)
[TableNode]::new("Name|Value", @("Very long value here|B", "C|And very long value here too")).CalculateColumnsWidth() | Should -BeArray @(20, 28)
}
It "Serialization" {
$node = [TableNode]::new("Name|Value", @("A|B", "C|D"))
$json = $node.ToJsonObject()
$json.NodeType | Should -Be "TableNode"
$json.Headers | Should -Be "Name|Value"
$json.Rows | Should -BeArray @("A|B", "C|D")
}
It "Deserialization" {
{ [TableNode]::FromJsonObject(@{ NodeType = "TableNode"; Headers = ""; Rows = @("A|1", "B|2") }) } | Should -Throw 'Exception setting "Headers": "The argument is null or empty. *'
{ [TableNode]::FromJsonObject(@{ NodeType = "TableNode"; Headers = "Name|Value"; Rows = @() }) } | Should -Throw 'Exception setting "Rows": "The argument is null, empty, *'
{ [TableNode]::FromJsonObject(@{ NodeType = "TableNode"; Headers = "Name|Value"; Rows = @("A|1", "B|2|T", "C|3") }) } | Should -Throw 'Table has different number of columns in different rows'
{ [TableNode]::FromJsonObject(@{ NodeType = "TableNode"; Headers = "Name|Value"; Rows = @("A|1", "B|2") }) } | Should -Not -Throw
}
It "Serialization + Deserialization" {
$node = [TableNode]::new("Name|Value", @("A|B", "C|D"))
$json = $node.ToJsonObject()
$node2 = [TableNode]::FromJsonObject($json)
$json2 = $node2.ToJsonObject()
$($json | ConvertTo-Json) | Should -Be $($json2 | ConvertTo-Json)
}
It "IsSimilarTo" {
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsSimilarTo([TableNode]::new("Name|Value", @("A|B", "C|D"))) | Should -BeTrue
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsSimilarTo([TableNode]::new("Name|Value", @("A|B", "C|D", "F|W"))) | Should -BeTrue
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsSimilarTo([TableNode]::new("Name|Value", @("A|B", "C|E"))) | Should -BeTrue
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsSimilarTo([TableNode]::new("Name|Key", @("A|B", "C|D"))) | Should -BeTrue
}
It "IsIdenticalTo" {
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsIdenticalTo([TableNode]::new("Name|Value", @("A|B", "C|D"))) | Should -BeTrue
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsIdenticalTo([TableNode]::new("Name|Key", @("A|B", "C|D"))) | Should -BeTrue
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsIdenticalTo([TableNode]::new("Name|Value", @("A|B", "C|D", "F|W"))) | Should -BeFalse
[TableNode]::new("Name|Value", @("A|B", "C|D")).IsIdenticalTo([TableNode]::new("Name|Value", @("A|B", "C|E"))) | Should -BeFalse
}
Context "FromObjectsArray" {
It "Correct table" {
$table = @(
[PSCustomObject]@{Name = "A"; Value = "B"}
[PSCustomObject]@{Name = "C"; Value = "D"}
)
$tableNode = [TableNode]::FromObjectsArray($table)
$tableNode.Headers | Should -Be "Name|Value"
$tableNode.Rows | Should -BeArray @("A|B", "C|D")
}
It "Correct table with spaces" {
$table = @(
[PSCustomObject]@{Name = "A B"; "My Value" = "1 2"}
[PSCustomObject]@{Name = "C D"; "My Value" = "3 4"}
)
$tableNode = [TableNode]::FromObjectsArray($table)
$tableNode.Headers | Should -Be "Name|My Value"
$tableNode.Rows | Should -BeArray @("A B|1 2", "C D|3 4")
}
It "Throw on empty table" {
{ [TableNode]::FromObjectsArray(@()) } | Should -Throw "Failed to create TableNode from empty objects array"
}
It "Throw on table with different columns" {
$table = @(
[PSCustomObject]@{Name = "A"; Value = "B"}
[PSCustomObject]@{Name = "C"; Value2 = "D"}
)
{ [TableNode]::FromObjectsArray($table) } | Should -Throw "Failed to create TableNode from objects array because objects have different properties"
}
It "Throw on empty row" {
$table = @(
[PSCustomObject]@{Name = "A"; Value = "B"},
[PSCustomObject]@{},
[PSCustomObject]@{Name = "C"; Value2 = "D"}
)
{ [TableNode]::FromObjectsArray($table) } | Should -Throw "Failed to create TableNode because some objects are empty"
}
It "Throw on incorrect symbols in table column names" {
$table = @(
[PSCustomObject]@{"Name|War" = "A"; Value = "B"}
[PSCustomObject]@{"Name|War" = "C"; Value = "D"}
)
{ [TableNode]::FromObjectsArray($table) } | Should -Throw "Failed to create TableNode because some cells * contains forbidden symbol*"
}
It "Throw on incorrect symbols in table rows" {
$table = @(
[PSCustomObject]@{Name = "A"; Value = "B|AA"}
[PSCustomObject]@{Name = "C"; Value = "D"}
)
{ [TableNode]::FromObjectsArray($table) } | Should -Throw "Failed to create TableNode because some cells * contains forbidden symbol*"
}
}
}
Context "NoteNode" {
It "ToMarkdown" {
$node = [NoteNode]::new("Hello world`nGood Bye world")
$node.ToMarkdown() | Should -Be @'
```
hello world
Good Bye world
```
'@
}
It "Serialization" {
$node = [NoteNode]::new("MyContent`nMyContent2")
$json = $node.ToJsonObject()
$json.NodeType | Should -Be "NoteNode"
$json.Content | Should -Be "MyContent`nMyContent2"
}
It "Deserialization" {
{ [NoteNode]::FromJsonObject(@{ NodeType = "NoteNode" }) } | Should -Throw '*Exception setting "Content": "The argument is null or empty.*'
{ [NoteNode]::FromJsonObject(@{ NodeType = "NoteNode"; Content = "" }) } | Should -Throw '*Exception setting "Content": "The argument is null or empty.*'
{ [NoteNode]::FromJsonObject(@{ NodeType = "NoteNode"; Content = "MyTool" }) } | Should -Not -Throw
}
It "Serialization + Deserialization" {
$node = [NoteNode]::new("MyContent`nMyContent2")
$json = $node.ToJsonObject()
$node2 = [NoteNode]::FromJsonObject($json)
$json2 = $node2.ToJsonObject()
$($json | ConvertTo-Json) | Should -Be $($json2 | ConvertTo-Json)
}
It "IsSimilarTo" {
[NoteNode]::new("MyContent").IsSimilarTo([NoteNode]::new("MyContent")) | Should -BeTrue
[NoteNode]::new("MyContent").IsSimilarTo([NoteNode]::new("MyContent2")) | Should -BeFalse
}
It "IsIdenticalTo" {
[NoteNode]::new("MyContent").IsIdenticalTo([NoteNode]::new("MyContent")) | Should -BeTrue
[NoteNode]::new("MyContent").IsIdenticalTo([NoteNode]::new("MyContent2")) | Should -BeFalse
}
}
Context "HeaderNode" {
It "ToMarkdown" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersion("MyTool", "2.1.3")
$node.ToMarkdown(1) | Should -Be @'
# MyHeader
- MyTool 2.1.3
'@
}
It "ToMarkdown (level 3)" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersion("MyTool", "2.1.3")
$node.ToMarkdown(3) | Should -Be @'
### MyHeader
- MyTool 2.1.3
'@
}
It "ToMarkdown (multiple levels)" {
$node = [HeaderNode]::new("MyHeader")
$node.AddHeader("MyHeader 2").AddHeader("MyHeader 3").AddHeader("MyHeader 4").AddToolVersion("MyTool", "2.1.3")
$node.ToMarkdown(1) | Should -Be @'
# MyHeader
## MyHeader 2
### MyHeader 3
#### MyHeader 4
- MyTool 2.1.3
'@
}
It "Serialization" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersion("MyTool", "2.1.3")
$json = $node.ToJsonObject()
$json.NodeType | Should -Be "HeaderNode"
$json.Title | Should -Be "MyHeader"
$json.Children | Should -HaveCount 1
}
It "Deserialization" {
{ [HeaderNode]::FromJsonObject(@{ NodeType = "HeaderNode" }) } | Should -Throw '*Exception setting "Title": "The argument is null or empty.*'
{ [HeaderNode]::FromJsonObject(@{ NodeType = "HeaderNode"; Title = "" }) } | Should -Throw '*Exception setting "Title": "The argument is null or empty.*'
{ [HeaderNode]::FromJsonObject(@{ NodeType = "HeaderNode"; Title = "MyHeader" }) } | Should -Not -Throw
}
It "Serialization + Deserialization" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersion("MyTool", "2.1.3")
$json = $node.ToJsonObject()
$node2 = [HeaderNode]::FromJsonObject($json)
$json2 = $node2.ToJsonObject()
$($json | ConvertTo-Json) | Should -Be $($json2 | ConvertTo-Json)
}
It "IsSimilarTo" {
[HeaderNode]::new("MyHeader").IsSimilarTo([HeaderNode]::new("MyHeader")) | Should -BeTrue
[HeaderNode]::new("MyHeader").IsSimilarTo([HeaderNode]::new("MyHeader2")) | Should -BeFalse
}
It "IsIdenticalTo" {
[HeaderNode]::new("MyHeader").IsIdenticalTo([HeaderNode]::new("MyHeader")) | Should -BeTrue
[HeaderNode]::new("MyHeader").IsIdenticalTo([HeaderNode]::new("MyHeader2")) | Should -BeFalse
}
It "FindSimilarChildNode" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersion("MyTool", "2.1.3")
$node.FindSimilarChildNode([ToolVersionNode]::new("MyTool", "1.0.0")) | Should -Not -BeNullOrEmpty
$node.FindSimilarChildNode([ToolVersionNode]::New("MyTool2", "1.0.0")) | Should -BeNullOrEmpty
}
Context "Detect node duplicates" {
It "Similar HeaderNode on the same header" {
$node = [HeaderNode]::new("MyHeader")
$node.AddHeader("MySubHeader1")
$node.AddHeader("MySubHeader2")
{ $node.AddHeader("MySubHeader1") } | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "Similar ToolVersionNode on the same header" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersion("MyTool", "2.1.3")
$node.AddToolVersion("MyTool2", "2.1.3")
{ $node.AddToolVersion("MyTool", "2.1.3") } | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "Similar ToolVersionsListNode on the same header" {
$node = [HeaderNode]::new("MyHeader")
$node.AddToolVersionsListInline("MyTool", @("2.1.3", "3.0.0"), "^\d+")
$node.AddToolVersionsListInline("MyTool2", @("2.1.3", "3.0.0"), "^\d+")
{ $node.AddToolVersionsList("MyTool", @("2.1.3", "3.0.0"), "^\d+") } | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "Similar TableNode on the same header" {
$node = [HeaderNode]::new("MyHeader")
$node.AddTable(@(
[PSCustomObject]@{Name = "Value1"},
[PSCustomObject]@{Name = "Value2"}
))
{
$node.AddTable(@(
[PSCustomObject]@{Name = "Value1"},
[PSCustomObject]@{Name = "Value2"}
))
} | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "Similar NoteNode on the same header" {
$node = [HeaderNode]::new("MyHeader")
$node.AddNote("MyContent")
$node.AddNote("MyContent2")
{ $node.AddNote("MyContent") } | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "AddNode detects duplicates" {
$node = [HeaderNode]::new("MyHeader")
$node.AddNode([ToolVersionNode]::new("MyTool", "2.1.3"))
{ $node.AddNode([ToolVersionNode]::new("MyTool", "2.1.3")) } | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "AddNodes detects duplicates" {
$node = [HeaderNode]::new("MyHeader")
$node.AddNodes(@(
[ToolVersionNode]::new("MyTool", "2.1.3"),
[ToolVersionNode]::new("MyTool2", "2.1.4")
))
{
$node.AddNodes(@(
[ToolVersionNode]::new("MyTool3", "2.1.5"),
[ToolVersionNode]::new("MyTool", "2.1.3")
))
} | Should -Throw "This HeaderNode already contains the similar child node. It is not allowed to add the same node twice.*"
}
It "Doesn't allow adding non-header nodes after header node" {
$node = [HeaderNode]::new("MyHeader")
{ $node.AddToolVersion("MyTool", "2.1.3") } | Should -Not -Throw
{ $node.AddHeader("MySubHeader") } | Should -Not -Throw
{ $node.AddToolVersion("MyTool2", "2.1.4") } | Should -Throw "It is not allowed to add the non-header node after the header node. Consider adding the separate HeaderNode for this node"
{ $node.AddHeader("MySubHeader2") } | Should -Not -Throw
{ $node.AddToolVersionsListInline("MyTool3", @("2.1.4", "2.1.5"), "^.+") } | Should -Throw "It is not allowed to add the non-header node after the header node. Consider adding the separate HeaderNode for this node"
{ $node.AddToolVersionsList("MyTool4", @("2.1.4", "2.1.5"), "^.+") } | Should -Not -Throw
}
}
}
}
@@ -0,0 +1,34 @@
function ShouldBeArray([Array] $ActualValue, [Array]$ExpectedValue, [Switch] $Negate, [String] $Because) {
if ($Negate) {
throw "Negation is not supported for Should-BeArray"
}
if ($ExpectedValue.Count -eq 0) {
throw "Expected array cannot be empty. Use Should-BeNullOrEmpty instead."
}
$ExpectedValue | ForEach-Object {
if ($_.GetType() -notin @([String], [Int32])) {
throw "Only string or int arrays are supported in Should-BeArray"
}
}
$actualValueJson = $ActualValue | ConvertTo-Json
$expectedValueJson = $ExpectedValue | ConvertTo-Json
$succeeded = ($ActualValue.Count -eq $ExpectedValue.Count) -and ($actualValueJson -eq $expectedValueJson)
if (-not $succeeded) {
$failureMessage = "Expected array '$actualValueJson' to be equal to '$expectedValueJson'"
}
return [PSCustomObject]@{
Succeeded = $succeeded
FailureMessage = $failureMessage
}
}
Add-ShouldOperator -Name BeArray `
-InternalName 'ShouldBeArray' `
-Test ${function:ShouldBeArray} `
-SupportsArrayInput
@@ -4,16 +4,46 @@
# - https://github.community/t5/GitHub-Actions/GitHub-Actions-Manual-Trigger-Approvals/td-p/31504
# - https://github.community/t5/GitHub-Actions/Protecting-github-workflows/td-p/30290
parameters:
- name: job_id
type: string
default: 'generate_image'
- name: image_type
type: string
- name: image_readme_name
type: string
- name: agent_pool
type: object
default:
name: 'ci-agent-pool'
- name: variable_group_name
type: string
default: 'Image Generation Variables'
- name: create_release
type: boolean
default: true
- name: repository_ref
type: string
default: 'self'
jobs:
- job:
- job: ${{ parameters.job_id }}
displayName: Image Generation (${{ parameters.image_type }})
timeoutInMinutes: 600
cancelTimeoutInMinutes: 30
pool: ci-agent-pool
pool: ${{ parameters.agent_pool }}
variables:
- group: Image Generation Variables
- group: ${{ parameters.variable_group_name }}
steps:
- checkout: ${{ parameters.repository_ref }}
- task: PowerShell@2
displayName: 'Download custom repository'
condition: and(ne(variables['CUSTOM_REPOSITORY_URL'], ''), ne(variables['CUSTOM_REPOSITORY_BRANCH'], ''))
@@ -22,7 +52,7 @@ jobs:
filePath: ./images.CI/download-repo.ps1
arguments: -RepoUrl $(CUSTOM_REPOSITORY_URL) `
-RepoBranch $(CUSTOM_REPOSITORY_BRANCH)
- task: PowerShell@2
displayName: 'Set image template variables'
inputs:
@@ -31,7 +61,10 @@ jobs:
$ImageType = "${{ parameters.image_type }}"
$TemplateDirectoryName = if ($ImageType.StartsWith("ubuntu")) { "linux" } else { "win" }
$TemplateDirectoryPath = Join-Path "images" $TemplateDirectoryName | Resolve-Path
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.json"
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.pkr.hcl"
if ( -not (Test-Path $TemplatePath) ) {
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.json"
}
Write-Host "##vso[task.setvariable variable=TemplateDirectoryPath;]$TemplateDirectoryPath"
Write-Host "##vso[task.setvariable variable=TemplatePath;]$TemplatePath"
@@ -51,39 +84,68 @@ jobs:
-Location $(AZURE_LOCATION) `
-VirtualNetworkName $(BUILD_AGENT_VNET_NAME) `
-VirtualNetworkRG $(BUILD_AGENT_VNET_RESOURCE_GROUP) `
-VirtualNetworkSubnet $(BUILD_AGENT_SUBNET_NAME) `
-GitHubFeedToken $(GITHUB_TOKEN)
-VirtualNetworkSubnet $(BUILD_AGENT_SUBNET_NAME)
env:
PACKER_LOG: 1
PACKER_LOG_PATH: $(Build.ArtifactStagingDirectory)/packer-log.txt
PACKER_LOG_PATH: "$(Agent.TempDirectory)/packer-log.txt"
- task: PowerShell@2
displayName: 'Output Readme file content'
displayName: 'Copy image artifacts to the separate directory'
inputs:
targetType: 'inline'
script: |
Get-Content -Path (Join-Path "$(TemplateDirectoryPath)" "${{ parameters.image_readme_name }}")
$readmePath = Join-Path "$(TemplateDirectoryPath)" "${{ parameters.image_readme_name }}"
$softwareReportPath = Join-Path "$(TemplateDirectoryPath)" "software-report.json"
Copy-Item -Path $readmePath -Destination "$(Build.ArtifactStagingDirectory)/"
if (Test-Path $softwareReportPath) {
Copy-Item -Path $softwareReportPath -Destination "$(Build.ArtifactStagingDirectory)/"
}
- task: PowerShell@2
displayName: 'Print markdown software report'
inputs:
targetType: 'inline'
script: |
Get-Content -Path "$(Build.ArtifactStagingDirectory)/${{ parameters.image_readme_name }}"
- task: PowerShell@2
displayName: 'Print json software report'
inputs:
targetType: 'inline'
script: |
$softwareReportPath = "$(Build.ArtifactStagingDirectory)/software-report.json"
if (Test-Path $softwareReportPath) {
Get-Content -Path $softwareReportPath
}
- task: PublishBuildArtifacts@1
inputs:
ArtifactName: 'Built_VM_Artifacts'
displayName: Publish Artifacts
- task: PowerShell@2
displayName: 'Print provisioners duration'
inputs:
targetType: 'filePath'
filePath: ./images.CI/measure-provisioners-duration.ps1
arguments: -PackerLogPath "$(Build.ArtifactStagingDirectory)/packer-log.txt" `
arguments: -PackerLogPath "$(Agent.TempDirectory)/packer-log.txt" `
-PrefixToPathTrim "$(TemplateDirectoryPath)" `
-PrintTopNLongest 25
- task: PowerShell@2
displayName: 'Create release for VM deployment'
inputs:
targetType: filePath
filePath: ./images.CI/linux-and-win/create-release.ps1
arguments: -BuildId $(Build.BuildId) `
-Organization $(RELEASE_TARGET_ORGANIZATION) `
-DefinitionId $(RELEASE_TARGET_DEFINITION_ID) `
-Project $(RELEASE_TARGET_PROJECT) `
-ImageName ${{ parameters.image_type }} `
-AccessToken $(RELEASE_TARGET_TOKEN)
- ${{ if eq(parameters.create_release, true) }}:
- task: PowerShell@2
displayName: 'Create release for VM deployment'
inputs:
targetType: filePath
filePath: ./images.CI/linux-and-win/create-release.ps1
arguments: -BuildId $(Build.BuildId) `
-Organization $(RELEASE_TARGET_ORGANIZATION) `
-DefinitionId $(RELEASE_TARGET_DEFINITION_ID) `
-Project $(RELEASE_TARGET_PROJECT) `
-ImageName ${{ parameters.image_type }} `
-AccessToken $(RELEASE_TARGET_TOKEN)
- task: PowerShell@2
displayName: 'Clean up resources'
@@ -92,8 +154,9 @@ jobs:
targetType: filePath
filePath: ./images.CI/linux-and-win/cleanup.ps1
arguments: -ResourcesNamePrefix $(Build.BuildId) `
-Image ${{ parameters.image_type }} `
-StorageAccount $(AZURE_STORAGE_ACCOUNT) `
-SubscriptionId $(AZURE_SUBSCRIPTION) `
-ClientId $(CLIENT_ID) `
-ClientSecret $(CLIENT_SECRET) `
-Image ${{ parameters.image_type }} `
-SubscriptionId $(AZURE_SUBSCRIPTION) `
-TenantId $(AZURE_TENANT)
@@ -1,20 +0,0 @@
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu1604
image_readme_name: Ubuntu1604-README.md
@@ -1,20 +0,0 @@
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu1804
image_readme_name: Ubuntu1804-README.md
@@ -1,11 +1,3 @@
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
@@ -17,4 +9,4 @@ jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu2004
image_readme_name: Ubuntu2004-README.md
image_readme_name: Ubuntu2004-Readme.md
@@ -0,0 +1,12 @@
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu2204
image_readme_name: Ubuntu2204-Readme.md
@@ -1,20 +0,0 @@
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_type: windows2016
image_readme_name: Windows2016-Readme.md
@@ -1,11 +1,3 @@
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
@@ -0,0 +1,12 @@
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_type: windows2022
image_readme_name: Windows2022-Readme.md
+6 -7
View File
@@ -2,16 +2,15 @@ param(
[String] [Parameter (Mandatory=$true)] $TemplatePath,
[String] [Parameter (Mandatory=$true)] $ClientId,
[String] [Parameter (Mandatory=$true)] $ClientSecret,
[String] [Parameter (Mandatory=$true)] $GitHubFeedToken,
[String] [Parameter (Mandatory=$true)] $ResourcesNamePrefix,
[String] [Parameter (Mandatory=$true)] $Location,
[String] [Parameter (Mandatory=$true)] $ResourceGroup,
[String] [Parameter (Mandatory=$true)] $StorageAccount,
[String] [Parameter (Mandatory=$true)] $SubscriptionId,
[String] [Parameter (Mandatory=$true)] $TenantId,
[String] [Parameter (Mandatory=$true)] $VirtualNetworkName,
[String] [Parameter (Mandatory=$true)] $VirtualNetworkRG,
[String] [Parameter (Mandatory=$true)] $VirtualNetworkSubnet
[String] [Parameter (Mandatory=$false)] $VirtualNetworkName,
[String] [Parameter (Mandatory=$false)] $VirtualNetworkRG,
[String] [Parameter (Mandatory=$false)] $VirtualNetworkSubnet
)
if (-not (Test-Path $TemplatePath))
@@ -20,7 +19,7 @@ if (-not (Test-Path $TemplatePath))
exit 1
}
$Image = [io.path]::GetFileNameWithoutExtension($TemplatePath)
$Image = [io.path]::GetFileName($TemplatePath).Split(".")[0]
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()
@@ -44,7 +43,6 @@ packer build -var "capture_name_prefix=$ResourcesNamePrefix" `
-var "client_id=$ClientId" `
-var "client_secret=$ClientSecret" `
-var "install_password=$InstallPassword" `
-var "github_feed_token=$GitHubFeedToken" `
-var "location=$Location" `
-var "resource_group=$ResourceGroup" `
-var "storage_account=$StorageAccount" `
@@ -55,10 +53,11 @@ packer build -var "capture_name_prefix=$ResourcesNamePrefix" `
-var "virtual_network_resource_group_name=$VirtualNetworkRG" `
-var "virtual_network_subnet_name=$VirtualNetworkSubnet" `
-var "run_validation_diskspace=$env:RUN_VALIDATION_FLAG" `
-color=false `
$TemplatePath `
| Where-Object {
#Filter sensitive data from Packer logs
$currentString = $_
$sensitiveString = $SensitiveData | Where-Object { $currentString -match $_ }
$sensitiveString -eq $null
}
}
+6 -1
View File
@@ -1,6 +1,7 @@
param(
[String] [Parameter (Mandatory=$true)] $Image,
[String] [Parameter (Mandatory=$true)] $ResourcesNamePrefix,
[String] [Parameter (Mandatory=$true)] $StorageAccount,
[String] [Parameter (Mandatory=$true)] $ClientId,
[String] [Parameter (Mandatory=$true)] $ClientSecret,
[String] [Parameter (Mandatory=$true)] $SubscriptionId,
@@ -13,9 +14,13 @@ $TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
$groupExist = az group exists --name $TempResourceGroupName --subscription $SubscriptionId
if ($groupExist -eq "true") {
$osDiskName = az deployment group list --resource-group $TempResourceGroupName --query "[].properties.parameters.osDiskName.value" -o tsv
Write-Host "Found a match, deleting temporary files"
az group delete --name $TempResourceGroupName --subscription $SubscriptionId --yes | Out-Null
Write-Host "Temporary group was deleted succesfully" -ForegroundColor Green
Write-Host "Temporary group was deleted successfully"
Write-Host "Deleting OS disk"
az storage remove --account-name $StorageAccount -c "images" -n "$osDiskName.vhd" --only-show-errors | Out-Null
Write-Host "OS disk deleted"
} else {
Write-Host "No temporary groups found"
}
@@ -26,6 +26,7 @@ $headers = @{
Authorization = "Basic ${base64AuthInfo}"
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
$NewRelease = Invoke-RestMethod $URL -Body $Body -Method "POST" -Headers $headers -ContentType "application/json"
Write-Host "Created release: $($NewRelease._links.web.href)"
+235
View File
@@ -0,0 +1,235 @@
function Push-AnkaTemplateToRegistry {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $RegistryUrl,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $TagName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $TemplateName
)
# if registry uuid doesn't match than delete an image in registry
$AnkaCaCrtPath="$HOME/.config/anka/certs/anka-ca-crt.pem"
$images = anka --machine-readable registry --cacert $AnkaCaCrtPath --registry-path $RegistryUrl list | ConvertFrom-Json | ForEach-Object body
$images | Where-Object name -eq $TemplateName | ForEach-Object {
$id = $_.uuid
Show-StringWithFormat "Deleting '$TemplateName[$id]' VM and '$TagName' tag"
$curlCommand='curl -s -X DELETE -k "{0}/registry/vm?id={1}"' -f $RegistryUrl, $id
Invoke-AnkaCommand -Command $curlCommand
}
$command = "anka registry --cacert $AnkaCaCrtPath --registry-path $RegistryUrl push --force --tag $TagName $TemplateName"
Invoke-AnkaCommand -Command $command
}
function Get-AnkaVM {
param(
[string] $VMName
)
$command = "anka --machine-readable list"
if (-not [string]::IsNullOrEmpty($VMName)) {
$command = "anka --machine-readable show $VMName"
}
Invoke-AnkaCommand -Command $command | ConvertFrom-Json | Foreach-Object body
}
function Get-AnkaVMStatus {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName
)
$command = "anka --machine-readable list $VMName"
Invoke-AnkaCommand -Command $command | ConvertFrom-Json | Foreach-Object { $_.body.status }
}
function Get-AnkaVMIPAddress {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName
)
Get-AnkaVM -VMName $VMName | Foreach-Object ip
}
function Invoke-AnkaCommand {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Command
)
$result = bash -c "$Command 2>&1" | Out-String
if ($LASTEXITCODE -ne 0) {
Write-Error "There is an error during command execution:`n$result"
exit 1
}
$result
}
function New-AnkaVMTemplate {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $InstallerPath,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $TemplateName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $TemplateUsername,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $TemplatePassword,
[Parameter(Mandatory)]
[int] $CPUCount,
[Parameter(Mandatory)]
[int] $RamSizeGb,
[Parameter(Mandatory)]
[int] $DiskSizeGb
)
$env:ANKA_DEFAULT_USER = $TemplateUsername
$env:ANKA_DEFAULT_PASSWD = $TemplatePassword
$env:ANKA_CREATE_SUSPEND = 0
$command = "anka create --cpu-count '$CPUCount' --ram-size '${RamSizeGb}G' --disk-size '${DiskSizeGb}G' --app '$InstallerPath' $TemplateName"
Invoke-AnkaCommand -Command $command
}
function Remove-AnkaVM {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName
)
$command = "anka delete $VMName --yes"
$isTemplateExists = Get-AnkaVM | Where-Object name -eq $VMName
if ($isTemplateExists) {
$null = Invoke-AnkaCommand -Command $command
}
}
function Set-AnkaVMVideoController {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $ShortMacOSVersion,
[ValidateSet("fbuf", "pg")]
[string] $Controller = "pg"
)
$command = "anka modify $VMName set display -c $Controller"
# Apple Metal is available starting from Big Sur
if (-not $ShortMacOSVersion.StartsWith("10.")) {
$null = Invoke-AnkaCommand -Command $command
}
}
function Set-AnkaVMDisplayResolution {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $DisplayResolution
)
$command = "anka modify $VMName set display -r $DisplayResolution"
$null = Invoke-AnkaCommand -Command $command
}
function Start-AnkaVM {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName
)
$command = "anka start $VMName"
$vmStatus = Get-AnkaVMStatus -VMName $VMName
if ($vmStatus -eq "stopped") {
$null = Invoke-AnkaCommand -Command $command
}
}
function Stop-AnkaVM {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName
)
$command = "anka stop $VMName"
$vmStatus = Get-AnkaVMStatus -VMName $VMName
if ($vmStatus -eq "running") {
$null = Invoke-AnkaCommand -Command $command
}
}
function Wait-AnkaVMIPAddress {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName,
[int] $RetryCount = 20,
[int] $Seconds = 60
)
$condition = {
$vmStatus = Get-AnkaVMStatus -VMName $VMName
if ($vmStatus -eq "failed") {
Write-Host "`t [-] $VMName is in failed status"
exit 1
}
Get-AnkaVMIPAddress -VMName $VMName
}
$null = Invoke-WithRetry -BreakCondition $condition -RetryCount $RetryCount -Seconds $Seconds
}
function Wait-AnkaVMSSHService {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName,
[int] $RetryCount = 20,
[int] $Seconds = 60
)
Start-Sleep -Seconds $Seconds
Write-Host "`t[*] Waiting for '$VMName' VM to get an IP address"
Wait-AnkaVMIPAddress -VMName $VMName -RetryCount $RetryCount -Seconds $Seconds
$ipAddress = Get-AnkaVMIPAddress -VMName $VMName
Write-Host "`t[*] The '$ipAddress' IP address for '$VMName' VM"
Write-Host "`t[*] Checking if SSH on a port is open"
$isSSHPortOpen = Test-SSHPort -IPAddress $ipAddress
if (-not $isSSHPortOpen) {
Write-Host "`t[x] SSH port is closed"
exit 1
}
}
@@ -0,0 +1,207 @@
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[version] $MacOSVersion,
[ValidateNotNullOrEmpty()]
[string] $TemplateUsername,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $TemplatePassword,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $RegistryUrl,
[ValidateNotNullOrEmpty()]
[string] $TemplateName,
[bool] $DownloadLatestVersion = $true,
[bool] $BetaSearch = $false,
[bool] $InstallSoftwareUpdate = $true,
[bool] $EnableAutoLogon = $true,
[int] $CPUCount = 6,
[int] $RamSizeGb = 7,
[int] $DiskSizeGb = 300,
[string] $DisplayResolution = "1920x1080",
[string] $TagName = [DateTimeOffset]::Now.ToUnixTimeSeconds()
)
$ErrorActionPreference = "Stop"
$WarningPreference = "SilentlyContinue"
# Import helper modules
Import-Module "$PSScriptRoot/Anka.Helpers.psm1"
Import-Module "$PSScriptRoot/Service.Helpers.psm1"
# Helper functions
function Invoke-EnableAutoLogon {
if (-not $EnableAutoLogon) {
Write-Host "`t[*] Skip configuring AutoLogon"
return
}
$ipAddress = Get-AnkaVMIPAddress -VMName $TemplateName
Write-Host "`t[*] Enable AutoLogon"
Enable-AutoLogon -HostName $ipAddress -UserName $TemplateUsername -Password $TemplatePassword
Write-Host "`t[*] Reboot '$TemplateName' VM to enable AutoLogon"
Restart-VMSSH -HostName $ipAddress | Show-StringWithFormat
Wait-AnkaVMSSHService -VMName $TemplateName -Seconds 30
Write-Host "`t[*] Checking if AutoLogon is enabled"
Test-AutoLogon -VMName $TemplateName -UserName $TemplateUsername
}
function Invoke-SoftwareUpdate {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Password
)
if (-not $InstallSoftwareUpdate) {
Write-Host "`t[*] Skip installing software updates"
return
}
$ipAddress = Get-AnkaVMIPAddress -VMName $TemplateName
# Unenroll Seed
Write-Host "`t[*] Reseting the seed before requesting stable versions"
Remove-CurrentBetaSeed -HostName $ipAddress | Show-StringWithFormat
# Install Software Updates
# Security updates may not be able to install(hang, freeze) when AutoLogon is turned off
Write-Host "`t[*] Finding available software"
$newUpdates = Get-SoftwareUpdate -HostName $ipAddress
if (-not $newUpdates) {
Write-Host "`t[*] No Updates Available"
return
}
Write-Host "`t[*] Fetching Software Updates ready to install on '$TemplateName' VM:"
Show-StringWithFormat $newUpdates
$listOfNewUpdates = $($($newUpdates.Split("*")).Split("Title") | Where-Object {$_ -match "Label:"}).Replace("Label: ", '')
Write-Host "`t[*] Installing Software Updates on '$TemplateName' VM:"
Install-SoftwareUpdate -HostName $ipAddress -listOfUpdates $listOfNewUpdates -Password $Password | Show-StringWithFormat
# Check if Action: restart
# Make an array of updates
$listOfNewUpdates = $newUpdates.split('*').Trim('')
foreach ($newupdate in $listOfNewUpdates) {
# Will be True if the value is not Venture, not empty, and contains "Action: restart" words
if ($newupdate.Contains("Action: restart") -and !$newupdate.Contains("macOS Ventura") -and (-not [String]::IsNullOrEmpty($newupdate))) {
Write-Host "`t[*] Sleep 60 seconds before the software updates have been installed"
Start-Sleep -Seconds 60
Write-Host "`t[*] Waiting for loginwindow process"
Wait-LoginWindow -HostName $ipAddress | Show-StringWithFormat
# Re-enable AutoLogon after installing a new security software update
Invoke-EnableAutoLogon
# Check software updates have been installed
$updates = Get-SoftwareUpdate -HostName $ipAddress
if ($updates.Contains("Action: restart")) {
Write-Host "`t[x] Software updates failed to install: "
Show-StringWithFormat $updates
exit 1
}
}
}
Write-Host "`t[*] Show the install history:"
$hUpdates = Get-SoftwareUpdateHistory -HostName $ipAddress
Show-StringWithFormat $hUpdates
}
function Invoke-UpdateSettings {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Password
)
$isConfRequired = $InstallSoftwareUpdate -or $EnableAutoLogon
if (-not $isConfRequired) {
Write-Host "`t[*] Skip additional configuration"
return
}
Write-Host "`t[*] Starting '$TemplateName' VM"
Start-AnkaVM -VMName $TemplateName
Write-Host "`t[*] Waiting for SSH service on '$TemplateName' VM"
Wait-AnkaVMSSHService -VMName $TemplateName -Seconds 30
# Configure AutoLogon
Invoke-EnableAutoLogon
# Install software updates
Invoke-SoftwareUpdate -Password $Password
Write-Host "`t[*] Stopping '$TemplateName' VM"
Stop-AnkaVM -VMName $TemplateName
}
function Test-VMStopped {
$vmStatus = Get-AnkaVMStatus -VMName $TemplateName
if ($vmStatus -ne "stopped") {
Write-Host "`t[x] VM '$TemplateName' state is not stopped. The current state is '$vmStatus'"
exit 1
}
}
# Password is passed as env-var "SSHPASS"
$env:SSHUSER = $TemplateUsername
$env:SSHPASS = $TemplatePassword
Write-Host "`n[#1] Download macOS application installer:"
$shortMacOSVersion = Get-ShortMacOSVersion -MacOSVersion $MacOSVersion
if ([string]::IsNullOrEmpty($TemplateName)) {
$osArch = $(arch)
if ($osArch -eq "arm64") {
$macOSInstaller = Get-MacOSIPSWInstaller -MacOSVersion $MacOSVersion -DownloadLatestVersion $DownloadLatestVersion -BetaSearch $BetaSearch
$TemplateName = "clean_macos_${shortMacOSVersion}_${osArch}_${DiskSizeGb}gb"
} else {
$macOSInstaller = Get-MacOSInstaller -MacOSVersion $MacOSVersion -DownloadLatestVersion $DownloadLatestVersion -BetaSearch $BetaSearch
$TemplateName = "clean_macos_${shortMacOSVersion}_${DiskSizeGb}gb"
}
}
Write-Host "`n[#2] Create a VM template:"
Write-Host "`t[*] Deleting existed template with name '$TemplateName' before creating a new one"
Remove-AnkaVM -VMName $TemplateName
Write-Host "`t[*] Creating Anka VM template with name '$TemplateName' and '$TemplateUsername' user"
Write-Host "`t[*] CPU Count: $CPUCount, RamSize: ${RamSizeGb}G, DiskSizeGb: ${DiskSizeGb}G, InstallerPath: $macOSInstaller, TemplateName: $TemplateName"
New-AnkaVMTemplate -InstallerPath $macOSInstaller `
-TemplateName $TemplateName `
-TemplateUsername $TemplateUsername `
-TemplatePassword $TemplatePassword `
-CPUCount $CPUCount `
-RamSizeGb $RamSizeGb `
-DiskSizeGb $DiskSizeGb | Show-StringWithFormat
Write-Host "`n[#3] Configure AutoLogon and/or install software updates:"
Invoke-UpdateSettings -Password $TemplatePassword
Write-Host "`n[#4] Finalization '$TemplateName' configuration and push to the registry:"
Write-Host "`t[*] The '$TemplateName' VM status is stopped"
Test-VMStopped
# Configure graphics settings
Write-Host "`t[*] Enabling Graphics Acceleration with Apple Metal for '$TemplateName' VM"
Set-AnkaVMVideoController -VMName $TemplateName -ShortMacOSVersion $ShortMacOSVersion
Write-Host "`t[*] Setting screen resolution to $DisplayResolution for $TemplateName"
Set-AnkaVMDisplayResolution -VMName $TemplateName -DisplayResolution $DisplayResolution
# Push a VM template (and tag) to the Cloud
Write-Host "`t[*] Pushing '$TemplateName' image with '$TagName' tag to the '$RegistryUrl' registry..."
Push-AnkaTemplateToRegistry -RegistryUrl $registryUrl -TagName $TagName -TemplateName $TemplateName
+455
View File
@@ -0,0 +1,455 @@
function Enable-AutoLogon {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $UserName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Password
)
$url = "https://raw.githubusercontent.com/actions/runner-images/main/images/macos/provision/bootstrap-provisioner/setAutoLogin.sh"
$script = Invoke-RestMethod -Uri $url
$base64 = [Convert]::ToBase64String($script.ToCharArray())
$command = "echo $base64 | base64 --decode > ./setAutoLogin.sh;sudo bash ./setAutoLogin.sh '${UserName}' '${Password}';rm ./setAutoLogin.sh"
Invoke-SSHPassCommand -HostName $HostName -Command $command
}
function Invoke-SoftwareUpdateArm64 {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Password
)
$url = "https://raw.githubusercontent.com/actions/runner-images/main/images/macos/provision/configuration/auto-software-update-arm64.exp"
$script = Invoke-RestMethod -Uri $url
$base64 = [Convert]::ToBase64String($script.ToCharArray())
$command = "echo $base64 | base64 --decode > ./auto-software-update-arm64.exp;chmod +x ./auto-software-update-arm64.exp; ./auto-software-update-arm64.exp ${Password};rm ./auto-software-update-arm64.exp"
Invoke-SSHPassCommand -HostName $HostName -Command $command
}
function Get-AvailableVersions {
param (
[bool] $IsBeta = $false
)
if ($IsBeta) {
$searchPostfix = " beta"
}
$command = { /usr/sbin/softwareupdate --list-full-installers | grep "macOS" }
$condition = { $LASTEXITCODE -eq 0 }
$softwareUpdates = Invoke-WithRetry -Command $command -BreakCondition $condition | Where-Object { $_.Contains("Title: macOS") -and $_ -match $searchPostfix }
$allVersions = $softwareUpdates -replace "(\* )?(Title|Version|Size):" | ConvertFrom-Csv -Header OSName, OSVersion | Select-Object OSName, OSVersion -Unique
$allVersions
}
function Get-AvailableIPSWVersions {
param (
[bool] $IsBeta = $false,
[bool] $IsLatest = $true,
[string] $MacOSCodeNameOrVersion
)
if ($IsBeta) {
$command = { mist list installer "$MacOSCodeNameOrVersion" --include-betas --latest --export "/Applications/export.json"}
} elseif ($IsLatest) {
$command = { mist list installer "$MacOSCodeNameOrVersion" --latest --export "/Applications/export.json" }
} else {
$command = { mist list installer "$MacOSCodeNameOrVersion" --export "/Applications/export.json" }
}
$condition = { $LASTEXITCODE -eq 0 }
Invoke-WithRetry -Command $command -BreakCondition $condition | Out-Null
$softwareList = get-content -Path "/Applications/export.json"
$turgetVersion = ($softwareList | ConvertFrom-Json).version
if ($null -eq $turgetVersion) {
Write-Host "Requested macOS '$MacOSCodeNameOrVersion' version not found in the list of available installers."
$command = { mist list installer "$($MacOSCodeNameOrVersion.split('.')[0])" }
Invoke-WithRetry -Command $command -BreakCondition $condition
exit 1
}
return $turgetVersion
}
function Get-MacOSIPSWInstaller {
param (
[Parameter(Mandatory)]
[version] $MacOSVersion,
[bool] $DownloadLatestVersion = $false,
[bool] $BetaSearch = $false
)
if ($MacOSVersion -eq [version] "12.0") {
$MacOSName = "macOS Monterey"
} elseif ($MacOSVersion -eq [version] "13.0") {
$MacOSName = "macOS Ventura"
} else {
$MacOSName = $MacOSVersion.ToString()
}
Write-Host "`t[*] Finding available full installers"
if ($DownloadLatestVersion -eq $true) {
$targetVersion = Get-AvailableIPSWVersions -IsLatest $true -MacOSCodeNameOrVersion $MacOSName
Write-host "`t[*] The 'DownloadLatestVersion' flag is set to true. Latest macOS version is '$MacOSName' - '$targetVersion' now"
} elseif ($BetaSearch -eq $true) {
$targetVersion = Get-AvailableIPSWVersions -IsBeta $true -MacOSCodeNameOrVersion $MacOSName
Write-host "`t[*] The 'BetaSearch' flag is set to true. Latestbeta macOS version is '$MacOSName' - '$targetVersion' now"
} else {
$targetVersion = Get-AvailableIPSWVersions -MacOSCodeNameOrVersion $MacOSName
Write-host "`t[*] The exact version was specified - '$MacOSName' "
}
$installerPathPattern = "/Applications/Install ${macOSName}*.ipsw"
if (Test-Path $installerPathPattern) {
$previousInstallerPath = Get-Item -Path $installerPathPattern
Write-Host "`t[*] Removing '$previousInstallerPath' installation app before downloading the new one"
sudo rm -rf "$previousInstallerPath"
}
# Download macOS installer
$installerDir = "/Applications/"
$installerName = "Install ${macOSName}.ipsw"
Write-Host "`t[*] Requested macOS '$targetVersion' version installer found, fetching it from mist database"
Invoke-WithRetry { mist download firmware "$targetVersion" --output-directory $installerDir --firmware-name "$installerName" } {$LASTEXITCODE -eq 0} | Out-Null
if (Test-Path "$installerDir$installerName") {
$result = "$installerDir$installerName"
} else {
Write-host "`t[*] Requested macOS '$targetVersion' version installer failed to download"
exit 1
}
return $result
}
function Get-MacOSInstaller {
param (
[Parameter(Mandatory)]
[version] $MacOSVersion,
[bool] $DownloadLatestVersion = $false,
[bool] $BetaSearch = $false
)
# Enroll machine to DeveloperSeed if we need beta and unenroll otherwise
$seedutil = "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil"
if ($BetaSearch) {
Write-Host "`t[*] Beta Version requested. Enrolling machine to DeveloperSeed"
sudo $seedutil enroll DeveloperSeed | Out-Null
} else {
Write-Host "`t[*] Reseting the seed before requesting stable versions"
sudo $seedutil unenroll | Out-Null
}
# Validate there is no softwareupdate at the moment
Test-SoftwareUpdate
# Validate availability OSVersion
Write-Host "`t[*] Finding available full installers"
$availableVersions = Get-AvailableVersions -IsBeta $BetaSearch
if ($DownloadLatestVersion) {
$shortMacOSVersion = Get-ShortMacOSVersion -MacOSVersion $MacOSVersion
$filterSearch = "${shortMacOSVersion}."
$filteredVersions = $availableVersions.Where{ $_.OSVersion.StartsWith($filterSearch) }
if (-not $filteredVersions) {
Write-Host "`t[x] Failed to find any macOS versions using '$filterSearch' search condition"
Show-StringWithFormat $availableVersions
exit 1
}
Show-StringWithFormat $filteredVersions
$osVersions = $filteredVersions.OSVersion | Sort-Object {[version]$_}
$MacOSVersion = $osVersions | Select-Object -Last 1
Write-Host "`t[*] The 'DownloadLatestVersion' flag is set. Latest macOS version is '$MacOSVersion' now"
}
$macOSName = $availableVersions.Where{ $MacOSVersion -eq $_.OSVersion }.OSName.Split(" ")[1]
if (-not $macOSName) {
Write-Host "`t[x] Requested macOS '$MacOSVersion' version not found in the list of available installers. Available versions are:`n$($availableVersions.OSVersion)"
Write-Host "`t[x] Make sure to pass '-BetaSearch `$true' if you need a beta version installer"
exit 1
}
$installerPathPattern = "/Applications/Install macOS ${macOSName}*.app"
if (Test-Path $installerPathPattern) {
$previousInstallerPath = Get-Item -Path $installerPathPattern
Write-Host "`t[*] Removing '$previousInstallerPath' installation app before downloading the new one"
sudo rm -rf "$previousInstallerPath"
}
# Clear LastRecommendedMajorOSBundleIdentifier to prevent error during fetching updates
# Install failed with error: Update not found
Update-SoftwareBundle
# Download macOS installer
Write-Host "`t[*] Requested macOS '$MacOSVersion' version installer found, fetching it from Apple Software Update"
$result = Invoke-WithRetry { /usr/sbin/softwareupdate --fetch-full-installer --full-installer-version $MacOSVersion } {$LASTEXITCODE -eq 0} | Out-String
if (-not $result.Contains("Install finished successfully")) {
Write-Host "`t[x] Failed to fetch $MacOSVersion macOS `n$result"
exit 1
}
$installerPath = (Get-Item -Path $installerPathPattern).FullName
if (-not $installerPath) {
Write-Host "`t[x] Path not found using '$installerPathPattern'"
exit 1
}
Write-Host "`t[*] Installer successfully downloaded to '$installerPath'"
$installerPath
}
function Get-ShortMacOSVersion {
param (
[Parameter(Mandatory)]
[version] $MacOSVersion
)
# Take Major.Minor version for macOS 10 (10.14 or 10.15) and Major for all further versions
$MacOSVersion.Major -eq 10 ? $MacOSVersion.ToString(2) : $MacOSVersion.ToString(1)
}
function Get-SoftwareUpdate {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName
)
$command = "/usr/sbin/softwareupdate --list"
$result = Invoke-SSHPassCommand -HostName $HostName -Command $command
$result | Where-Object { $_ -match "(Label|Title):" } | Out-String
}
function Get-SoftwareUpdateHistory {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName
)
$command = "/usr/sbin/softwareupdate --history"
Invoke-SSHPassCommand -HostName $HostName -Command $command | Out-String
}
function Install-SoftwareUpdate {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName,
[array] $listOfUpdates,
[string] $Password
)
$osVersion = [Environment]::OSVersion
# If an update is happening on macOS 12 we will use the prepared list of updates, otherwise, we will install all updates.
if ($osVersion.Version.Major -eq "12") {
foreach ($update in $listOfUpdates){
# Filtering updates that contain "Ventura" word
if ($update -notmatch "Ventura") {
$command = "sudo /usr/sbin/softwareupdate --restart --verbose --install '$($update.trim())'"
Invoke-SSHPassCommand -HostName $HostName -Command $command
}
}
} else {
$osArch = $(arch)
if ($osArch -eq "arm64") {
Invoke-SoftwareUpdateArm64 -HostName $HostName -Password $Password
} else {
$command = "sudo /usr/sbin/softwareupdate --all --install --restart --verbose"
Invoke-SSHPassCommand -HostName $HostName -Command $command
}
}
}
function Invoke-SSHPassCommand {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Command,
[int] $ConnectTimeout = 10,
[int] $ConnectionAttempts = 10,
[int] $ServerAliveInterval = 30
)
$sshArg = @(
"sshpass"
"-e"
"ssh"
"-o UserKnownHostsFile=/dev/null"
"-o StrictHostKeyChecking=no"
"-o ConnectTimeout=$ConnectTimeout"
"-o ConnectionAttempts=$ConnectionAttempts"
"-o LogLevel=ERROR"
"-o ServerAliveInterval=$ServerAliveInterval"
"${env:SSHUSER}@${HostName}"
)
$sshPassOptions = $sshArg -join " "
bash -c "$sshPassOptions \""$Command\"" 2>&1"
}
function Invoke-WithRetry {
param(
[scriptblock] $Command,
[scriptblock] $BreakCondition,
[int] $RetryCount = 20,
[int] $Seconds = 60
)
while ($RetryCount -gt 0) {
if ($Command) {
$result = & $Command
}
if (& $BreakCondition) {
return $result
}
$RetryCount--
if ($RetryCount -eq 0) {
Write-Error "No more attempts left: $BreakCondition"
}
Write-Host "`t [/] Waiting $Seconds seconds before retrying. Retries left: $RetryCount"
Start-Sleep -Seconds $Seconds
}
$result
}
function Restart-VMSSH {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName
)
$command = "sudo reboot"
Invoke-SSHPassCommand -HostName $HostName -Command $command
}
function Show-StringWithFormat {
param(
[Parameter(ValuefromPipeline)]
[object] $string
)
process {
($string | Out-String).Trim().split("`n") | ForEach-Object { Write-Host "`t $_" }
}
}
function Remove-CurrentBetaSeed {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName
)
$command = "sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil unenroll"
Invoke-SSHPassCommand -HostName $HostName -Command $command | Out-String
}
function Test-AutoLogon {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $UserName
)
Invoke-WithRetry -BreakCondition {
# pwsh crashes if it invokes directly
# https://github.com/dotnet/runtime/issues/59059
$ankaUser = "" | bash -c "anka run $VMName /usr/bin/id -nu"
$UserName -eq $ankaUser
}
}
function Test-SoftwareUpdate {
param (
[string] $UpdateProcessName = "softwareupdate"
)
$command = {
$updateProcess = (Get-Process -Name $UpdateProcessName -ErrorAction SilentlyContinue).id
if ($updateProcess) {
# Workaround to get commandline param as it doesn't work for macOS atm https://github.com/PowerShell/PowerShell/issues/13943
$processName = /bin/ps -o command= $updateProcess
Write-Host "`t[*] Another software update process with '$updateProcess' id is in place with the following arguments '$processName'"
}
}
$condition = {
$null -eq (Get-Process -Name $UpdateProcessName -ErrorAction SilentlyContinue)
}
Invoke-WithRetry -Command $command -BreakCondition $condition
}
function Test-SSHPort {
param(
[Parameter(Mandatory)]
[ipaddress] $IPAddress,
[int] $Port = 22,
[int] $Timeout = 2000
)
Invoke-WithRetry -Command {$true} -BreakCondition {
try {
$client = [System.Net.Sockets.TcpClient]::new()
$client.ConnectAsync($IPAddress, $Port).Wait($Timeout)
}
catch {
$false
}
finally {
$client.Close()
}
}
}
function Wait-LoginWindow {
param (
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName,
[int] $RetryCount = 60,
[int] $Seconds = 60
)
$condition = {
$psCommand = "/bin/ps auxww"
$lw = "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow"
$ctk = "/System/Library/Frameworks/CryptoTokenKit.framework/ctkahp.bundle/Contents/MacOS/ctkahp"
$proc = Invoke-SSHPassCommand -HostName $HostName -Command $psCommand | Out-String
$proc.Contains($lw) -and $proc.Contains($ctk)
}
Invoke-WithRetry -RetryCount $RetryCount -Seconds $Seconds -BreakCondition $condition
}
function Update-SoftwareBundle {
$productVersion = sw_vers -productVersion
if ( $productVersion.StartsWith('11.') ) {
sudo rm -rf /Library/Preferences/com.apple.commerce.plist
sudo /usr/bin/defaults delete /Library/Preferences/com.apple.SoftwareUpdate.plist LastRecommendedMajorOSBundleIdentifier | Out-Null
}
}
@@ -55,7 +55,8 @@ jobs:
arguments: -VMName "$(VirtualMachineName)" `
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-v2)" `
-VIPassword "$(vcenter-password-v2)"
-VIPassword '$(vcenter-password-v2)' `
-Cluster "$(esxi-cluster-v2)"
- pwsh: |
$SensitiveData = @(
@@ -66,16 +67,16 @@ jobs:
packer build -on-error=abort `
-var="vcenter_server=$(vcenter-server-v2)" `
-var="vcenter_username=$(vcenter-username-v2)" `
-var="vcenter_password=$(vcenter-password-v2)" `
-var='vcenter_password=$(vcenter-password-v2)' `
-var="vcenter_datacenter=$(vcenter-datacenter-v2)" `
-var="cluster_or_esxi_host=$(esxi-cluster-v2)" `
-var="esxi_datastore=$(buildDatastore)" `
-var="output_folder=$(output-folder)" `
-var="vm_username=$(vm-username)" `
-var="vm_password=$(vm-password)" `
-var="github_api_pat=$(github_api_pat)" `
-var="build_id=$(VirtualMachineName)" `
-var="baseimage_name=${{ parameters.base_image_name }}" `
-var="github_feed_token=$(github-feed-token)" `
-var="xcode_install_user=$(xcode-installation-user)" `
-var="xcode_install_password=$(xcode-installation-password)" `
-color=false `
@@ -106,7 +107,11 @@ jobs:
- bash: |
cat "$(Build.ArtifactStagingDirectory)/systeminfo.md"
displayName: Print software report
displayName: Print markdown software report
- bash: |
cat "$(Build.ArtifactStagingDirectory)/systeminfo.json"
displayName: Print json software report
- task: PublishBuildArtifacts@1
inputs:
@@ -121,15 +126,6 @@ jobs:
arguments: -PackerLogPath "$(Agent.TempDirectory)/packer-log.txt" `
-PrintTopNLongest 25
- task: PublishTestResults@2
inputs:
testResultsFiles: '*.xml'
testResultsFormat: NUnit
searchFolder: '$(Common.TestResultsDirectory)'
failTaskOnFailedTests: true
displayName: Publish test results
condition: always()
- task: PowerShell@2
displayName: 'Move vm to cold storage and clear datastore tag'
condition: always()
@@ -140,7 +136,10 @@ jobs:
-TargetDataStore "${{ parameters.target_datastore }}" `
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-v2)" `
-VIPassword "$(vcenter-password-v2)"
-VIPassword '$(vcenter-password-v2)' `
-CpuCount "$(cpu-count)" `
-CoresPerSocketCount "$(cores-per-socket-count)" `
-Memory "$(memory)"
- task: PowerShell@2
displayName: 'Destroy VM (if build canceled only)'
@@ -151,4 +150,4 @@ jobs:
arguments: -VMName "$(VirtualMachineName)" `
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-v2)" `
-VIPassword "$(vcenter-password-v2)"
-VIPassword '$(vcenter-password-v2)'
@@ -1,23 +0,0 @@
name: macOS-10.13_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS High Sierra'
base_image_name: 'clean-macOS-10.13.6-380Gb-SIPoff_runner'
template_path: 'templates/macOS-10.13.json'
target_datastore: 'ds-image'
@@ -1,23 +0,0 @@
name: macOS-10.15_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Catalina'
base_image_name: 'clean-macOS-10.15-380Gb-runner'
template_path: 'templates/macOS-10.15.json'
target_datastore: 'ds-image'
@@ -1,23 +1,23 @@
name: macOS-11.0_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Big Sur'
base_image_name: 'clean-macOS-11.0-380Gb-runner'
template_path: 'templates/macOS-11.0.json'
target_datastore: 'ds-image'
name: macOS-11_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: '45 0 * * *'
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Big Sur'
base_image_name: 'clean-macOS-11-380Gb-runner'
template_path: 'templates/macOS-11.json'
target_datastore: 'ds-image'
@@ -1,23 +1,23 @@
name: macOS-10.14_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Mojave'
base_image_name: 'clean-macOS-10.14-380Gb_runner'
template_path: 'templates/macOS-10.14.json'
target_datastore: 'ds-image'
name: macOS-12_$(date:yyyyMMdd)$(rev:.r)_unstable
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_label: 'macOS Monterey'
base_image_name: 'clean-macOS-12-380Gb-runner'
template_path: 'templates/macOS-12.json'
target_datastore: 'ds-image'
+17 -8
View File
@@ -39,7 +39,15 @@ param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$VIPassword
[string]$VIPassword,
[string]$JobStatus,
[int32]$CpuCount,
[int32]$CoresPerSocketCount,
[int64]$Memory
)
# Import helpers module
@@ -56,22 +64,23 @@ try {
}
$vm = Get-VM $VMName
if ($env:AGENT_JOBSTATUS -eq 'Failed') {
if (($env:AGENT_JOBSTATUS -and $env:AGENT_JOBSTATUS -eq 'Failed') -or ($JobStatus -and $JobStatus -eq 'failure')) {
try {
if($vm.PowerState -ne "PoweredOff") {
Stop-VM -VM $vm -Confirm:$false -ErrorAction Stop
if ($vm.PowerState -ne "PoweredOff") {
Stop-VM -VM $vm -Confirm:$false -ErrorAction Stop | Out-Null
}
Set-VM -VM $vm -Name "${VMName}_failed" -Confirm:$false -ErrorAction Stop
Set-VM -VM $vm -Name "${VMName}_failed" -Confirm:$false -ErrorAction Stop | Out-Null
Write-Host "VM has been successfully powered off and renamed to [${VMName}_failed]"
} catch {
Write-Host "##vso[task.LogIssue type=error;]Failed to power off and rename VM '$VMName'"
exit 1
}
}
try {
Move-VM -Vm $vm -Datastore $TargetDataStore -ErrorAction Stop
Move-VM -Vm $vm -Datastore $TargetDataStore -ErrorAction Stop | Out-Null
Write-Host "VM has been moved successfully to target datastore '$TargetDataStore'"
} catch {
Write-Host "##vso[task.LogIssue type=error;]Failed to move VM '$VMName' to target datastore '$TargetDataStore'"
}
exit 1
}
+22 -10
View File
@@ -36,6 +36,10 @@ param(
[ValidateNotNullOrEmpty()]
[string]$VIPassword,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$Cluster,
[string]$TagCategory = "Busy"
)
@@ -47,6 +51,7 @@ function Select-DataStore {
[string]$VMName,
[string]$TagCategory,
[string]$TemplateDatastore = "ds-local-Datastore-*",
[string]$Cluster,
[int]$ThresholdInGb = 400,
[int]$VMCount = 2,
[int]$Retries = 5
@@ -54,14 +59,20 @@ function Select-DataStore {
# 1. Name starts with ds-local-Datastore
# 2. FreespaceGB > 400 Gb
# 3. VM count on a datastore < 2
# 3. Choose a datastore with the minimal VM count < 2
Write-Host "Start Datastore selection process..."
$allDatastores = Get-Datastore -Name $templateDatastore | Where-Object { $_.State -eq "Available" }
$buildDatastore = $allDatastores | Where-Object { $_.FreeSpaceGB -ge $thresholdInGb } | Where-Object {
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch "^\.").Count
$vmOnDatastore -lt $vmCount
} | Get-Random | Select-Object -ExpandProperty Name
$clusterHosts = Get-Cluster -Name $Cluster | Get-VMHost
$availableClusterDatastores = $clusterHosts | Get-Datastore -Name $TemplateDatastore | Where-Object -Property State -eq "Available"
$availableDatastores = $availableClusterDatastores `
| Where-Object { $_.FreeSpaceGB -ge $thresholdInGb } `
| Where-Object {
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch '(^\.|vmkdump)').Count
$vmOnDatastore -lt $vmCount } `
| Group-Object -Property { $vmOnDatastore }
$datastore = $availableDatastores | Select-Object @{n="VmCount";e={$_.Name}},@{n="DatastoreName";e={$_.Group | Get-Random}} -First 1
$buildDatastore = $datastore.DatastoreName
$tag = Get-Tag -Category $TagCategory -Name $VMName -ErrorAction Ignore
if (-not $tag)
@@ -73,8 +84,9 @@ function Select-DataStore {
# Wait for 60 seconds to check if any other tags are assigned to the same datastore
Start-Sleep -Seconds 60
# Take only first 2 tags, all the others will go to the next round
$tagAssignments = (Get-TagAssignment -Entity $buildDatastore).Tag.Name | Select-Object -First 2
# If there are no datastores with 0 VMs, take a datastore with 1 VM (index 1 if datastore has 0 VMs and 2 if 1 VM)
$index = 1 + [int]$datastore.VmCount
$tagAssignments = (Get-TagAssignment -Entity $buildDatastore).Tag.Name | Select-Object -First $index
$isAllow = $tagAssignments -contains $VMName
if ($isAllow)
@@ -95,11 +107,11 @@ function Select-DataStore {
}
Write-Host "Datastore select failed, $retries left"
Select-DataStore -VMName $VMName -TagCategory $TagCategory -Retries $retries
Select-DataStore -VMName $VMName -Cluster $Cluster -TagCategory $TagCategory -Retries $retries
}
# Connection to a vCenter Server system
Connect-VCServer -VIServer $VIServer -VIUserName $VIUserName -VIPassword $VIPassword
# Get a target datastore for current deployment
Select-DataStore -VMName $VMName -TagCategory $TagCategory
Select-DataStore -VMName $VMName -Cluster $Cluster -TagCategory $TagCategory
+73
View File
@@ -0,0 +1,73 @@
<#
.SYNOPSIS
This script sets resources for VM
.PARAMETER VMName
VM name to resize (Example "macOS-10.15_20201012.4")
.PARAMETER VIServer
vCenter address (Example "10.0.1.16")
.PARAMETER VIUserName
vCenter username (Example "Administrator")
.PARAMETER VIPassword
vCenter password (Example "12345678")
.PARAMETER CpuCount
Target number of CPUs (Example "3")
.PARAMETER CoresPerSocketCount
Target number of cores per socket (Example "3")
.PARAMETER Memory
Target amount of memory in MB (Example "14336")
#>
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$VMName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$VIServer,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$VIUserName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$VIPassword,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[int32]$CpuCount,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[int32]$CoresPerSocketCount,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[int64]$Memory
)
# Import helpers module
Import-Module $PSScriptRoot\helpers.psm1 -DisableNameChecking
# Connection to a vCenter Server system
Connect-VCServer -VIServer $VIServer -VIUserName $VIUserName -VIPassword $VIPassword
$vm = Get-VM $VMName
try {
Write-Host "Change CPU count to $CpuCount, cores count to $CoresPerSocketCount, amount of RAM to $Memory"
$vm | Set-VM -NumCPU $CpuCount -CoresPerSocket $CoresPerSocketCount -MemoryMB $Memory -Confirm:$false -ErrorAction Stop | Out-Null
} catch {
Write-Host "##vso[task.LogIssue type=error;]Failed to change specs for VM '$VMName'"
exit 1
}
-234
View File
@@ -1,234 +0,0 @@
| Announcements |
|-|
| [[Ubuntu] Default Clang will be set to Clang 11 on December, 14](https://github.com/actions/virtual-environments/issues/2130) |
| [.NET 5.0 will become a default .NET version on December, 14](https://github.com/actions/virtual-environments/issues/1891) |
| [Ubuntu-latest workflows will use Ubuntu-20.04](https://github.com/actions/virtual-environments/issues/1816) |
| [Official Ruby binaries will be installed on images by default](https://github.com/actions/virtual-environments/issues/2193) |
***
# Ubuntu 16.04.7 LTS
- Image Version: 20201129.1
## Installed Software
### Language and Runtime
- GNU C++ 5.5.0, 7.5.0, 8.4.0, 9.3.0
- GNU Fortran 5.5.0, 8.4.0, 9.3.0
- Clang 6.0.0, 8.0.0, 9.0.1
- Erlang 11.1
- Mono 6.12.0.90
- Node 14.15.1
- Python 2.7.12
- Python3 3.5.2
- PowerShell 7.1.0
- Ruby 2.3.1p112
- Swift 5.3.1
- Julia 1.5.3
### Package Management
- Gem 3.1.4
- Helm 3.4.1
- Homebrew 2.5.12
- Miniconda 4.9.2
- Npm 6.14.9
- Pip 8.1.1
- Pip3 8.1.1
- Vcpkg 2020.11.12
- Yarn 1.22.5
### Project Management
- Ant 1.9.6
- Gradle 6.7.1
- Maven 3.6.3
- Sbt 1.4.4
### Tools
- 7-Zip 9.20
- Ansible 2.9.15
- apt-fast 1.9.10
- AzCopy10 10.7.0 (available by `azcopy10` alias)
- AzCopy7 7.3.0 (available by `azcopy` alias)
- Bazel 3.7.1
- Bazelisk 1.7.3
- CMake 3.19.1
- CodeQL Action Bundle 2.3.3
- curl 7.47.0
- Docker Compose 1.27.4
- Docker-Buildx 0.4.2
- Docker-Moby 19.03.13
- Git 2.29.0
- Git LFS 2.12.1
- Git-ftp 1.0.2
- Haveged 1.9.1
- Heroku 7.47.3
- HHVM (HipHop VM) 4.56.2
- jq 1.5
- Kind 0.9.0
- Kubectl 1.19.4
- Kustomize 3.8.7
- Leiningen 2.9.4
- m4 1.4.17
- Mercurial 4.4.1
- Minikube 1.15.1
- Newman 5.2.1
- nvm 0.37.2
- Packer 1.6.5
- PhantomJS 2.1.1
- Pulumi 2.14.0
- R 4.0.3
- Sphinx Open Source Search Server 2.2.9
- SVN 1.9.3
- Swig 3.0.8
- Terraform 0.13.5
- unzip 6.00
- wget 1.17.1
- yamllint 1.2.1
- zip 3.0
- zstd 1.3.1
### CLI Tools
- Alibaba Cloud CLI 3.0.63
- AWS CLI 1.18.185
- AWS CLI Session manager plugin 1.2.30.0
- AWS SAM CLI 1.12.0
- Azure CLI (azure-cli) 2.15.1
- Azure CLI (azure-devops) 0.18.0
- GitHub CLI 1.3.0
- Google Cloud SDK 319.0.0
- Hub CLI 2.14.2
- Netlify CLI 2.69.0
- oc CLI 4.5.0
- ORAS CLI 0.8.1
- Vercel CLI 21.0.1
### Java
| Version | Vendor | Environment Variable |
| ------------------- | ------------ | -------------------- |
| 1.7.0_285 | Zulu | JAVA_HOME_7_X64 |
| 1.8.0_275 (default) | AdoptOpenJDK | JAVA_HOME_8_X64 |
| 11.0.9.1 | AdoptOpenJDK | JAVA_HOME_11_X64 |
| 12.0.2 | AdoptOpenJDK | JAVA_HOME_12_X64 |
### PHP
| Tool | Version |
| -------- | ----------------------------------------- |
| PHP | 5.6.40 7.0.33 7.1.33 7.2.34 7.3.24 7.4.13 |
| Composer | 2.0.7 |
| PHPUnit | 7.5.20 |
### Haskell
- GHC 8.10.2
- Cabal 3.4.0.0
- Stack 2.5.1
### Rust Tools
- Rust 1.48.0
- Rustup 1.23.0
- Rustdoc 1.48.0
- Cargo 1.48.0
#### Packages
- Bindgen 0.56.0
- Cargo audit 0.13.1
- Cargo outdated 0.9.13
- Cargo clippy 0.0.212
- Cbindgen 0.15.0
- Rustfmt 1.4.24
### Browsers and Drivers
- Google Chrome 87.0.4280.66
- ChromeDriver 87.0.4280.20
- Mozilla Firefox 83.0
- Geckodriver 0.28.0
### .NET Core SDK
- 2.1.300 2.1.301 2.1.302 2.1.401 2.1.402 2.1.403 2.1.500 2.1.502 2.1.503 2.1.504 2.1.505 2.1.506 2.1.507 2.1.508 2.1.509 2.1.510 2.1.511 2.1.512 2.1.513 2.1.514 2.1.515 2.1.516 2.1.517 2.1.518 2.1.519 2.1.602 2.1.603 2.1.604 2.1.605 2.1.606 2.1.607 2.1.608 2.1.609 2.1.610 2.1.611 2.1.612 2.1.613 2.1.614 2.1.615 2.1.616 2.1.700 2.1.701 2.1.801 2.1.802 2.1.803 2.1.804 2.1.805 2.1.806 2.1.807 2.1.808 2.1.809 2.1.810 2.1.811 3.0.100 3.0.101 3.0.102 3.0.103 3.1.100 3.1.101 3.1.102 3.1.103 3.1.104 3.1.105 3.1.106 3.1.107 3.1.108 3.1.109 3.1.110 3.1.200 3.1.201 3.1.202 3.1.300 3.1.301 3.1.302 3.1.401 3.1.402 3.1.403 3.1.404
### Az Module
- 1.0.0 1.6.0 2.3.2 2.6.0 2.8.0 3.1.0 3.5.0 3.8.0 4.3.0 4.4.0 4.6.0 4.7.0
### Databases
- Postgre SQL 13.1
- MongoDB 4.4.2
- sqlite3 3.11.0
#### MySQL
- MySQL 5.7.32
- MySQL Server (user:root password:root)
```
MySQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'
```
#### MS SQL Server Client Tools
- sqlcmd 17.6.0001.1
### Cached Tools
#### Ruby
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.2
#### Python
- 2.7.18
- 3.5.10
- 3.6.12
- 3.7.9
- 3.8.6
- 3.9.0
#### PyPy
- 2.7.18 [PyPy 7.3.3]
- 3.6.12 [PyPy 7.3.3]
#### Node.js
- 8.17.0
- 10.23.0
- 12.20.0
- 14.15.1
#### Go
- 1.13.15
- 1.14.12
- 1.15.5
#### Boost
- 1.72.0
### Android
| Package Name | Version |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Android SDK Platform-Tools | 30.0.5 |
| Android SDK Tools | 26.1.1 |
| Android SDK Platforms | android-30 (rev 3)<br>android-29 (rev 5)<br>android-28 (rev 6)<br>android-27 (rev 3)<br>android-26 (rev 2)<br>android-25 (rev 3)<br>android-24 (rev 2)<br>android-23 (rev 3)<br>android-22 (rev 2)<br>android-21 (rev 2)<br>android-20 (rev 2)<br>android-19 (rev 4)<br>android-18 (rev 3)<br>android-17 (rev 3)<br>android-16 (rev 5)<br>android-15 (rev 5)<br>android-14 (rev 4)<br>android-13 (rev 1)<br>android-12 (rev 3)<br>android-11 (rev 2)<br>android-10 (rev 2) |
| Android SDK Build-tools | 30.0.0 30.0.1 30.0.2<br>29.0.0 29.0.1 29.0.2 29.0.3<br>28.0.0 28.0.1 28.0.2 28.0.3<br>27.0.0 27.0.1 27.0.2 27.0.3<br>26.0.0 26.0.1 26.0.2 26.0.3<br>25.0.0 25.0.1 25.0.2 25.0.3<br>24.0.0 24.0.1 24.0.2 24.0.3<br>23.0.1 23.0.2 23.0.3<br>22.0.1<br>21.1.2<br>20.0.0<br>19.1.0 |
| Google APIs | addon-google_apis-google-21<br>addon-google_apis-google-22<br>addon-google_apis-google-23<br>addon-google_apis-google-24 |
| NDK | 21.3.6528147 |
| Android Support Repository | 47.0.0 |
| Google Play services | 49 |
| Google Repository | 58 |
| SDK Patch Applier v4 | 1 |
| CMake | 3.10.2<br>3.6.4111459 |
### Cached Docker images
| Repository:Tag | Digest | Created |
| --------------------------------------------------------- | ------------------------------------------------------------------------ | ---------- |
| node:12 | sha256:6e2db75c0a1e19ed760996957aef507f5abe1260ec412e8901855ac4a17a7ada | 2020-11-25 |
| node:12-alpine | sha256:9f8d0fde57ef82d73d234d712edc211d1235469cb55426c0383b7eacf7d9199f | 2020-11-25 |
| node:10 | sha256:14fa22a8989cd64ce811db9d47e3ed2910e0f2d95323240e23bc928201bbf313 | 2020-11-18 |
| buildpack-deps:stretch | sha256:c45c192a72b3155aca0c64fd0944e431a7c211bbc3383015a14cae3d3a389e79 | 2020-11-18 |
| buildpack-deps:buster | sha256:ad587f62e065044815955a4593500f79da89f5e5af95eb7798d1a4c869f50770 | 2020-11-18 |
| debian:9 | sha256:455a591bd690268d8f6f3dc6f2a84b9d0f3d1934828140d8ea2a5344a7c79063 | 2020-11-17 |
| debian:8 | sha256:0160d3bcc7266efe6a2a93dff33e3d54480bd2616a8ff5774c33fd8b482c8d75 | 2020-11-17 |
| node:10-alpine | sha256:34d01a98b50563abff4a8e18269f35d4eb1f33e911a38dd14e4798e430af5cac | 2020-10-28 |
| ubuntu:14.04 | sha256:63fce984528cec8714c365919882f8fb64c8a3edf23fdfa0b218a2756125456f | 2020-09-16 |
| jekyll/builder:latest | sha256:4bc6a3b6eddebef1652ef38ceb965fc9c1b06677f65f764e1e17b88dc2aa9934 | 2020-09-03 |
| alpine:3.9 | sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011 | 2020-04-24 |
| alpine:3.10 | sha256:f0e9534a598e501320957059cb2a23774b4d4072e37c7b2cf7e95b241f019e35 | 2020-04-24 |
| alpine:3.8 | sha256:2bb501e6173d9d006e56de5bce2720eb06396803300fe1687b58a7ff32bf4c14 | 2020-01-23 |
| alpine:3.7 | sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10 | 2019-03-07 |
| mcr.microsoft.com/azure-pipelines/node8-typescript:latest | sha256:e52e60b9f71183969830a3664279b5d8c799b4b0ec2c25a0686f7c02f6a9669a | 2018-10-09 |
### Installed apt packages
- bison, brotli, bzip2, curl, dbus, dnsutils, dpkg, fakeroot, file, flex, ftp, gnupg2, iproute2, iputils-ping, jq, lib32z1, libc++-dev, libc++abi-dev, libcurl3, libgbm-dev, libgconf-2-4, libgtk-3-0, libicu55, libsecret-1-dev, libsqlite3-dev, libunwind8, libxkbfile-dev, libxss1, locales, m4, netcat, openssh-client, parallel, patchelf, pkg-config, rpm, rsync, shellcheck, sqlite3, ssh, sudo, telnet, texinfo, time, tk, tzdata, unzip, upx, wget, xorriso, xvfb, xz-utils, yamllint, zip, zstd, zsync
-238
View File
@@ -1,238 +0,0 @@
| Announcements |
|-|
| [[Ubuntu] Default Clang will be set to Clang 11 on December, 14](https://github.com/actions/virtual-environments/issues/2130) |
| [.NET 5.0 will become a default .NET version on December, 14](https://github.com/actions/virtual-environments/issues/1891) |
| [Ubuntu-latest workflows will use Ubuntu-20.04](https://github.com/actions/virtual-environments/issues/1816) |
| [Official Ruby binaries will be installed on images by default](https://github.com/actions/virtual-environments/issues/2193) |
***
# Ubuntu 18.04.5 LTS
- Image Version: 20201129.1
## Installed Software
### Language and Runtime
- GNU C++ 7.5.0, 8.4.0, 9.3.0, 10.1.0
- GNU Fortran 7.5.0, 8.4.0, 9.3.0, 10.1.0
- Clang 6.0.0, 8.0.0, 9.0.0
- Erlang 11.1
- Mono 6.12.0.90
- Node 14.15.1
- Python 2.7.17
- Python3 3.6.9
- PowerShell 7.1.0
- Ruby 2.5.1p57
- Swift 5.3.1
- Julia 1.5.3
### Package Management
- Gem 3.1.4
- Helm 3.4.1
- Homebrew 2.5.12
- Miniconda 4.9.2
- Npm 6.14.9
- Pip 9.0.1
- Pip3 9.0.1
- Pipx 0.15.6.0
- Vcpkg 2020.11.12
- Yarn 1.22.5
### Project Management
- Ant 1.10.5
- Gradle 6.7.1
- Maven 3.6.3
- Sbt 1.4.4
### Tools
- 7-Zip 16.02
- Ansible 2.9.15
- apt-fast 1.9.10
- AzCopy10 10.7.0 (available by `azcopy10` alias)
- AzCopy7 7.3.0 (available by `azcopy` alias)
- Bazel 3.7.1
- Bazelisk 1.7.3
- Buildah 1.18.0
- CMake 3.19.1
- CodeQL Action Bundle 2.3.3
- curl 7.58.0
- Docker Compose 1.27.4
- Docker-Buildx 0.4.2
- Docker-Moby 19.03.13
- Git 2.29.2
- Git LFS 2.12.1
- Git-ftp 1.3.1
- Haveged 1.9.1
- Heroku 7.47.3
- HHVM (HipHop VM) 4.84.0
- jq 1.5
- Kind 0.9.0
- Kubectl 1.19.4
- Kustomize 3.8.7
- Leiningen 2.9.4
- m4 1.4.18
- Mercurial 4.5.3
- Minikube 1.15.1
- Newman 5.2.1
- nvm 0.37.2
- Packer 1.6.5
- PhantomJS 2.1.1
- Podman 2.1.1
- Pulumi 2.14.0
- R 4.0.3
- Skopeo 1.2.0
- Sphinx Open Source Search Server 2.2.11
- SVN 1.9.7
- Swig 3.0.12
- Terraform 0.13.5
- unzip 6.00
- wget 1.19.4
- yamllint 1.25.0
- zip 3.0
- zstd 1.3.3
### CLI Tools
- Alibaba Cloud CLI 3.0.63
- AWS CLI 1.18.185
- AWS CLI Session manager plugin 1.2.30.0
- AWS SAM CLI 1.12.0
- Azure CLI (azure-cli) 2.15.1
- Azure CLI (azure-devops) 0.18.0
- GitHub CLI 1.3.0
- Google Cloud SDK 319.0.0
- Hub CLI 2.14.2
- Netlify CLI 2.69.0
- oc CLI 4.5.0
- ORAS CLI 0.8.1
- Vercel CLI 21.0.1
### Java
| Version | Vendor | Environment Variable |
| ------------------- | ------------ | -------------------- |
| 1.7.0_285 | Zulu | JAVA_HOME_7_X64 |
| 1.8.0_275 (default) | AdoptOpenJDK | JAVA_HOME_8_X64 |
| 11.0.9.1 | AdoptOpenJDK | JAVA_HOME_11_X64 |
| 12.0.2 | AdoptOpenJDK | JAVA_HOME_12_X64 |
### PHP
| Tool | Version |
| -------- | --------------------------- |
| PHP | 7.1.33 7.2.34 7.3.24 7.4.13 |
| Composer | 2.0.7 |
| PHPUnit | 7.5.20 |
### Haskell
- GHC 8.10.2
- Cabal 3.4.0.0
- Stack 2.5.1
### Rust Tools
- Rust 1.48.0
- Rustup 1.23.0
- Rustdoc 1.48.0
- Cargo 1.48.0
#### Packages
- Bindgen 0.56.0
- Cargo audit 0.13.1
- Cargo outdated 0.9.13
- Cargo clippy 0.0.212
- Cbindgen 0.15.0
- Rustfmt 1.4.24
### Browsers and Drivers
- Google Chrome 87.0.4280.66
- ChromeDriver 87.0.4280.20
- Mozilla Firefox 83.0
- Geckodriver 0.28.0
### .NET Core SDK
- 2.1.300 2.1.301 2.1.302 2.1.401 2.1.402 2.1.403 2.1.500 2.1.502 2.1.503 2.1.504 2.1.505 2.1.506 2.1.507 2.1.508 2.1.509 2.1.510 2.1.511 2.1.512 2.1.513 2.1.514 2.1.515 2.1.516 2.1.517 2.1.518 2.1.519 2.1.602 2.1.603 2.1.604 2.1.605 2.1.606 2.1.607 2.1.608 2.1.609 2.1.610 2.1.611 2.1.612 2.1.613 2.1.614 2.1.615 2.1.616 2.1.700 2.1.701 2.1.801 2.1.802 2.1.803 2.1.804 2.1.805 2.1.806 2.1.807 2.1.808 2.1.809 2.1.810 2.1.811 3.0.100 3.0.101 3.0.102 3.0.103 3.1.100 3.1.101 3.1.102 3.1.103 3.1.104 3.1.105 3.1.106 3.1.107 3.1.108 3.1.109 3.1.110 3.1.200 3.1.201 3.1.202 3.1.300 3.1.301 3.1.302 3.1.401 3.1.402 3.1.403 3.1.404
### Az Module
- 1.0.0 1.6.0 2.3.2 2.6.0 2.8.0 3.1.0 3.5.0 3.8.0 4.3.0 4.4.0 4.6.0 4.7.0
### Databases
- Postgre SQL 13.1
- MongoDB 4.4.2
- sqlite3 3.22.0
#### MySQL
- MySQL 5.7.32
- MySQL Server (user:root password:root)
```
MySQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'
```
#### MS SQL Server Client Tools
- sqlcmd 17.6.0001.1
### Cached Tools
#### Ruby
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.2
#### Python
- 2.7.18
- 3.5.10
- 3.6.12
- 3.7.9
- 3.8.6
- 3.9.0
#### PyPy
- 2.7.18 [PyPy 7.3.3]
- 3.6.12 [PyPy 7.3.3]
#### Node.js
- 8.17.0
- 10.23.0
- 12.20.0
- 14.15.1
#### Go
- 1.13.15
- 1.14.12
- 1.15.5
#### Boost
- 1.72.0
### Android
| Package Name | Version |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Android SDK Platform-Tools | 30.0.5 |
| Android SDK Tools | 26.1.1 |
| Android SDK Platforms | android-30 (rev 3)<br>android-29 (rev 5)<br>android-28 (rev 6)<br>android-27 (rev 3)<br>android-26 (rev 2)<br>android-25 (rev 3)<br>android-24 (rev 2)<br>android-23 (rev 3)<br>android-22 (rev 2)<br>android-21 (rev 2)<br>android-20 (rev 2)<br>android-19 (rev 4)<br>android-18 (rev 3)<br>android-17 (rev 3) |
| Android SDK Build-tools | 30.0.0 30.0.1 30.0.2<br>29.0.0 29.0.1 29.0.2 29.0.3<br>28.0.0 28.0.1 28.0.2 28.0.3<br>27.0.0 27.0.1 27.0.2 27.0.3<br>26.0.0 26.0.1 26.0.2 26.0.3<br>25.0.0 25.0.1 25.0.2 25.0.3<br>24.0.0 24.0.1 24.0.2 24.0.3<br>23.0.1 23.0.2 23.0.3<br>22.0.1<br>21.1.2<br>20.0.0<br>19.1.0 |
| Google APIs | addon-google_apis-google-21<br>addon-google_apis-google-22<br>addon-google_apis-google-23<br>addon-google_apis-google-24 |
| NDK | 21.3.6528147 |
| Android Support Repository | 47.0.0 |
| Google Play services | 49 |
| Google Repository | 58 |
| SDK Patch Applier v4 | 1 |
| CMake | 3.10.2<br>3.6.4111459 |
### Cached Docker images
| Repository:Tag | Digest | Created |
| --------------------------------------------------------- | ------------------------------------------------------------------------ | ---------- |
| node:12 | sha256:6e2db75c0a1e19ed760996957aef507f5abe1260ec412e8901855ac4a17a7ada | 2020-11-25 |
| node:12-alpine | sha256:9f8d0fde57ef82d73d234d712edc211d1235469cb55426c0383b7eacf7d9199f | 2020-11-25 |
| node:10 | sha256:14fa22a8989cd64ce811db9d47e3ed2910e0f2d95323240e23bc928201bbf313 | 2020-11-18 |
| buildpack-deps:stretch | sha256:c45c192a72b3155aca0c64fd0944e431a7c211bbc3383015a14cae3d3a389e79 | 2020-11-18 |
| buildpack-deps:buster | sha256:ad587f62e065044815955a4593500f79da89f5e5af95eb7798d1a4c869f50770 | 2020-11-18 |
| debian:9 | sha256:455a591bd690268d8f6f3dc6f2a84b9d0f3d1934828140d8ea2a5344a7c79063 | 2020-11-17 |
| debian:8 | sha256:0160d3bcc7266efe6a2a93dff33e3d54480bd2616a8ff5774c33fd8b482c8d75 | 2020-11-17 |
| node:10-alpine | sha256:34d01a98b50563abff4a8e18269f35d4eb1f33e911a38dd14e4798e430af5cac | 2020-10-28 |
| ubuntu:14.04 | sha256:63fce984528cec8714c365919882f8fb64c8a3edf23fdfa0b218a2756125456f | 2020-09-16 |
| jekyll/builder:latest | sha256:4bc6a3b6eddebef1652ef38ceb965fc9c1b06677f65f764e1e17b88dc2aa9934 | 2020-09-03 |
| alpine:3.9 | sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011 | 2020-04-24 |
| alpine:3.10 | sha256:f0e9534a598e501320957059cb2a23774b4d4072e37c7b2cf7e95b241f019e35 | 2020-04-24 |
| alpine:3.8 | sha256:2bb501e6173d9d006e56de5bce2720eb06396803300fe1687b58a7ff32bf4c14 | 2020-01-23 |
| alpine:3.7 | sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10 | 2019-03-07 |
| mcr.microsoft.com/azure-pipelines/node8-typescript:latest | sha256:e52e60b9f71183969830a3664279b5d8c799b4b0ec2c25a0686f7c02f6a9669a | 2018-10-09 |
### Installed apt packages
- bison, brotli, bzip2, curl, dbus, dnsutils, dpkg, fakeroot, file, flex, ftp, gnupg2, iproute2, iputils-ping, jq, lib32z1, libc++-dev, libc++abi-dev, libcurl3, libgbm-dev, libgconf-2-4, libgtk-3-0, libsecret-1-dev, libsqlite3-dev, libunwind8, libxkbfile-dev, libxss1, locales, m4, netcat, openssh-client, parallel, patchelf, pkg-config, rpm, rsync, shellcheck, sqlite3, ssh, sudo, telnet, texinfo, time, tk, tzdata, unzip, upx, wget, xorriso, xvfb, xz-utils, zip, zstd, zsync
-230
View File
@@ -1,230 +0,0 @@
| Announcements |
|-|
| [[Ubuntu] Default Clang will be set to Clang 11 on December, 14](https://github.com/actions/virtual-environments/issues/2130) |
| [.NET 5.0 will become a default .NET version on December, 14](https://github.com/actions/virtual-environments/issues/1891) |
| [Ubuntu-latest workflows will use Ubuntu-20.04](https://github.com/actions/virtual-environments/issues/1816) |
| [Official Ruby binaries will be installed on images by default](https://github.com/actions/virtual-environments/issues/2193) |
***
# Ubuntu 20.04.1 LTS
- Image Version: 20201130.1
## Installed Software
### Language and Runtime
- GNU C++ 7.5.0, 8.4.0, 9.3.0, 10.2.0
- GNU Fortran 8.4.0, 9.3.0, 10.2.0
- Clang 8.0.1, 9.0.1, 10.0.0
- Erlang 11.1
- Mono 6.12.0.90
- Node 14.15.1
- Python 3.8.5
- Python3 3.8.5
- PowerShell 7.1.0
- Ruby 2.7.0p0
- Swift 5.3.1
- Julia 1.5.3
### Package Management
- Gem 3.1.2
- Helm 3.4.1
- Homebrew 2.5.12
- Miniconda 4.9.2
- Npm 6.14.9
- Pip 20.0.2
- Pip3 20.0.2
- Pipx 0.15.6.0
- Vcpkg 2020.11.12
- Yarn 1.22.5
### Project Management
- Ant 1.10.7
- Gradle 6.7.1
- Maven 3.6.3
- Sbt 1.4.4
### Tools
- 7-Zip 16.02
- Ansible 2.9.6
- apt-fast 1.9.10
- AzCopy10 10.7.0 (available by `azcopy10` alias)
- AzCopy7 7.3.0 (available by `azcopy` alias)
- Bazel 3.7.1
- Bazelisk 1.7.3
- Buildah 1.18.0
- CMake 3.19.1
- CodeQL Action Bundle 2.3.3
- curl 7.68.0
- Docker Compose 1.27.4
- Docker-Buildx 0.4.2
- Docker-Moby 19.03.13
- Git 2.29.2
- Git LFS 2.12.1
- Git-ftp 1.6.0
- Haveged 1.9.1
- Heroku 7.47.3
- HHVM (HipHop VM) 4.84.0
- jq 1.6
- Kind 0.9.0
- Kubectl 1.19.4
- Kustomize 3.8.7
- Leiningen 2.9.4
- m4 1.4.18
- Mercurial 5.3.1
- Minikube 1.15.1
- Newman 5.2.1
- nvm 0.37.2
- Packer 1.6.5
- PhantomJS 2.1.1
- Podman 2.1.1
- Pulumi 2.14.0
- R 4.0.3
- Skopeo 1.2.0
- Sphinx Open Source Search Server 2.2.11
- SVN 1.13.0
- Swig 4.0.1
- Terraform 0.13.5
- unzip 6.00
- wget 1.20.3
- yamllint 1.25.0
- zip 3.0
- zstd 1.4.4
### CLI Tools
- Alibaba Cloud CLI 3.0.63
- AWS CLI 2.1.4
- AWS CLI Session manager plugin 1.2.30.0
- AWS SAM CLI 1.12.0
- Azure CLI (azure-cli) 2.15.1
- Azure CLI (azure-devops) 0.18.0
- GitHub CLI 1.3.0
- Google Cloud SDK 319.0.0
- Hub CLI 2.14.2
- Netlify CLI 2.69.0
- oc CLI 4.5.0
- ORAS CLI 0.8.1
- Vercel CLI 21.0.1
### Java
| Version | Vendor | Environment Variable |
| ------------------ | ------------ | -------------------- |
| 1.8.0_275 | AdoptOpenJDK | JAVA_HOME_8_X64 |
| 11.0.9.1 (default) | AdoptOpenJDK | JAVA_HOME_11_X64 |
### PHP
| Tool | Version |
| -------- | ------- |
| PHP | 7.4.13 |
| Composer | 2.0.7 |
| PHPUnit | 7.5.20 |
### Haskell
- GHC 8.10.2
- Cabal 3.4.0.0
- Stack 2.5.1
### Rust Tools
- Rust 1.48.0
- Rustup 1.23.0
- Rustdoc 1.48.0
- Cargo 1.48.0
#### Packages
- Bindgen 0.56.0
- Cargo audit 0.13.1
- Cargo outdated 0.9.13
- Cargo clippy 0.0.212
- Cbindgen 0.15.0
- Rustfmt 1.4.24
### Browsers and Drivers
- Google Chrome 87.0.4280.66
- ChromeDriver 87.0.4280.20
- Mozilla Firefox 83.0
- Geckodriver 0.28.0
### .NET Core SDK
- 2.1.300 2.1.301 2.1.302 2.1.401 2.1.402 2.1.403 2.1.500 2.1.502 2.1.503 2.1.504 2.1.505 2.1.506 2.1.507 2.1.508 2.1.509 2.1.510 2.1.511 2.1.512 2.1.513 2.1.514 2.1.515 2.1.516 2.1.517 2.1.518 2.1.519 2.1.602 2.1.603 2.1.604 2.1.605 2.1.606 2.1.607 2.1.608 2.1.609 2.1.610 2.1.611 2.1.612 2.1.613 2.1.614 2.1.615 2.1.616 2.1.700 2.1.701 2.1.801 2.1.802 2.1.803 2.1.804 2.1.805 2.1.806 2.1.807 2.1.808 2.1.809 2.1.810 2.1.811 3.1.100 3.1.101 3.1.102 3.1.103 3.1.104 3.1.105 3.1.106 3.1.107 3.1.108 3.1.109 3.1.110 3.1.200 3.1.201 3.1.202 3.1.300 3.1.301 3.1.302 3.1.401 3.1.402 3.1.403 3.1.404
### Az Module
- 3.8.0 4.8.0
### Databases
- Postgre SQL 13.1
- MongoDB 4.4.2
- sqlite3 3.31.1
#### MySQL
- MySQL 8.0.22
- MySQL Server (user:root password:root)
```
MySQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'
```
#### MS SQL Server Client Tools
- sqlcmd 17.6.0001.1
### Cached Tools
#### Ruby
- 2.5.8
- 2.6.6
- 2.7.2
#### Python
- 2.7.18
- 3.5.10
- 3.6.12
- 3.7.9
- 3.8.6
- 3.9.0
#### PyPy
- 2.7.18 [PyPy 7.3.3]
- 3.6.12 [PyPy 7.3.3]
#### Node.js
- 8.17.0
- 10.23.0
- 12.20.0
- 14.15.1
#### Go
- 1.14.12
- 1.15.5
### Android
| Package Name | Version |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Android SDK Platform-Tools | 30.0.5 |
| Android SDK Tools | 26.1.1 |
| Android SDK Platforms | android-30 (rev 3)<br>android-29 (rev 5)<br>android-28 (rev 6)<br>android-27 (rev 3) |
| Android SDK Build-tools | 30.0.0 30.0.1 30.0.2<br>29.0.0 29.0.1 29.0.2 29.0.3<br>28.0.0 28.0.1 28.0.2 28.0.3<br>27.0.0 27.0.1 27.0.2 27.0.3 |
| NDK | 21.3.6528147 |
| Android Support Repository | 47.0.0 |
| Google Play services | 49 |
| Google Repository | 58 |
| SDK Patch Applier v4 | 1 |
| CMake | 3.10.2 |
### Cached Docker images
| Repository:Tag | Digest | Created |
| --------------------------------------------------------- | ------------------------------------------------------------------------ | ---------- |
| node:12 | sha256:6e2db75c0a1e19ed760996957aef507f5abe1260ec412e8901855ac4a17a7ada | 2020-11-25 |
| node:12-alpine | sha256:9f8d0fde57ef82d73d234d712edc211d1235469cb55426c0383b7eacf7d9199f | 2020-11-25 |
| node:10 | sha256:14fa22a8989cd64ce811db9d47e3ed2910e0f2d95323240e23bc928201bbf313 | 2020-11-18 |
| buildpack-deps:stretch | sha256:c45c192a72b3155aca0c64fd0944e431a7c211bbc3383015a14cae3d3a389e79 | 2020-11-18 |
| buildpack-deps:buster | sha256:ad587f62e065044815955a4593500f79da89f5e5af95eb7798d1a4c869f50770 | 2020-11-18 |
| debian:9 | sha256:455a591bd690268d8f6f3dc6f2a84b9d0f3d1934828140d8ea2a5344a7c79063 | 2020-11-17 |
| debian:8 | sha256:0160d3bcc7266efe6a2a93dff33e3d54480bd2616a8ff5774c33fd8b482c8d75 | 2020-11-17 |
| node:10-alpine | sha256:34d01a98b50563abff4a8e18269f35d4eb1f33e911a38dd14e4798e430af5cac | 2020-10-28 |
| ubuntu:14.04 | sha256:63fce984528cec8714c365919882f8fb64c8a3edf23fdfa0b218a2756125456f | 2020-09-16 |
| jekyll/builder:latest | sha256:4bc6a3b6eddebef1652ef38ceb965fc9c1b06677f65f764e1e17b88dc2aa9934 | 2020-09-03 |
| alpine:3.9 | sha256:414e0518bb9228d35e4cd5165567fb91d26c6a214e9c95899e1e056fcd349011 | 2020-04-24 |
| alpine:3.10 | sha256:f0e9534a598e501320957059cb2a23774b4d4072e37c7b2cf7e95b241f019e35 | 2020-04-24 |
| alpine:3.8 | sha256:2bb501e6173d9d006e56de5bce2720eb06396803300fe1687b58a7ff32bf4c14 | 2020-01-23 |
| alpine:3.7 | sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10 | 2019-03-07 |
| mcr.microsoft.com/azure-pipelines/node8-typescript:latest | sha256:e52e60b9f71183969830a3664279b5d8c799b4b0ec2c25a0686f7c02f6a9669a | 2018-10-09 |
### Installed apt packages
- bison, brotli, bzip2, curl, dbus, dnsutils, dpkg, fakeroot, file, flex, ftp, gnupg2, iproute2, iputils-ping, jq, lib32z1, libc++-dev, libc++abi-dev, libcurl4, libgbm-dev, libgconf-2-4, libgtk-3-0, libsecret-1-dev, libsqlite3-dev, libunwind8, libxkbfile-dev, libxss1, locales, m4, netcat, openssh-client, parallel, patchelf, pkg-config, python-is-python3, rpm, rsync, shellcheck, sqlite3, ssh, sudo, telnet, texinfo, time, tk, tzdata, unzip, upx, wget, xorriso, xvfb, xz-utils, zip, zstd, zsync
+403
View File
@@ -0,0 +1,403 @@
| Announcements |
|-|
| [python2.7 will be removed from the images on May 15, 2023](https://github.com/actions/runner-images/issues/7401) |
***
# Ubuntu 20.04
- OS Version: 20.04.6 LTS
- Kernel Version: 5.15.0-1037-azure
- Image Version: 20230507.1
- Systemd version: 245.4-4ubuntu3.21
## Installed Software
### Language and Runtime
- Bash 5.0.17(1)-release
- Clang: 10.0.0, 11.0.0, 12.0.0
- Clang-format: 10.0.0, 11.0.0, 12.0.0
- Clang-tidy: 10.0.0, 11.0.0, 12.0.0
- Dash 0.5.10.2-6
- Erlang 25.3 (Eshell 13.2)
- Erlang rebar3 3.20.0
- GNU C++: 9.4.0, 10.3.0
- GNU Fortran: 9.4.0, 10.3.0
- Julia 1.8.5
- Kotlin 1.8.21-release-380
- Mono 6.12.0.182
- MSBuild 16.10.1.31701 (Mono 6.12.0.182)
- Node.js 18.16.0
- Perl 5.30.0
- Python 3.8.10
- Python3 3.8.10
- Ruby 2.7.0p0
- Swift 5.8
### Package Management
- cpan 1.64
- Helm 3.11.3
- Homebrew 4.0.16
- Miniconda 23.3.1
- Npm 9.5.1
- NuGet 6.3.1.1
- Pip 20.0.2
- Pip3 20.0.2
- Pipx 1.2.0
- RubyGems 3.1.2
- Vcpkg (build from commit 6a3dd0874)
- Yarn 1.22.19
#### Environment variables
| Name | Value |
| ----------------------- | ---------------------- |
| CONDA | /usr/share/miniconda |
| VCPKG_INSTALLATION_ROOT | /usr/local/share/vcpkg |
#### Homebrew note
```
Location: /home/linuxbrew
Note: Homebrew is pre-installed on image but not added to PATH.
run the eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" command
to accomplish this.
```
### Project Management
- Ant 1.10.7
- Gradle 8.1.1
- Lerna 6.6.2
- Maven 3.8.8
- Sbt 1.8.2
### Tools
- Ansible 2.13.9
- apt-fast 1.9.12
- AzCopy 10.18.1 - available by `azcopy` and `azcopy10` aliases
- Bazel 6.1.2
- Bazelisk 1.13.2
- Bicep 0.17.1
- Buildah 1.22.3
- CMake 3.26.3
- CodeQL Action Bundles 2.13.0 2.13.1
- Docker Amazon ECR Credential Helper 0.7.0
- Docker Compose v1 1.29.2
- Docker Compose v2 2.17.3+azure-1
- Docker-Buildx 0.10.4
- Docker-Moby Client 20.10.24+azure-1
- Docker-Moby Server 20.10.24+azure-1
- Fastlane 2.212.2
- Git 2.40.1
- Git LFS 3.3.0
- Git-ftp 1.6.0
- Haveged 1.9.1
- Heroku 8.1.3
- HHVM (HipHop VM) 4.172.1
- jq 1.6
- Kind 0.18.0
- Kubectl 1.27.1
- Kustomize 5.0.2
- Leiningen 2.10.0
- MediaInfo 19.09
- Mercurial 5.3.1
- Minikube 1.30.1
- n 9.1.0
- Newman 5.3.2
- nvm 0.39.3
- OpenSSL 1.1.1f-1ubuntu2.18
- Packer 1.8.7
- Parcel 2.8.3
- PhantomJS 2.1.1 2.1.1
- Podman 3.4.2
- Pulumi 3.66.0
- R 4.3.0
- Skopeo 1.5.0
- Sphinx Open Source Search Server 2.2.11
- SVN 1.13.0
- Terraform 1.4.6
- yamllint 1.31.0
- yq 4.33.3
- zstd 1.5.5
### CLI Tools
- Alibaba Cloud CLI 3.0.163
- AWS CLI 2.11.18
- AWS CLI Session Manager Plugin 1.2.463.0
- AWS SAM CLI 1.82.0
- Azure CLI 2.48.1
- Azure CLI (azure-devops) 0.26.0
- GitHub CLI 2.28.0
- Google Cloud SDK 429.0.0
- Hub CLI 2.14.2
- Netlify CLI 15.0.0
- OpenShift CLI 4.12.15
- ORAS CLI 1.0.0
- Vercel CLI 29.1.1
### Java
| Version | Vendor | Environment Variable |
| ------------------- | --------------- | -------------------- |
| 8.0.362+9 | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.19+7 (default) | Eclipse Temurin | JAVA_HOME_11_X64 |
| 17.0.7+7 | Eclipse Temurin | JAVA_HOME_17_X64 |
### PHP Tools
- PHP: 7.4.33, 8.0.28, 8.1.18, 8.2.5
- Composer 2.5.5
- PHPUnit 8.5.33
```
Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled.
```
### Haskell Tools
- Cabal 3.10.1.0
- GHC 9.6.1
- GHCup 0.1.19.2
- Stack 2.9.3
### Rust Tools
- Cargo 1.69.0
- Rust 1.69.0
- Rustdoc 1.69.0
- Rustup 1.26.0
#### Packages
- Bindgen 0.65.1
- Cargo audit 0.17.5
- Cargo clippy 0.1.69
- Cargo outdated 0.11.2
- Cbindgen 0.24.3
- Rustfmt 1.5.2
### Browsers and Drivers
- Google Chrome 113.0.5672.63
- ChromeDriver 113.0.5672.63
- Chromium 113.0.5672.0
- Microsoft Edge 113.0.1774.35
- Microsoft Edge WebDriver 113.0.1774.35
- Selenium server 4.9.0
- Mozilla Firefox 113.0
- Geckodriver 0.33.0
#### Environment variables
| Name | Value |
| ----------------- | ----------------------------------- |
| CHROMEWEBDRIVER | /usr/local/share/chrome_driver |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/share/gecko_driver |
| SELENIUM_JAR_PATH | /usr/share/java/selenium-server.jar |
### .NET Tools
- .NET Core SDK: 3.1.120, 3.1.202, 3.1.302, 3.1.426, 6.0.408, 7.0.105, 7.0.203
- nbgv 3.6.128+518ee610d6
### Databases
- MongoDB 5.0.17
- sqlite3 3.31.1
#### PostgreSQL
- PostgreSQL 14.7
```
User: postgres
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'
```
#### MySQL
- MySQL 8.0.32-0ubuntu0.20.04.2
```
User: root
Password: root
MySQL service is disabled by default.
Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'
```
#### MS SQL
- sqlcmd 17.10.0001.1
- SqlPackage 16.1.8089.0
### Cached Tools
#### Go
- 1.18.10
- 1.19.9
- 1.20.4
#### Node.js
- 14.21.3
- 16.20.0
- 18.16.0
#### Python
- 2.7.18
- 3.6.15
- 3.7.16
- 3.8.16
- 3.9.16
- 3.10.11
- 3.11.3
#### PyPy
- 2.7.18 [PyPy 7.3.11]
- 3.6.12 [PyPy 7.3.3]
- 3.7.13 [PyPy 7.3.9]
- 3.8.16 [PyPy 7.3.11]
- 3.9.16 [PyPy 7.3.11]
#### Ruby
- 2.5.9
- 2.6.10
- 2.7.8
- 3.0.6
- 3.1.4
### PowerShell Tools
- PowerShell 7.2.11
#### PowerShell Modules
- Az: 9.3.0
- Az (Cached): 3.1.0.zip, 4.4.0.zip, 5.9.0.zip, 6.6.0.zip, 7.5.0.zip
- MarkdownPS: 1.9
- Microsoft.Graph: 1.27.0
- Pester: 5.4.1
- PSScriptAnalyzer: 1.21.0
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| --------- | ------- | ------------------------- | ------------- | ---------- |
| apache2 | 2.4.41 | /etc/apache2/apache2.conf | inactive | 80 |
| mono-xsp4 | 4.7.1 | /etc/default/mono-xsp4 | active | 8084 |
| nginx | 1.18.0 | /etc/nginx/nginx.conf | inactive | 80 |
### Android
| Package Name | Version |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Android Command Line Tools | 9.0 |
| Android Emulator | 32.1.12 |
| Android SDK Build-tools | 33.0.0 33.0.1 33.0.2<br>32.0.0<br>31.0.0<br>30.0.0 30.0.1 30.0.2 30.0.3<br>29.0.0 29.0.1 29.0.2 29.0.3<br>28.0.0 28.0.1 28.0.2 28.0.3<br>27.0.0 27.0.1 27.0.2 27.0.3 |
| Android SDK Platform-Tools | 34.0.1 |
| Android SDK Platforms | android-33-ext5 (rev 1)<br>android-33-ext4 (rev 1)<br>android-33 (rev 2)<br>android-32 (rev 1)<br>android-31 (rev 1)<br>android-30 (rev 3)<br>android-29 (rev 5)<br>android-28 (rev 6)<br>android-27 (rev 3) |
| Android SDK Tools | 26.1.1 |
| Android Support Repository | 47.0.0 |
| CMake | 3.10.2<br>3.18.1<br>3.22.1 |
| Google Play services | 49 |
| Google Repository | 58 |
| NDK | 23.2.8568313<br>24.0.8215888<br>25.2.9519653 (default) |
| SDK Patch Applier v4 | 1 |
#### Environment variables
| Name | Value |
| ----------------------- | ------------------------------------------- |
| ANDROID_HOME | /usr/local/lib/android/sdk |
| ANDROID_NDK | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_NDK_HOME | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_NDK_LATEST_HOME | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_NDK_ROOT | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_SDK_ROOT | /usr/local/lib/android/sdk |
### Cached Docker images
| Repository:Tag | Digest | Created |
| ----------------------- | ------------------------------------------------------------------------ | ---------- |
| alpine:3.14 | sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed | 2023-03-29 |
| alpine:3.15 | sha256:ecbdce53b2c2f43ab1b19418bcbd3f120a23547d9497030c8d978114512b883e | 2023-03-29 |
| alpine:3.16 | sha256:c2b622f6e510a0d25bccaffa9e67b75a6860cb09b74bb58cfc36a9ef4331109f | 2023-03-29 |
| alpine:3.17 | sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 | 2023-03-29 |
| buildpack-deps:bullseye | sha256:373587e78550f0918d16b793d1ead24c3f489a14c3af85da1096e2a683908e0c | 2023-05-03 |
| buildpack-deps:buster | sha256:bfefe2afb02a82c76d955f2c158b3b5aa96e7afcf262727e8f37ccdea60a39c5 | 2023-05-03 |
| buildpack-deps:stretch | sha256:78e995165a5788c2f55aed6e548d8f6c1534830d4310c870408fccb2da8c5b2e | 2022-06-23 |
| debian:10 | sha256:cca6bcced970f7634197ff1821aabb452024eb437958ab98bfc146ece96969c6 | 2023-05-02 |
| debian:11 | sha256:63d62ae233b588d6b426b7b072d79d1306bfd02a72bff1fc045b8511cc89ee09 | 2023-05-02 |
| debian:9 | sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be | 2022-06-23 |
| moby/buildkit:latest | sha256:d6fa89830c26919acba23c5cafa09df0c3ec1fbde20bb2a15ff349e0795241f4 | 2023-04-20 |
| node:14 | sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa | 2023-04-12 |
| node:14-alpine | sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33 | 2023-03-29 |
| node:16 | sha256:550f484fc5f314b575f5e397c9e2c71d7f218e59729fcda9ffa7ea1fc825dce7 | 2023-05-04 |
| node:16-alpine | sha256:f1657204d3463bce763cefa5b25e48c28af6fe0cdb0f68b354f0f8225ef61be7 | 2023-03-29 |
| node:18 | sha256:3f567a26b6b6d601fb2b168d4f987b50697617ead15bfc0e0152e600ac48d0fe | 2023-05-04 |
| node:18-alpine | sha256:1ccc70acda680aa4ba47f53e7c40b2d4d6892de74817128e0662d32647dd7f4d | 2023-04-13 |
| ubuntu:16.04 | sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6 | 2021-08-31 |
| ubuntu:18.04 | sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de607da1cec3a8a2fae005931b | 2023-03-08 |
| ubuntu:20.04 | sha256:db8bf6f4fb351aa7a26e27ba2686cf35a6a409f65603e59d4c203e58387dc6b3 | 2023-04-13 |
### Installed apt packages
| Name | Version |
| ---------------------- | --------------------------------- |
| acl | 2.2.53-6 |
| aria2 | 1.35.0-1build1 |
| autoconf | 2.69-11.1 |
| automake | 1:1.16.1-4ubuntu6 |
| binutils | 2.34-6ubuntu1.4 |
| bison | 2:3.5.1+dfsg-1 |
| brotli | 1.0.7-6ubuntu0.1 |
| build-essential | 12.8ubuntu1.1 |
| bzip2 | 1.0.8-2 |
| coreutils | 8.30-3ubuntu2 |
| curl | 7.68.0-1ubuntu2.18 |
| dbus | 1.12.16-2ubuntu2.3 |
| dnsutils | 1:9.16.1-0ubuntu2.14 |
| dpkg | 1.19.7ubuntu3.2 |
| fakeroot | 1.24-1 |
| file | 1:5.38-4 |
| flex | 2.6.4-6.2 |
| fonts-noto-color-emoji | 0\~20200916-1\~ubuntu20.04.1 |
| ftp | 0.17-34.1 |
| gnupg2 | 2.2.19-3ubuntu2.2 |
| haveged | 1.9.1-6ubuntu1 |
| imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.7 |
| iproute2 | 5.5.0-1ubuntu1 |
| iputils-ping | 3:20190709-3 |
| jq | 1.6-1ubuntu0.20.04.1 |
| lib32z1 | 1:1.2.11.dfsg-2ubuntu1.5 |
| libc++-dev | 1:10.0-50\~exp1 |
| libc++abi-dev | 1:10.0-50\~exp1 |
| libcurl4 | 7.68.0-1ubuntu2.18 |
| libgbm-dev | 21.2.6-0ubuntu0.1\~20.04.2 |
| libgconf-2-4 | 3.2.6-6ubuntu1 |
| libgsl-dev | 2.5+dfsg-6build1 |
| libgtk-3-0 | 3.24.20-0ubuntu1.1 |
| libmagic-dev | 1:5.38-4 |
| libmagickcore-dev | 8:6.9.10.23+dfsg-2.1ubuntu11.7 |
| libmagickwand-dev | 8:6.9.10.23+dfsg-2.1ubuntu11.7 |
| libsecret-1-dev | 0.20.4-0ubuntu1 |
| libsqlite3-dev | 3.31.1-4ubuntu0.5 |
| libtool | 2.4.6-14 |
| libunwind8 | 1.2.1-9ubuntu0.1 |
| libxkbfile-dev | 1:1.1.0-1 |
| libxss1 | 1:1.2.3-1 |
| libyaml-dev | 0.2.2-1 |
| locales | 2.31-0ubuntu9.9 |
| m4 | 1.4.18-4 |
| mediainfo | 19.09-1build1 |
| mercurial | 5.3.1-1ubuntu1 |
| net-tools | 1.60+git20180626.aebd88e-1ubuntu1 |
| netcat | 1.206-1ubuntu1 |
| openssh-client | 1:8.2p1-4ubuntu0.5 |
| p7zip-full | 16.02+dfsg-7build1 |
| p7zip-rar | 16.02-3build1 |
| parallel | 20161222-1.1 |
| pass | 1.7.3-2 |
| patchelf | 0.10-2build1 |
| pkg-config | 0.29.1-0ubuntu4 |
| pollinate | 4.33-3ubuntu1.20.04.1 |
| python-is-python3 | 3.8.2-4 |
| rpm | 4.14.2.1+dfsg1-1build2 |
| rsync | 3.1.3-8ubuntu0.5 |
| shellcheck | 0.7.0-2build2 |
| sphinxsearch | 2.2.11-2ubuntu2 |
| sqlite3 | 3.31.1-4ubuntu0.5 |
| ssh | 1:8.2p1-4ubuntu0.5 |
| sshpass | 1.06-1 |
| subversion | 1.13.0-3ubuntu0.2 |
| sudo | 1.8.31-1ubuntu1.5 |
| swig | 4.0.1-5build1 |
| tar | 1.30+dfsg-7ubuntu0.20.04.3 |
| telnet | 0.17-41.2build1 |
| texinfo | 6.7.0.dfsg.2-5 |
| time | 1.7-25.1build1 |
| tk | 8.6.9+1 |
| tzdata | 2023c-0ubuntu0.20.04.1 |
| unzip | 6.0-25ubuntu1.1 |
| upx | 3.95-2build1 |
| wget | 1.20.3-1ubuntu2 |
| xorriso | 1.5.2-1 |
| xvfb | 2:1.20.13-1ubuntu1\~20.04.8 |
| xz-utils | 5.2.4-1ubuntu1.1 |
| zip | 3.0-11build1 |
| zsync | 0.6.2-3ubuntu1 |
+385
View File
@@ -0,0 +1,385 @@
| Announcements |
|-|
| [python2.7 will be removed from the images on May 15, 2023](https://github.com/actions/runner-images/issues/7401) |
***
# Ubuntu 22.04
- OS Version: 22.04.2 LTS
- Kernel Version: 5.15.0-1037-azure
- Image Version: 20230507.1
- Systemd version: 249.11-0ubuntu3.9
## Installed Software
### Language and Runtime
- Bash 5.1.16(1)-release
- Clang: 12.0.1, 13.0.1, 14.0.0
- Clang-format: 12.0.1, 13.0.1, 14.0.0
- Clang-tidy: 12.0.1, 13.0.1, 14.0.0
- Dash 0.5.11+git20210903+057cd650a4ed-3build1
- GNU C++: 9.5.0, 10.4.0, 11.3.0, 12.1.0
- GNU Fortran: 9.5.0, 10.4.0, 11.3.0, 12.1.0
- Julia 1.8.5
- Kotlin 1.8.21-release-380
- Mono 6.12.0.182
- MSBuild 16.10.1.31701 (Mono 6.12.0.182)
- Node.js 18.16.0
- Perl 5.34.0
- Python 3.10.6
- Python3 3.10.6
- Ruby 3.0.2p107
- Swift 5.8
### Package Management
- cpan 1.64
- Helm 3.11.3
- Homebrew 4.0.16
- Miniconda 23.3.1
- Npm 9.5.1
- NuGet 6.3.1.1
- Pip 22.0.2
- Pip3 22.0.2
- Pipx 1.2.0
- RubyGems 3.3.5
- Vcpkg (build from commit 6a3dd0874)
- Yarn 1.22.19
#### Environment variables
| Name | Value |
| ----------------------- | ---------------------- |
| CONDA | /usr/share/miniconda |
| VCPKG_INSTALLATION_ROOT | /usr/local/share/vcpkg |
#### Homebrew note
```
Location: /home/linuxbrew
Note: Homebrew is pre-installed on image but not added to PATH.
run the eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" command
to accomplish this.
```
### Project Management
- Lerna 6.6.2
- Maven 3.8.8
### Tools
- Ansible 2.14.5
- apt-fast 1.9.12
- AzCopy 10.18.1 - available by `azcopy` and `azcopy10` aliases
- Bazel 6.1.2
- Bazelisk 1.13.2
- Bicep 0.17.1
- Buildah 1.23.1
- CMake 3.26.3
- CodeQL Action Bundles 2.13.0 2.13.1
- Docker Amazon ECR Credential Helper 0.7.0
- Docker Compose v1 1.29.2
- Docker Compose v2 2.17.3+azure-1
- Docker-Buildx 0.10.4
- Docker-Moby Client 20.10.24+azure-1
- Docker-Moby Server 20.10.24+azure-1
- Fastlane 2.212.2
- Git 2.40.1
- Git LFS 3.3.0
- Git-ftp 1.6.0
- Haveged 1.9.14
- Heroku 8.1.3
- jq 1.6
- Kind 0.18.0
- Kubectl 1.27.1
- Kustomize 5.0.2
- Leiningen 2.10.0
- MediaInfo 21.09
- Mercurial 6.1.1
- Minikube 1.30.1
- n 9.1.0
- Newman 5.3.2
- nvm 0.39.3
- OpenSSL 3.0.2-0ubuntu1.9
- Packer 1.8.7
- Parcel 2.8.3
- Podman 3.4.4
- Pulumi 3.66.0
- R 4.3.0
- Skopeo 1.4.1
- Sphinx Open Source Search Server 2.2.11
- SVN 1.14.1
- Terraform 1.4.6
- yamllint 1.31.0
- yq 4.33.3
- zstd 1.5.5
### CLI Tools
- Alibaba Cloud CLI 3.0.163
- AWS CLI 2.11.18
- AWS CLI Session Manager Plugin 1.2.463.0
- AWS SAM CLI 1.82.0
- Azure CLI 2.48.1
- Azure CLI (azure-devops) 0.26.0
- GitHub CLI 2.28.0
- Google Cloud SDK 429.0.0
- Hub CLI 2.14.2
- Netlify CLI 15.0.0
- OpenShift CLI 4.12.15
- ORAS CLI 1.0.0
- Vercel CLI 29.1.1
### Java
| Version | Vendor | Environment Variable |
| ------------------- | --------------- | -------------------- |
| 8.0.362+9 | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.19+7 (default) | Eclipse Temurin | JAVA_HOME_11_X64 |
| 17.0.7+7 | Eclipse Temurin | JAVA_HOME_17_X64 |
### PHP Tools
- PHP: 8.1.2
- Composer 2.5.5
- PHPUnit 8.5.33
```
Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled.
```
### Haskell Tools
- Cabal 3.10.1.0
- GHC 9.6.1
- GHCup 0.1.19.2
- Stack 2.9.3
### Rust Tools
- Cargo 1.69.0
- Rust 1.69.0
- Rustdoc 1.69.0
- Rustup 1.26.0
#### Packages
- Bindgen 0.65.1
- Cargo audit 0.17.5
- Cargo clippy 0.1.69
- Cargo outdated 0.11.2
- Cbindgen 0.24.3
- Rustfmt 1.5.2
### Browsers and Drivers
- Google Chrome 113.0.5672.63
- ChromeDriver 113.0.5672.63
- Chromium 113.0.5672.0
- Microsoft Edge 113.0.1774.35
- Microsoft Edge WebDriver 113.0.1774.35
- Selenium server 4.9.0
- Mozilla Firefox 113.0
- Geckodriver 0.33.0
#### Environment variables
| Name | Value |
| ----------------- | ----------------------------------- |
| CHROMEWEBDRIVER | /usr/local/share/chrome_driver |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/share/gecko_driver |
| SELENIUM_JAR_PATH | /usr/share/java/selenium-server.jar |
### .NET Tools
- .NET Core SDK: 6.0.408, 7.0.105, 7.0.203
- nbgv 3.6.128+518ee610d6
### Databases
- sqlite3 3.37.2
#### PostgreSQL
- PostgreSQL 14.7
```
User: postgres
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'
```
#### MySQL
- MySQL 8.0.32-0ubuntu0.22.04.2
```
User: root
Password: root
MySQL service is disabled by default.
Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'
```
#### MS SQL
- sqlcmd 17.10.0001.1
- SqlPackage 16.1.8089.0
### Cached Tools
#### Go
- 1.18.10
- 1.19.9
- 1.20.4
#### Node.js
- 14.21.3
- 16.20.0
- 18.16.0
#### Python
- 3.7.16
- 3.8.16
- 3.9.16
- 3.10.11
- 3.11.3
#### PyPy
- 3.7.13 [PyPy 7.3.9]
- 3.8.16 [PyPy 7.3.11]
- 3.9.16 [PyPy 7.3.11]
#### Ruby
- 3.1.4
### PowerShell Tools
- PowerShell 7.2.11
#### PowerShell Modules
- Az: 9.3.0
- MarkdownPS: 1.9
- Microsoft.Graph: 1.27.0
- Pester: 5.4.1
- PSScriptAnalyzer: 1.21.0
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ------- | ------- | ------------------------- | ------------- | ---------- |
| apache2 | 2.4.52 | /etc/apache2/apache2.conf | inactive | 80 |
| nginx | 1.18.0 | /etc/nginx/nginx.conf | inactive | 80 |
### Android
| Package Name | Version |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Android Command Line Tools | 9.0 |
| Android Emulator | 32.1.12 |
| Android SDK Build-tools | 33.0.0 33.0.1 33.0.2<br>32.0.0<br>31.0.0<br>30.0.0 30.0.1 30.0.2 30.0.3<br>29.0.0 29.0.1 29.0.2 29.0.3<br>28.0.0 28.0.1 28.0.2 28.0.3<br>27.0.0 27.0.1 27.0.2 27.0.3 |
| Android SDK Platform-Tools | 34.0.1 |
| Android SDK Platforms | android-33-ext5 (rev 1)<br>android-33-ext4 (rev 1)<br>android-33 (rev 2)<br>android-32 (rev 1)<br>android-31 (rev 1)<br>android-30 (rev 3)<br>android-29 (rev 5)<br>android-28 (rev 6)<br>android-27 (rev 3) |
| Android SDK Tools | 26.1.1 |
| Android Support Repository | 47.0.0 |
| CMake | 3.10.2<br>3.18.1<br>3.22.1 |
| Google Play services | 49 |
| Google Repository | 58 |
| NDK | 23.2.8568313<br>24.0.8215888<br>25.2.9519653 (default) |
| SDK Patch Applier v4 | 1 |
#### Environment variables
| Name | Value |
| ----------------------- | ------------------------------------------- |
| ANDROID_HOME | /usr/local/lib/android/sdk |
| ANDROID_NDK | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_NDK_HOME | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_NDK_LATEST_HOME | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_NDK_ROOT | /usr/local/lib/android/sdk/ndk/25.2.9519653 |
| ANDROID_SDK_ROOT | /usr/local/lib/android/sdk |
### Cached Docker images
| Repository:Tag | Digest | Created |
| ----------------------- | ------------------------------------------------------------------------ | ---------- |
| alpine:3.14 | sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed | 2023-03-29 |
| alpine:3.15 | sha256:ecbdce53b2c2f43ab1b19418bcbd3f120a23547d9497030c8d978114512b883e | 2023-03-29 |
| alpine:3.16 | sha256:c2b622f6e510a0d25bccaffa9e67b75a6860cb09b74bb58cfc36a9ef4331109f | 2023-03-29 |
| alpine:3.17 | sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 | 2023-03-29 |
| buildpack-deps:bullseye | sha256:373587e78550f0918d16b793d1ead24c3f489a14c3af85da1096e2a683908e0c | 2023-05-03 |
| buildpack-deps:buster | sha256:bfefe2afb02a82c76d955f2c158b3b5aa96e7afcf262727e8f37ccdea60a39c5 | 2023-05-03 |
| debian:10 | sha256:cca6bcced970f7634197ff1821aabb452024eb437958ab98bfc146ece96969c6 | 2023-05-02 |
| debian:11 | sha256:63d62ae233b588d6b426b7b072d79d1306bfd02a72bff1fc045b8511cc89ee09 | 2023-05-02 |
| moby/buildkit:latest | sha256:d6fa89830c26919acba23c5cafa09df0c3ec1fbde20bb2a15ff349e0795241f4 | 2023-04-20 |
| node:14 | sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa | 2023-04-12 |
| node:14-alpine | sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33 | 2023-03-29 |
| node:16 | sha256:550f484fc5f314b575f5e397c9e2c71d7f218e59729fcda9ffa7ea1fc825dce7 | 2023-05-04 |
| node:16-alpine | sha256:f1657204d3463bce763cefa5b25e48c28af6fe0cdb0f68b354f0f8225ef61be7 | 2023-03-29 |
| node:18 | sha256:3f567a26b6b6d601fb2b168d4f987b50697617ead15bfc0e0152e600ac48d0fe | 2023-05-04 |
| node:18-alpine | sha256:1ccc70acda680aa4ba47f53e7c40b2d4d6892de74817128e0662d32647dd7f4d | 2023-04-13 |
| ubuntu:18.04 | sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de607da1cec3a8a2fae005931b | 2023-03-08 |
| ubuntu:20.04 | sha256:db8bf6f4fb351aa7a26e27ba2686cf35a6a409f65603e59d4c203e58387dc6b3 | 2023-04-13 |
| ubuntu:22.04 | sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf | 2023-04-25 |
### Installed apt packages
| Name | Version |
| ---------------------- | ----------------------------------- |
| acl | 2.3.1-1 |
| aria2 | 1.36.0-1 |
| autoconf | 2.71-2 |
| automake | 1:1.16.5-1.3 |
| binutils | 2.38-4ubuntu2.1 |
| bison | 2:3.8.2+dfsg-1build1 |
| brotli | 1.0.9-2build6 |
| build-essential | 12.9ubuntu3 |
| bzip2 | 1.0.8-5build1 |
| coreutils | 8.32-4.1ubuntu1 |
| curl | 7.81.0-1ubuntu1.10 |
| dbus | 1.12.20-2ubuntu4.1 |
| dnsutils | 1:9.18.12-0ubuntu0.22.04.1 |
| dpkg | 1.21.1ubuntu2.1 |
| fakeroot | 1.28-1ubuntu1 |
| file | 1:5.41-3 |
| flex | 2.6.4-8build2 |
| fonts-noto-color-emoji | 2.038-0ubuntu1 |
| ftp | 20210827-4build1 |
| gnupg2 | 2.2.27-3ubuntu2.1 |
| haveged | 1.9.14-1ubuntu1 |
| imagemagick | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3 |
| iproute2 | 5.15.0-1ubuntu2 |
| iputils-ping | 3:20211215-1 |
| jq | 1.6-2.1ubuntu3 |
| lib32z1 | 1:1.2.11.dfsg-2ubuntu9.2 |
| libc++-dev | 1:14.0-55\~exp2 |
| libc++abi-dev | 1:14.0-55\~exp2 |
| libcurl4 | 7.81.0-1ubuntu1.10 |
| libgbm-dev | 22.2.5-0ubuntu0.1\~22.04.1 |
| libgconf-2-4 | 3.2.6-7ubuntu2 |
| libgsl-dev | 2.7.1+dfsg-3 |
| libgtk-3-0 | 3.24.33-1ubuntu2 |
| libmagic-dev | 1:5.41-3 |
| libmagickcore-dev | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3 |
| libmagickwand-dev | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3 |
| libsecret-1-dev | 0.20.5-2 |
| libsqlite3-dev | 3.37.2-2ubuntu0.1 |
| libssl-dev | 3.0.2-0ubuntu1.9 |
| libtool | 2.4.6-15build2 |
| libunwind8 | 1.3.2-2build2 |
| libxkbfile-dev | 1:1.1.0-1build3 |
| libxss1 | 1:1.2.3-1build2 |
| libyaml-dev | 0.2.2-1build2 |
| locales | 2.35-0ubuntu3.1 |
| lz4 | 1.9.3-2build2 |
| m4 | 1.4.18-5ubuntu2 |
| mediainfo | 22.03-1 |
| mercurial | 6.1.1-1ubuntu1 |
| net-tools | 1.60+git20181103.0eebece-1ubuntu5 |
| netcat | 1.218-4ubuntu1 |
| openssh-client | 1:8.9p1-3ubuntu0.1 |
| p7zip-full | 16.02+dfsg-8 |
| p7zip-rar | 16.02-3build1 |
| parallel | 20210822+ds-2 |
| pass | 1.7.4-5 |
| patchelf | 0.14.3-1 |
| pkg-config | 0.29.2-1ubuntu3 |
| pollinate | 4.33-3ubuntu2 |
| python-is-python3 | 3.9.2-2 |
| rpm | 4.17.0+dfsg1-4build1 |
| rsync | 3.2.7-0ubuntu0.22.04.2 |
| shellcheck | 0.8.0-2 |
| sphinxsearch | 2.2.11-8 |
| sqlite3 | 3.37.2-2ubuntu0.1 |
| ssh | 1:8.9p1-3ubuntu0.1 |
| sshpass | 1.09-1 |
| subversion | 1.14.1-3ubuntu0.22.04.1 |
| sudo | 1.9.9-1ubuntu2.4 |
| swig | 4.0.2-1ubuntu1 |
| tar | 1.34+dfsg-1ubuntu0.1.22.04.1 |
| telnet | 0.17-44build1 |
| texinfo | 6.8-4build1 |
| time | 1.9-0.1build2 |
| tk | 8.6.11+1build2 |
| tzdata | 2023c-0ubuntu0.22.04.1 |
| unzip | 6.0-26ubuntu3.1 |
| upx | 3.96-3 |
| wget | 1.21.2-2ubuntu1 |
| xorriso | 1.5.4-2 |
| xvfb | 2:21.1.4-2ubuntu1.7\~22.04.1 |
| xz-utils | 5.2.5-2ubuntu1 |
| zip | 3.0-12build2 |
| zsync | 0.6.2-3ubuntu1 |
-2
View File
@@ -1,2 +0,0 @@
# Name of the pool supported by this image
POOL_NAME="Ubuntu 1604"
@@ -1,2 +1,2 @@
# Name of pool supported by this image
POOL_NAME="Ubuntu 1804"
POOL_NAME="Ubuntu 2204"
@@ -0,0 +1,6 @@
#!/bin/bash
# Replace $HOME with the default user's home directory for environmental variables related to the default user home directory
homeDir=$(cut -d: -f6 /etc/passwd | tail -1)
sed -i "s|\$HOME|$homeDir|g" /etc/environment
@@ -1,18 +0,0 @@
#!/bin/bash
# Fix permissions for Homebrew
# https://github.com/actions/virtual-environments/issues/1568
# Reset brew repository directory to make the brew clean after chmoding /home
cd $(brew --repo)
git reset --hard
brew_folder="/home/linuxbrew/"
homebrew_user=$(cut -d: -f1 /etc/passwd | tail -1)
if [ -d "$brew_folder" ]; then
brew_folder_owner=$(ls -ld $brew_folder | awk '{print $3}')
if [ "$homebrew_user" != "$brew_folder_owner" ]; then
chown "$homebrew_user":docker -R $brew_folder
fi
fi
@@ -1,14 +0,0 @@
#!/bin/bash
# Fix permissions for the Rust folder
# https://github.com/actions/virtual-environments/issues/572
rust_folder="/usr/share/rust"
rust_user=$(cut -d: -f1 /etc/passwd | tail -1)
if [ -d "$rust_folder" ]; then
rust_folder_owner=$(ls -ld $rust_folder | awk '{print $3}')
if [ "$rust_user" != "$rust_folder_owner" ]; then
chown "$rust_user":docker -R $rust_folder
fi
fi
@@ -0,0 +1,5 @@
#!/bin/bash
# Enable user session on boot, not on login
UserId=$(cut -d: -f3 /etc/passwd | tail -1)
loginctl enable-linger $UserId
@@ -11,21 +11,13 @@ function Get-AndroidSDKRoot {
function Get-AndroidSDKManagerPath {
$androidSDKDir = Get-AndroidSDKRoot
return Join-Path $androidSDKDir "tools" "bin" "sdkmanager"
return Join-Path $androidSDKDir "cmdline-tools" "latest" "bin" "sdkmanager"
}
function Get-AndroidInstalledPackages {
$androidSDKManagerPath = Get-AndroidSDKManagerPath
$androidSDKManagerList = Invoke-Expression "$androidSDKManagerPath --list --include_obsolete"
$androidInstalledPackages = @()
foreach($packageInfo in $androidSDKManagerList) {
if($packageInfo -Match "Available Packages:") {
break
}
$androidInstalledPackages += $packageInfo
}
return $androidInstalledPackages
$androidSDKManagerList = Invoke-Expression "$androidSDKManagerPath --list_installed --include_obsolete"
return $androidSDKManagerList
}
@@ -33,37 +25,41 @@ function Build-AndroidTable {
$packageInfo = Get-AndroidInstalledPackages
return @(
@{
"Package" = "Android SDK Platform-Tools"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android SDK Platform-Tools"
"Package" = "Android Command Line Tools"
"Version" = Get-AndroidCommandLineToolsVersion
},
@{
"Package" = "Android SDK Tools"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android SDK Tools"
},
@{
"Package" = "Android SDK Platforms"
"Version" = Get-AndroidPlatformVersions -PackageInfo $packageInfo
"Package" = "Android Emulator"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android Emulator"
},
@{
"Package" = "Android SDK Build-tools"
"Version" = Get-AndroidBuildToolVersions -PackageInfo $packageInfo
},
@{
"Package" = "Android emulator"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android Emulator"
"Package" = "Android SDK Platform-Tools"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android SDK Platform-Tools"
},
@{
"Package" = "Google APIs"
"Version" = Get-AndroidGoogleAPIsVersions -PackageInfo $packageInfo
"Package" = "Android SDK Platforms"
"Version" = Get-AndroidPlatformVersions -PackageInfo $packageInfo
},
@{
"Package" = "NDK"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "ndk-bundle"
"Package" = "Android SDK Tools"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android SDK Tools"
},
@{
"Package" = "Android Support Repository"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android Support Repository"
},
@{
"Package" = "CMake"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "cmake"
},
@{
"Package" = "Google APIs"
"Version" = Get-AndroidGoogleAPIsVersions -PackageInfo $packageInfo
},
@{
"Package" = "Google Play services"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Google Play services"
@@ -73,12 +69,12 @@ function Build-AndroidTable {
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Google Repository"
},
@{
"Package" = "SDK Patch Applier v4"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "SDK Patch Applier v4"
"Package" = "NDK"
"Version" = Get-AndroidNDKVersions
},
@{
"Package" = "CMake"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "cmake"
"Package" = "SDK Patch Applier v4"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "SDK Patch Applier v4"
}
) | Where-Object { $_.Version } | ForEach-Object {
[PSCustomObject] @{
@@ -119,6 +115,13 @@ function Get-AndroidPlatformVersions {
return ($versions -Join "<br>")
}
function Get-AndroidCommandLineToolsVersion {
$commandLineTools = Get-AndroidSDKManagerPath
(& $commandLineTools --version | Out-String).Trim() -match "(?<version>^(\d+\.){1,}\d+$)" | Out-Null
$commandLineToolsVersion = $Matches.Version
return $commandLineToolsVersion
}
function Get-AndroidBuildToolVersions {
param (
[Parameter(Mandatory)]
@@ -150,3 +153,26 @@ function Get-AndroidGoogleAPIsVersions {
return ($versions -Join "<br>")
}
function Get-AndroidNDKVersions {
$ndkFolderPath = Join-Path (Get-AndroidSDKRoot) "ndk"
$versions = Get-ChildItem -Path $ndkFolderPath -Name
$ndkDefaultVersion = Get-ToolsetValue "android.ndk.default"
$ndkDefaultFullVersion = Get-ChildItem "$env:ANDROID_HOME/ndk/$ndkDefaultVersion.*" -Name | Select-Object -Last 1
return ($versions | ForEach-Object {
$defaultPostfix = ( $_ -eq $ndkDefaultFullVersion ) ? " (default)" : ""
$_ + $defaultPostfix
} | Join-String -Separator "<br>")
}
function Build-AndroidEnvironmentTable {
$androidVersions = Get-Item env:ANDROID_*
$shouldResolveLink = 'ANDROID_NDK', 'ANDROID_NDK_HOME', 'ANDROID_NDK_ROOT', 'ANDROID_NDK_LATEST_HOME'
return $androidVersions | Sort-Object -Property Name | ForEach-Object {
[PSCustomObject] @{
"Name" = $_.Name
"Value" = if ($shouldResolveLink.Contains($_.Name )) { Get-PathWithLink($_.Value) } else {$_.Value}
}
}
}
@@ -1,19 +1,61 @@
function Get-ChromeVersion {
$googleChromeVersion = google-chrome --version | Take-OutputPart -Part 2
return "Google Chrome $googleChromeVersion"
return $googleChromeVersion
}
function Get-ChromeDriverVersion {
$chromeDriverVersion = chromedriver --version | Take-OutputPart -Part 1
return "ChromeDriver $chromeDriverVersion"
return $chromeDriverVersion
}
function Get-FirefoxVersion {
$firefoxVersion = firefox --version
$firefoxVersion = $(firefox --version) | Take-OutputPart -Part 2
return $firefoxVersion
}
function Get-GeckodriverVersion {
$geckodriverVersion = geckodriver --version | Select-Object -First 1 | Take-OutputPart -Part 1
return "Geckodriver $geckodriverVersion"
}
return $geckodriverVersion
}
function Get-ChromiumVersion {
$chromiumVersion = chromium-browser --version | Take-OutputPart -Part 1
return $chromiumVersion
}
function Get-EdgeVersion {
$edgeVersion = (microsoft-edge --version).Trim() | Take-OutputPart -Part 2
return $edgeVersion
}
function Get-EdgeDriverVersion {
$edgeDriverVersion = msedgedriver --version | Take-OutputPart -Part 3
return $edgeDriverVersion
}
function Get-SeleniumVersion {
$seleniumBinaryName = Get-ToolsetValue "selenium.binary_name"
$fullSeleniumVersion = (Get-ChildItem "/usr/share/java/${seleniumBinaryName}-*").Name -replace "${seleniumBinaryName}-"
return $fullSeleniumVersion
}
function Build-BrowserWebdriversEnvironmentTable {
return @(
[PSCustomObject] @{
"Name" = "CHROMEWEBDRIVER"
"Value" = $env:CHROMEWEBDRIVER
},
[PSCustomObject] @{
"Name" = "EDGEWEBDRIVER"
"Value" = $env:EDGEWEBDRIVER
},
[PSCustomObject] @{
"Name" = "GECKOWEBDRIVER"
"Value" = $env:GECKOWEBDRIVER
},
[PSCustomObject] @{
"Name" = "SELENIUM_JAR_PATH"
"Value" = $env:SELENIUM_JAR_PATH
}
)
}
+1 -36
View File
@@ -13,7 +13,7 @@ function Get-ToolcachePyPyVersions {
Get-ChildItem -Path $toolcachePath -Name | Sort-Object { [Version] $_ } | ForEach-Object {
$pypyRootPath = Join-Path $toolcachePath $_ "x64"
[string]$pypyVersionOutput = & "$pypyRootPath/bin/python" -c "import sys;print(sys.version)"
$pypyVersionOutput -match "^([\d\.]+) \(.+\) \[PyPy ([\d\.]+) .+]$" | Out-Null
$pypyVersionOutput -match "^([\d\.]+) \(.+\) \[PyPy ([\d\.]+\S*) .+]$" | Out-Null
return "{0} [PyPy {1}]" -f $Matches[1], $Matches[2]
}
}
@@ -27,38 +27,3 @@ function Get-ToolcacheGoVersions {
$toolcachePath = Join-Path $env:AGENT_TOOLSDIRECTORY "go"
return Get-ChildItem $toolcachePath -Name | Sort-Object { [Version]$_ }
}
function Get-ToolcacheBoostVersions {
$toolcachePath = Join-Path $env:AGENT_TOOLSDIRECTORY "boost"
if (-not (Test-Path $toolcachePath)) {
return @()
}
return Get-ChildItem $toolcachePath -Name | Sort-Object { [Version]$_ }
}
function Build-CachedToolsSection {
$output = ""
$output += New-MDHeader "Ruby" -Level 4
$output += New-MDList -Lines (Get-ToolcacheRubyVersions) -Style Unordered
$output += New-MDHeader "Python" -Level 4
$output += New-MDList -Lines (Get-ToolcachePythonVersions) -Style Unordered
$output += New-MDHeader "PyPy" -Level 4
$output += New-MDList -Lines (Get-ToolcachePyPyVersions) -Style Unordered
$output += New-MDHeader "Node.js" -Level 4
$output += New-MDList -Lines (Get-ToolcacheNodeVersions) -Style Unordered
$output += New-MDHeader "Go" -Level 4
$output += New-MDList -Lines (Get-ToolcacheGoVersions) -Style Unordered
$boostVersions = Get-ToolcacheBoostVersions
if ($boostVersions.Count -gt 0) {
$output += New-MDHeader "Boost" -Level 4
$output += New-MDList -Lines $boostVersions -Style Unordered
}
return $output
}
@@ -1,7 +1,11 @@
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Helpers.psm1") -DisableNameChecking
function Get-BashVersion {
$version = bash -c 'echo ${BASH_VERSION}'
return $version
}
function Get-OSName {
lsb_release -ds
function Get-DashVersion {
$version = dpkg-query -W -f '${Version}' dash
return $version
}
function Get-CPPVersions {
@@ -9,7 +13,7 @@ function Get-CPPVersions {
$cppVersions = $result.Output | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
& $_.Split("/")[0] --version | Select-Object -First 1 | Take-OutputPart -Part 3
} | Sort-Object {[Version]$_}
return "GNU C++ " + ($cppVersions -Join ", ")
return $cppVersions
}
function Get-FortranVersions {
@@ -18,167 +22,212 @@ function Get-FortranVersions {
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
$Matches.version
} | Sort-Object {[Version]$_}
return "GNU Fortran " + ($fortranVersions -Join ", ")
return $fortranVersions
}
function Get-ClangVersions {
$clangVersions = @()
function Get-ClangToolVersions {
param (
[Parameter(Mandatory = $true)]
[string] $ToolName,
[string] $VersionLineMatcher = "${ToolName} version",
[string] $VersionPattern = "\d+\.\d+\.\d+)-"
)
$result = Get-CommandResult "apt list --installed" -Multiline
$clangVersions = $result.Output | Where-Object { $_ -match "^clang-\d+"} | ForEach-Object {
$toolVersions = $result.Output | Where-Object { $_ -match "^${ToolName}-\d+"} | ForEach-Object {
$clangCommand = ($_ -Split "/")[0]
Invoke-Expression "$clangCommand --version" | Where-Object { $_ -match "clang version" } | ForEach-Object {
$_ -match "clang version (?<version>\d+\.\d+\.\d+)-" | Out-Null
Invoke-Expression "$clangCommand --version" | Where-Object { $_ -match "${VersionLineMatcher}" } | ForEach-Object {
$_ -match "${VersionLineMatcher} (?<version>${VersionPattern}" | Out-Null
$Matches.version
}
} | Sort-Object {[Version]$_}
return "Clang " + ($clangVersions -Join ", ")
}
} | Sort-Object {[Version]$_}
return $toolVersions
}
function Get-ClangTidyVersions {
return Get-ClangToolVersions -ToolName "clang-tidy" -VersionLineMatcher "LLVM version" -VersionPattern "\d+\.\d+\.\d+)"
}
function Get-ErlangVersion {
$version = (erl -eval 'erlang:display(erlang:system_info(version)), halt().' -noshell).Trim('"')
return "Erlang $version"
$erlangVersion = (erl -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), ''OTP_VERSION''])), io:fwrite(Version), halt().' -noshell)
$shellVersion = (erl -eval 'erlang:display(erlang:system_info(version)), halt().' -noshell).Trim('"')
return "$erlangVersion (Eshell $shellVersion)"
}
function Get-ErlangRebar3Version {
$result = Get-CommandResult "rebar3 --version"
$result.Output -match "rebar (?<version>(\d+.){2}\d+)" | Out-Null
return $Matches.version
}
function Get-MonoVersion {
$monoVersion = mono --version | Out-String | Take-OutputPart -Part 4
return "Mono $monoVersion"
return $monoVersion
}
function Get-MsbuildVersion {
$msbuildVersion = msbuild -version | Select-Object -Last 1
$monoVersion = Get-MonoVersion
return "$msbuildVersion (Mono $monoVersion)"
}
function Get-NuGetVersion {
$nugetVersion = nuget help | Select-Object -First 1 | Take-OutputPart -Part 2
return $nugetVersion
}
function Get-NodeVersion {
$nodeVersion = $(node --version).Substring(1)
return "Node $nodeVersion"
return $nodeVersion
}
function Get-OpensslVersion {
return $(dpkg-query -W -f '${Version}' openssl)
}
function Get-PerlVersion {
$version = $(perl -e 'print substr($^V,1)')
return "Perl $version"
return $version
}
function Get-PythonVersion {
$result = Get-CommandResult "python --version"
$version = $result.Output | Take-OutputPart -Part 1
return "Python $version"
return $version
}
function Get-Python3Version {
$result = Get-CommandResult "python3 --version"
$version = $result.Output | Take-OutputPart -Part 1
return "Python3 $version"
return $version
}
function Get-PowershellVersion {
return $(pwsh --version)
return $(pwsh --version) | Take-OutputPart -Part 1
}
function Get-RubyVersion {
$rubyVersion = ruby --version | Out-String | Take-OutputPart -Part 1
return "Ruby $rubyVersion"
return $rubyVersion
}
function Get-SwiftVersion {
$swiftVersion = swift --version | Out-String | Take-OutputPart -Part 2
return "Swift $swiftVersion"
return $swiftVersion
}
function Get-KotlinVersion {
$kotlinVersion = kotlin -version | Out-String | Take-OutputPart -Part 2
return $kotlinVersion
}
function Get-JuliaVersion {
$juliaVersion = julia --version | Take-OutputPart -Part 2
return "Julia $juliaVersion"
return $juliaVersion
}
function Get-LernaVersion {
$version = lerna -v
return $version
}
function Get-HomebrewVersion {
$result = Get-CommandResult "brew -v"
$result = Get-CommandResult "/home/linuxbrew/.linuxbrew/bin/brew -v"
$result.Output -match "Homebrew (?<version>\d+\.\d+\.\d+)" | Out-Null
$version = $Matches.version
return "Homebrew $version"
return $Matches.version
}
function Get-CpanVersion {
$result = Get-CommandResult "cpan --version" -ExpectExitCode @(25, 255)
$result.Output -match "version (?<version>\d+\.\d+) " | Out-Null
return $Matches.version
}
function Get-GemVersion {
$result = Get-CommandResult "gem --version"
$result.Output -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
$gemVersion = $Matches.version
return "Gem $gemVersion"
return $Matches.version
}
function Get-MinicondaVersion {
$condaVersion = conda --version
return "Mini$condaVersion"
$condaVersion = conda --version | Take-OutputPart -Part 1
return $condaVersion
}
function Get-HelmVersion {
$(helm version) -match 'Version:"v(?<version>\d+\.\d+\.\d+)"' | Out-Null
$helmVersion = $Matches.version
return "Helm $helmVersion"
return $Matches.version
}
function Get-NpmVersion {
$npmVersion = npm --version
return "Npm $npmVersion"
return $npmVersion
}
function Get-YarnVersion {
$yarnVersion = yarn --version
return "Yarn $yarnVersion"
return $yarnVersion
}
function Get-ParcelVersion {
$parcelVersion = parcel --version
return $parcelVersion
}
function Get-PipVersion {
$result = Get-CommandResult "pip --version"
$result.Output -match "pip (?<version>\d+\.\d+\.\d+)" | Out-Null
$pipVersion = $Matches.version
return "Pip $pipVersion"
return $Matches.version
}
function Get-Pip3Version {
$result = Get-CommandResult "pip3 --version"
$result.Output -match "pip (?<version>\d+\.\d+\.\d+)" | Out-Null
$pipVersion = $Matches.version
return "Pip3 $pipVersion"
return $Matches.version
}
function Get-VcpkgVersion {
$result = Get-CommandResult "vcpkg version"
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$vcpkgVersion = $Matches.version
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
return "(build from commit $commitId)"
}
function Get-AntVersion {
$result = ant -version | Out-String
$result -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$antVersion = $Matches.version
return "Ant $antVersion"
return $Matches.version
}
function Get-GradleVersion {
$gradleVersion = (gradle -v) -match "^Gradle \d" | Take-OutputPart -Part 1
return "Gradle $gradleVersion"
return $gradleVersion
}
function Get-MavenVersion {
$result = mvn -version | Out-String
$result -match "Apache Maven (?<version>\d+\.\d+\.\d+)" | Out-Null
$mavenVersion = $Matches.version
return "Maven $mavenVersion"
return $Matches.version
}
function Get-SbtVersion {
$result = Get-CommandResult "sbt -version"
$result.Output -match "sbt script version: (?<version>\d+\.\d+\.\d+)" | Out-Null
$sbtVersion = $Matches.version
return "Sbt $sbtVersion"
return $Matches.version
}
function Get-PHPVersions {
$result = Get-CommandResult "apt list --installed" -Multiline
return $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object {
$_ -match "now (?<version>\d+\.\d+\.\d+)-" | Out-Null
$_ -match "now (\d+:)?(?<version>\d+\.\d+\.\d+)" | Out-Null
$Matches.version
}
}
function Get-ComposerVersion {
$(composer --version) -match "Composer version (?<version>\d+\.\d+\.\d+)\s" | Out-Null
return $Matches.version
$composerVersion = (composer --version) -replace " version" | Take-OutputPart -Part 1
return $composerVersion
}
function Get-PHPUnitVersion {
@@ -186,43 +235,24 @@ function Get-PHPUnitVersion {
return $Matches.version
}
function Build-PHPTable {
$php = @{
"Tool" = "PHP"
"Version" = "$(Get-PHPVersions -Join '<br>')"
}
$composer = @{
"Tool" = "Composer"
"Version" = Get-ComposerVersion
}
$phpunit = @{
"Tool" = "PHPUnit"
"Version" = Get-PHPUnitVersion
}
return @($php, $composer, $phpunit) | ForEach-Object {
[PSCustomObject] @{
"Tool" = $_.Tool
"Version" = $_.Version
}
}
}
function Get-GHCVersion {
$(ghc --version) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$ghcVersion = $Matches.version
return "GHC $ghcVersion"
return $Matches.version
}
function Get-GHCupVersion {
$(ghcup --version) -match "version (?<version>\d+(\.\d+){2,})" | Out-Null
return $Matches.version
}
function Get-CabalVersion {
$(cabal --version | Out-String) -match "cabal-install version (?<version>\d+\.\d+\.\d+\.\d+)" | Out-Null
$cabalVersion = $Matches.version
return "Cabal $cabalVersion"
return $Matches.version
}
function Get-StackVersion {
$(stack --version | Out-String) -match "Version (?<version>\d+\.\d+\.\d+)" | Out-Null
$stackVersion = $Matches.version
return "Stack $stackVersion"
return $Matches.version
}
function Get-AzModuleVersions {
@@ -235,26 +265,42 @@ function Get-AzModuleVersions {
}
function Get-PowerShellModules {
$modules = (Get-ToolsetContent).powershellModules.name
[Array] $result = @()
$psModules = Get-Module -Name $modules -ListAvailable | Sort-Object Name | Group-Object Name
$psModules | ForEach-Object {
$moduleName = $_.Name
$moduleVersions = ($_.group.Version | Sort-Object -Unique) -join '<br>'
[PSCustomObject]@{
Module = $moduleName
Version = $moduleVersions
}
[Array] $azureInstalledModules = Get-ChildItem -Path "/usr/share/az_*" -Directory | ForEach-Object { $_.Name.Split("_")[1] }
if ($azureInstalledModules.Count -gt 0) {
$result += [ToolVersionsListNode]::new("Az", $azureInstalledModules, "^\d+\.\d+", "Inline")
}
[Array] $azureCachedModules = Get-ChildItem /usr/share/az_*.zip -File | ForEach-Object { $_.Name.Split("_")[1] }
if ($azureCachedModules.Count -gt 0) {
$result += [ToolVersionsListNode]::new("Az (Cached)", $azureCachedModules, "^\d+\.\d+", "Inline")
}
(Get-ToolsetContent).powershellModules.name | ForEach-Object {
$moduleName = $_
$moduleVersions = Get-Module -Name $moduleName -ListAvailable | Select-Object -ExpandProperty Version | Sort-Object -Unique
$result += [ToolVersionsListNode]::new($moduleName, $moduleVersions, "^\d+", "Inline")
}
return $result
}
function Get-DotNetCoreSdkVersions {
$unsortedDotNetCoreSdkVersion = dotnet --list-sdks list | ForEach-Object { $_ | Take-OutputPart -Part 0 }
$dotNetCoreSdkVersion = $unsortedDotNetCoreSdkVersion -join " "
$dotNetCoreSdkVersion = dotnet --list-sdks list | ForEach-Object { $_ | Take-OutputPart -Part 0 }
return $dotNetCoreSdkVersion
}
function Get-DotnetTools {
$env:PATH = "/etc/skel/.dotnet/tools:$($env:PATH)"
$dotnetTools = (Get-ToolsetContent).dotnet.tools
return $dotnetTools | ForEach-Object {
$version = Invoke-Expression $_.getversion
return [ToolVersionNode]::new($_.name, $version)
}
}
function Get-CachedDockerImages {
$toolsetJson = Get-ToolsetContent
$images = $toolsetJson.docker.images
@@ -262,26 +308,57 @@ function Get-CachedDockerImages {
}
function Get-CachedDockerImagesTableData {
return (sudo docker images --digests --format "*{{.Repository}}:{{.Tag}}|{{.Digest}} |{{.CreatedAt}}").Split("*") | Where-Object { $_ } | ForEach-Object {
$parts=$_.Split("|")
[PSCustomObject] @{
"Repository:Tag" = $parts[0]
"Digest" = $parts[1]
"Created" = $parts[2].split(' ')[0]
}
}
$allImages = sudo docker images --digests --format "*{{.Repository}}:{{.Tag}}|{{.Digest}} |{{.CreatedAt}}"
$allImages.Split("*") | Where-Object { $_ } | ForEach-Object {
$parts = $_.Split("|")
[PSCustomObject] @{
"Repository:Tag" = $parts[0]
"Digest" = $parts[1]
"Created" = $parts[2].split(' ')[0]
}
} | Sort-Object -Property "Repository:Tag"
}
function Get-AptPackages {
$toolsetJson = Get-ToolsetContent
$apt = $toolsetJson.apt
$pkgs = ($apt.common_packages + $apt.cmd_packages | Sort-Object) -join ", "
return $pkgs
$apt = (Get-ToolsetContent).Apt
$output = @()
ForEach ($pkg in ($apt.common_packages + $apt.cmd_packages)) {
$version = $(dpkg-query -W -f '${Version}' $pkg)
if ($Null -eq $version) {
$version = $(dpkg-query -W -f '${Version}' "$pkg*")
}
$version = $version -replace '~','\~'
$output += [PSCustomObject] @{
Name = $pkg
Version = $version
}
}
return ($output | Sort-Object Name)
}
function Get-PipxVersion {
$result = (Get-CommandResult "pipx --version").Output
$result -match "(?<version>\d+\.\d+\.\d+\.?\d*)" | Out-Null
$pipxVersion = $Matches.Version
return "Pipx $pipxVersion"
return $Matches.Version
}
function Build-PackageManagementEnvironmentTable {
return @(
[PSCustomObject] @{
"Name" = "CONDA"
"Value" = $env:CONDA
},
[PSCustomObject] @{
"Name" = "VCPKG_INSTALLATION_ROOT"
"Value" = $env:VCPKG_INSTALLATION_ROOT
}
)
}
function Get-SystemdVersion {
$matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)")
$result = foreach ($match in $matches) {$match.Groups[1].Value}
return $result
}
@@ -1,50 +1,61 @@
function Get-PostgreSqlVersion {
$postgreSQLVersion = psql --version | Take-OutputPart -Part 2
return "Postgre SQL $postgreSQLVersion"
return $postgreSQLVersion
}
function Get-MongoDbVersion {
$mongoDBVersion = mongod --version | Select-Object -First 1 | Take-OutputPart -Part 2 -Delimiter "v"
return "MongoDB $mongoDBVersion"
return $mongoDBVersion
}
function Get-SqliteVersion {
$sqliteVersion = sqlite3 --version | Take-OutputPart -Part 0
return "sqlite3 $sqliteVersion"
return $sqliteVersion
}
function Get-MySQLVersion {
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "-"
return "MySQL $mySQLVersion"
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2
return $mySQLVersion
}
function Get-SQLCmdVersion {
$sqlcmdVersion = sqlcmd -? | Select-String -Pattern "Version" | Take-OutputPart -Part 1
return "sqlcmd $sqlcmdVersion"
return $sqlcmdVersion
}
function Get-SqlPackageVersion {
$sqlPackageVersion = sqlpackage /version
return $sqlPackageVersion
}
function Build-PostgreSqlSection {
$node = [HeaderNode]::new("PostgreSQL")
$node.AddToolVersion("PostgreSQL", $(Get-PostgreSqlVersion))
$node.AddNote(@(
"User: postgres",
"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'"
) -join "`n")
return $node
}
function Build-MySQLSection {
$output = ""
$node = [HeaderNode]::new("MySQL")
$node.AddToolVersion("MySQL", $(Get-MySQLVersion))
$node.AddNote(@(
"User: root",
"Password: root",
"MySQL service is disabled by default.",
"Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'"
) -join "`n")
$output += New-MDHeader "MySQL" -Level 4
$output += New-MDList -Style Unordered -Lines @(
(Get-MySQLVersion ),
"MySQL Server (user:root password:root)"
)
$output += New-MDCode -Lines @(
"MySQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'"
)
return $output
return $node
}
function Build-MSSQLToolsSection {
$output = ""
$output += New-MDHeader "MS SQL Server Client Tools" -Level 4
$output += New-MDList -Style Unordered -Lines @(
(Get-SQLCmdVersion)
)
return $output
}
$node = [HeaderNode]::new("MS SQL")
$node.AddToolVersion("sqlcmd", $(Get-SQLCmdVersion))
$node.AddToolVersion("SqlPackage", $(Get-SqlPackageVersion))
return $node
}
@@ -1,235 +1,243 @@
using module ./software-report-base/SoftwareReport.psm1
using module ./software-report-base/SoftwareReport.Nodes.psm1
param (
[Parameter(Mandatory)][string]
$OutputDirectory
)
$ErrorActionPreference = "Stop"
$global:ErrorActionPreference = "Stop"
$global:ErrorView = "NormalView"
Set-StrictMode -Version Latest
Import-Module MarkdownPS
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Android.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Browsers.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.CachedTools.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Common.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Databases.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Helpers.psm1") -DisableNameChecking
Import-Module "$PSScriptRoot/../helpers/SoftwareReport.Helpers.psm1" -DisableNameChecking
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1" -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Java.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Rust.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Tools.psm1") -DisableNameChecking
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.WebServers.psm1") -DisableNameChecking
# Restore file owner in user profile
Restore-UserOwner
$markdown = ""
# Software report
$softwareReport = [SoftwareReport]::new("Ubuntu $(Get-OSVersionShort)")
$softwareReport.Root.AddToolVersion("OS Version:", $(Get-OSVersionFull))
$softwareReport.Root.AddToolVersion("Kernel Version:", $(Get-KernelVersion))
$softwareReport.Root.AddToolVersion("Image Version:", $env:IMAGE_VERSION)
$softwareReport.Root.AddToolVersion("Systemd version:", $(Get-SystemdVersion))
$OSName = Get-OSName
$markdown += New-MDHeader "$OSName" -Level 1
$installedSoftware = $softwareReport.Root.AddHeader("Installed Software")
$markdown += New-MDList -Style Unordered -Lines @(
"Image Version: $env:IMAGE_VERSION"
)
# Language and Runtime
$languageAndRuntime = $installedSoftware.AddHeader("Language and Runtime")
$languageAndRuntime.AddToolVersion("Bash", $(Get-BashVersion))
$languageAndRuntime.AddToolVersionsListInline("Clang", $(Get-ClangToolVersions -ToolName "clang"), "^\d+")
$languageAndRuntime.AddToolVersionsListInline("Clang-format", $(Get-ClangToolVersions -ToolName "clang-format"), "^\d+")
$languageAndRuntime.AddToolVersionsListInline("Clang-tidy", $(Get-ClangTidyVersions), "^\d+")
$languageAndRuntime.AddToolVersion("Dash", $(Get-DashVersion))
if (Test-IsUbuntu20) {
$languageAndRuntime.AddToolVersion("Erlang", $(Get-ErlangVersion))
$languageAndRuntime.AddToolVersion("Erlang rebar3", $(Get-ErlangRebar3Version))
}
$languageAndRuntime.AddToolVersionsListInline("GNU C++", $(Get-CPPVersions), "^\d+")
$languageAndRuntime.AddToolVersionsListInline("GNU Fortran", $(Get-FortranVersions), "^\d+")
$languageAndRuntime.AddToolVersion("Julia", $(Get-JuliaVersion))
$languageAndRuntime.AddToolVersion("Kotlin", $(Get-KotlinVersion))
$languageAndRuntime.AddToolVersion("Mono", $(Get-MonoVersion))
$languageAndRuntime.AddToolVersion("MSBuild", $(Get-MsbuildVersion))
$languageAndRuntime.AddToolVersion("Node.js", $(Get-NodeVersion))
$languageAndRuntime.AddToolVersion("Perl", $(Get-PerlVersion))
$languageAndRuntime.AddToolVersion("Python", $(Get-PythonVersion))
$languageAndRuntime.AddToolVersion("Python3", $(Get-Python3Version))
$languageAndRuntime.AddToolVersion("Ruby", $(Get-RubyVersion))
$languageAndRuntime.AddToolVersion("Swift", $(Get-SwiftVersion))
$markdown += New-MDHeader "Installed Software" -Level 2
$markdown += New-MDHeader "Language and Runtime" -Level 3
# Package Management
$packageManagement = $installedSoftware.AddHeader("Package Management")
$packageManagement.AddToolVersion("cpan", $(Get-CpanVersion))
$packageManagement.AddToolVersion("Helm", $(Get-HelmVersion))
$packageManagement.AddToolVersion("Homebrew", $(Get-HomebrewVersion))
$packageManagement.AddToolVersion("Miniconda", $(Get-MinicondaVersion))
$packageManagement.AddToolVersion("Npm", $(Get-NpmVersion))
$packageManagement.AddToolVersion("NuGet", $(Get-NuGetVersion))
$packageManagement.AddToolVersion("Pip", $(Get-PipVersion))
$packageManagement.AddToolVersion("Pip3", $(Get-Pip3Version))
$packageManagement.AddToolVersion("Pipx", $(Get-PipxVersion))
$packageManagement.AddToolVersion("RubyGems", $(Get-GemVersion))
$packageManagement.AddToolVersion("Vcpkg", $(Get-VcpkgVersion))
$packageManagement.AddToolVersion("Yarn", $(Get-YarnVersion))
$packageManagement.AddHeader("Environment variables").AddTable($(Build-PackageManagementEnvironmentTable))
$packageManagement.AddHeader("Homebrew note").AddNote(@'
Location: /home/linuxbrew
Note: Homebrew is pre-installed on image but not added to PATH.
run the eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" command
to accomplish this.
'@)
$markdown += New-MDList -Style Unordered -Lines @(
(Get-CPPVersions),
(Get-FortranVersions),
(Get-ClangVersions),
(Get-ErlangVersion),
(Get-MonoVersion),
(Get-NodeVersion),
(Get-PerlVersion),
(Get-PythonVersion),
(Get-Python3Version),
(Get-RubyVersion),
(Get-SwiftVersion),
(Get-JuliaVersion)
)
$markdown += New-MDHeader "Package Management" -Level 3
$packageManagementList = @(
(Get-HomebrewVersion),
(Get-GemVersion),
(Get-MinicondaVersion),
(Get-HelmVersion),
(Get-NpmVersion),
(Get-YarnVersion),
(Get-PipVersion),
(Get-Pip3Version),
(Get-VcpkgVersion)
)
if (-not (Test-IsUbuntu16)) {
$packageManagementList += @(
(Get-PipxVersion)
)
# Project Management
$projectManagement = $installedSoftware.AddHeader("Project Management")
if (Test-IsUbuntu20) {
$projectManagement.AddToolVersion("Ant", $(Get-AntVersion))
$projectManagement.AddToolVersion("Gradle", $(Get-GradleVersion))
}
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$projectManagement.AddToolVersion("Lerna", $(Get-LernaVersion))
}
$projectManagement.AddToolVersion("Maven", $(Get-MavenVersion))
if (Test-IsUbuntu20) {
$projectManagement.AddToolVersion("Sbt", $(Get-SbtVersion))
}
$markdown += New-MDList -Style Unordered -Lines ($packageManagementList | Sort-Object)
$markdown += New-MDHeader "Project Management" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-AntVersion),
(Get-GradleVersion),
(Get-MavenVersion),
(Get-SbtVersion)
)
$markdown += New-MDHeader "Tools" -Level 3
$toolsList = @(
(Get-7zipVersion),
(Get-AnsibleVersion),
(Get-AptFastVersion),
(Get-AzCopy7Version),
(Get-AzCopy10Version),
(Get-BazelVersion),
(Get-BazeliskVersion),
(Get-CodeQLBundleVersion),
(Get-CMakeVersion),
(Get-CurlVersion),
(Get-DockerMobyVersion),
(Get-DockerComposeVersion),
(Get-DockerBuildxVersion),
(Get-GitVersion),
(Get-GitLFSVersion),
(Get-GitFTPVersion),
(Get-HavegedVersion),
(Get-HerokuVersion),
(Get-HHVMVersion),
(Get-SVNVersion),
(Get-JqVersion),
(Get-KindVersion),
(Get-KubectlVersion),
(Get-KustomizeVersion),
(Get-LeiningenVersion),
(Get-MediainfoVersion),
(Get-M4Version),
(Get-HGVersion),
(Get-MinikubeVersion),
(Get-NewmanVersion),
(Get-NvmVersion),
(Get-PackerVersion),
(Get-PhantomJSVersion),
(Get-PulumiVersion),
(Get-RVersion),
(Get-SphinxVersion),
(Get-SwigVersion),
(Get-TerraformVersion),
(Get-UnZipVersion),
(Get-WgetVersion),
(Get-YamllintVersion),
(Get-ZipVersion),
(Get-ZstdVersion)
)
if (-not (Test-IsUbuntu16)) {
$toolsList += @(
(Get-PodManVersion),
(Get-BuildahVersion),
(Get-SkopeoVersion)
)
# Tools
$tools = $installedSoftware.AddHeader("Tools")
$tools.AddToolVersion("Ansible", $(Get-AnsibleVersion))
$tools.AddToolVersion("apt-fast", $(Get-AptFastVersion))
$tools.AddToolVersion("AzCopy", $(Get-AzCopyVersion))
$tools.AddToolVersion("Bazel", $(Get-BazelVersion))
$tools.AddToolVersion("Bazelisk", $(Get-BazeliskVersion))
$tools.AddToolVersion("Bicep", $(Get-BicepVersion))
$tools.AddToolVersion("Buildah", $(Get-BuildahVersion))
$tools.AddToolVersion("CMake", $(Get-CMakeVersion))
$tools.AddToolVersion("CodeQL Action Bundles", $(Get-CodeQLBundleVersions))
$tools.AddToolVersion("Docker Amazon ECR Credential Helper", $(Get-DockerAmazonECRCredHelperVersion))
$tools.AddToolVersion("Docker Compose v1", $(Get-DockerComposeV1Version))
$tools.AddToolVersion("Docker Compose v2", $(Get-DockerComposeV2Version))
$tools.AddToolVersion("Docker-Buildx", $(Get-DockerBuildxVersion))
$tools.AddToolVersion("Docker-Moby Client", $(Get-DockerMobyClientVersion))
$tools.AddToolVersion("Docker-Moby Server", $(Get-DockerMobyServerVersion))
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$tools.AddToolVersion("Fastlane", $(Get-FastlaneVersion))
}
$tools.AddToolVersion("Git", $(Get-GitVersion))
$tools.AddToolVersion("Git LFS", $(Get-GitLFSVersion))
$tools.AddToolVersion("Git-ftp", $(Get-GitFTPVersion))
$tools.AddToolVersion("Haveged", $(Get-HavegedVersion))
$tools.AddToolVersion("Heroku", $(Get-HerokuVersion))
if (Test-IsUbuntu20) {
$tools.AddToolVersion("HHVM (HipHop VM)", $(Get-HHVMVersion))
}
$tools.AddToolVersion("jq", $(Get-JqVersion))
$tools.AddToolVersion("Kind", $(Get-KindVersion))
$tools.AddToolVersion("Kubectl", $(Get-KubectlVersion))
$tools.AddToolVersion("Kustomize", $(Get-KustomizeVersion))
$tools.AddToolVersion("Leiningen", $(Get-LeiningenVersion))
$tools.AddToolVersion("MediaInfo", $(Get-MediainfoVersion))
$tools.AddToolVersion("Mercurial", $(Get-HGVersion))
$tools.AddToolVersion("Minikube", $(Get-MinikubeVersion))
$tools.AddToolVersion("n", $(Get-NVersion))
$tools.AddToolVersion("Newman", $(Get-NewmanVersion))
$tools.AddToolVersion("nvm", $(Get-NvmVersion))
$tools.AddToolVersion("OpenSSL", $(Get-OpensslVersion))
$tools.AddToolVersion("Packer", $(Get-PackerVersion))
$tools.AddToolVersion("Parcel", $(Get-ParcelVersion))
if (Test-IsUbuntu20) {
$tools.AddToolVersion("PhantomJS", $(Get-PhantomJSVersion))
}
$tools.AddToolVersion("Podman", $(Get-PodManVersion))
$tools.AddToolVersion("Pulumi", $(Get-PulumiVersion))
$tools.AddToolVersion("R", $(Get-RVersion))
$tools.AddToolVersion("Skopeo", $(Get-SkopeoVersion))
$tools.AddToolVersion("Sphinx Open Source Search Server", $(Get-SphinxVersion))
$tools.AddToolVersion("SVN", $(Get-SVNVersion))
$tools.AddToolVersion("Terraform", $(Get-TerraformVersion))
$tools.AddToolVersion("yamllint", $(Get-YamllintVersion))
$tools.AddToolVersion("yq", $(Get-YqVersion))
$tools.AddToolVersion("zstd", $(Get-ZstdVersion))
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
# CLI Tools
$cliTools = $installedSoftware.AddHeader("CLI Tools")
$cliTools.AddToolVersion("Alibaba Cloud CLI", $(Get-AlibabaCloudCliVersion))
$cliTools.AddToolVersion("AWS CLI", $(Get-AWSCliVersion))
$cliTools.AddToolVersion("AWS CLI Session Manager Plugin", $(Get-AWSCliSessionManagerPluginVersion))
$cliTools.AddToolVersion("AWS SAM CLI", $(Get-AWSSAMVersion))
$cliTools.AddToolVersion("Azure CLI", $(Get-AzureCliVersion))
$cliTools.AddToolVersion("Azure CLI (azure-devops)", $(Get-AzureDevopsVersion))
$cliTools.AddToolVersion("GitHub CLI", $(Get-GitHubCliVersion))
$cliTools.AddToolVersion("Google Cloud SDK", $(Get-GoogleCloudSDKVersion))
$cliTools.AddToolVersion("Hub CLI", $(Get-HubCliVersion))
$cliTools.AddToolVersion("Netlify CLI", $(Get-NetlifyCliVersion))
$cliTools.AddToolVersion("OpenShift CLI", $(Get-OCCliVersion))
$cliTools.AddToolVersion("ORAS CLI", $(Get-ORASCliVersion))
$cliTools.AddToolVersion("Vercel CLI", $(Get-VerselCliversion))
$markdown += New-MDHeader "CLI Tools" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-AlibabaCloudCliVersion),
(Get-AWSCliVersion),
(Get-AWSCliSessionManagerPluginVersion),
(Get-AWSSAMVersion),
(Get-AzureCliVersion),
(Get-AzureDevopsVersion),
(Get-GitHubCliVersion),
(Get-GoogleCloudSDKVersion),
(Get-HubCliVersion),
(Get-NetlifyCliVersion),
(Get-OCCliVersion),
(Get-ORASCliVersion),
(Get-VerselCliversion)
)
$markdown += New-MDHeader "Java" -Level 3
$markdown += Get-JavaVersions | New-MDTable
$markdown += New-MDNewLine
$installedSoftware.AddHeader("Java").AddTable($(Get-JavaVersionsTable))
$markdown += New-MDHeader "PHP" -Level 3
$markdown += Build-PHPTable | New-MDTable
$markdown += New-MDNewLine
$phpTools = $installedSoftware.AddHeader("PHP Tools")
$phpTools.AddToolVersionsListInline("PHP", $(Get-PHPVersions), "^\d+\.\d+")
$phpTools.AddToolVersion("Composer", $(Get-ComposerVersion))
$phpTools.AddToolVersion("PHPUnit", $(Get-PHPUnitVersion))
$phpTools.AddNote("Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled.")
$markdown += New-MDHeader "Haskell" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-GHCVersion),
(Get-CabalVersion),
(Get-StackVersion)
)
$haskellTools = $installedSoftware.AddHeader("Haskell Tools")
$haskellTools.AddToolVersion("Cabal", $(Get-CabalVersion))
$haskellTools.AddToolVersion("GHC", $(Get-GHCVersion))
$haskellTools.AddToolVersion("GHCup", $(Get-GHCupVersion))
$haskellTools.AddToolVersion("Stack", $(Get-StackVersion))
$markdown += New-MDHeader "Rust Tools" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-RustVersion),
(Get-RustupVersion),
(Get-RustdocVersion),
(Get-CargoVersion)
)
Initialize-RustEnvironment
$rustTools = $installedSoftware.AddHeader("Rust Tools")
$rustTools.AddToolVersion("Cargo", $(Get-CargoVersion))
$rustTools.AddToolVersion("Rust", $(Get-RustVersion))
$rustTools.AddToolVersion("Rustdoc", $(Get-RustdocVersion))
$rustTools.AddToolVersion("Rustup", $(Get-RustupVersion))
$rustToolsPackages = $rustTools.AddHeader("Packages")
$rustToolsPackages.AddToolVersion("Bindgen", $(Get-BindgenVersion))
$rustToolsPackages.AddToolVersion("Cargo audit", $(Get-CargoAuditVersion))
$rustToolsPackages.AddToolVersion("Cargo clippy", $(Get-CargoClippyVersion))
$rustToolsPackages.AddToolVersion("Cargo outdated", $(Get-CargoOutdatedVersion))
$rustToolsPackages.AddToolVersion("Cbindgen", $(Get-CbindgenVersion))
$rustToolsPackages.AddToolVersion("Rustfmt", $(Get-RustfmtVersion))
$markdown += New-MDHeader "Packages" -Level 4
$markdown += New-MDList -Style Unordered -Lines @(
(Get-BindgenVersion),
(Get-CargoAuditVersion),
(Get-CargoOutdatedVersion),
(Get-CargoClippyVersion),
(Get-CbindgenVersion),
(Get-RustfmtVersion)
)
$browsersTools = $installedSoftware.AddHeader("Browsers and Drivers")
$browsersTools.AddToolVersion("Google Chrome", $(Get-ChromeVersion))
$browsersTools.AddToolVersion("ChromeDriver", $(Get-ChromeDriverVersion))
$browsersTools.AddToolVersion("Chromium", $(Get-ChromiumVersion))
$browsersTools.AddToolVersion("Microsoft Edge", $(Get-EdgeVersion))
$browsersTools.AddToolVersion("Microsoft Edge WebDriver", $(Get-EdgeDriverVersion))
$browsersTools.AddToolVersion("Selenium server", $(Get-SeleniumVersion))
$browsersTools.AddToolVersion("Mozilla Firefox", $(Get-FirefoxVersion))
$browsersTools.AddToolVersion("Geckodriver", $(Get-GeckodriverVersion))
$browsersTools.AddHeader("Environment variables").AddTable($(Build-BrowserWebdriversEnvironmentTable))
$markdown += New-MDHeader "Browsers and Drivers" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-ChromeVersion),
(Get-ChromeDriverVersion),
(Get-FirefoxVersion),
(Get-GeckodriverVersion)
)
$netCoreTools = $installedSoftware.AddHeader(".NET Tools")
$netCoreTools.AddToolVersionsListInline(".NET Core SDK", $(Get-DotNetCoreSdkVersions), "^\d+\.\d+\.\d")
$netCoreTools.AddNodes($(Get-DotnetTools))
$markdown += New-MDHeader ".NET Core SDK" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-DotNetCoreSdkVersions)
)
$databasesTools = $installedSoftware.AddHeader("Databases")
if (Test-IsUbuntu20) {
$databasesTools.AddToolVersion("MongoDB", $(Get-MongoDbVersion))
}
$databasesTools.AddToolVersion("sqlite3", $(Get-SqliteVersion))
$databasesTools.AddNode($(Build-PostgreSqlSection))
$databasesTools.AddNode($(Build-MySQLSection))
$databasesTools.AddNode($(Build-MSSQLToolsSection))
$markdown += New-MDHeader "Az Module" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-AzModuleVersions)
)
$cachedTools = $installedSoftware.AddHeader("Cached Tools")
$cachedTools.AddToolVersionsList("Go", $(Get-ToolcacheGoVersions), "^\d+\.\d+")
$cachedTools.AddToolVersionsList("Node.js", $(Get-ToolcacheNodeVersions), "^\d+")
$cachedTools.AddToolVersionsList("Python", $(Get-ToolcachePythonVersions), "^\d+\.\d+")
$cachedTools.AddToolVersionsList("PyPy", $(Get-ToolcachePyPyVersions), "^\d+\.\d+")
$cachedTools.AddToolVersionsList("Ruby", $(Get-ToolcacheRubyVersions), "^\d+\.\d+")
$markdown += New-MDHeader "Databases" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-PostgreSqlVersion),
(Get-MongoDbVersion),
(Get-SqliteVersion)
)
$powerShellTools = $installedSoftware.AddHeader("PowerShell Tools")
$powerShellTools.AddToolVersion("PowerShell", $(Get-PowershellVersion))
$powerShellTools.AddHeader("PowerShell Modules").AddNodes($(Get-PowerShellModules))
$markdown += Build-MySQLSection
$markdown += Build-MSSQLToolsSection
$installedSoftware.AddHeader("Web Servers").AddTable($(Build-WebServersTable))
$markdown += New-MDHeader "Cached Tools" -Level 3
$markdown += Build-CachedToolsSection
$androidTools = $installedSoftware.AddHeader("Android")
$androidTools.AddTable($(Build-AndroidTable))
$androidTools.AddHeader("Environment variables").AddTable($(Build-AndroidEnvironmentTable))
$markdown += New-MDHeader "PowerShell Tools" -Level 3
$markdown += New-MDList -Lines (Get-PowershellVersion) -Style Unordered
$installedSoftware.AddHeader("Cached Docker images").AddTable($(Get-CachedDockerImagesTableData))
$installedSoftware.AddHeader("Installed apt packages").AddTable($(Get-AptPackages))
$markdown += New-MDHeader "PowerShell Modules" -Level 4
$markdown += Get-PowerShellModules | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Android" -Level 3
$markdown += Build-AndroidTable | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Cached Docker images" -Level 3
$markdown += Get-CachedDockerImagesTableData | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Installed apt packages" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(Get-AptPackages)
$markdown | Out-File -FilePath "${OutputDirectory}/Ubuntu-Readme.md"
$softwareReport.ToJson() | Out-File -FilePath "${OutputDirectory}/software-report.json" -Encoding UTF8NoBOM
$softwareReport.ToMarkdown() | Out-File -FilePath "${OutputDirectory}/software-report.md" -Encoding UTF8NoBOM
@@ -1,55 +0,0 @@
function Get-CommandResult {
param (
[Parameter(Mandatory=$true)]
[string] $Command,
[switch] $Multiline
)
# Bash trick to suppress and show error output because some commands write to stderr (for example, "python --version")
$stdout = & bash -c "$Command 2>&1"
$exitCode = $LASTEXITCODE
return @{
Output = If ($Multiline -eq $true) { $stdout } else { [string]$stdout }
ExitCode = $exitCode
}
}
function Take-OutputPart {
param (
[Parameter(ValueFromPipeline)]
[string] $toolOutput,
[string] $Delimiter = " ",
[int[]] $Part
)
$parts = $toolOutput.Split($Delimiter, [System.StringSplitOptions]::RemoveEmptyEntries)
$selectedParts = $parts[$Part]
return [string]::Join($Delimiter, $selectedParts)
}
function Test-IsUbuntu16 {
return (lsb_release -rs) -eq "16.04"
}
function Test-IsUbuntu18 {
return (lsb_release -rs) -eq "18.04"
}
function Test-IsUbuntu20 {
return (lsb_release -rs) -eq "20.04"
}
function Get-ToolsetContent {
$toolset = Join-Path $env:INSTALLER_SCRIPT_FOLDER "toolset.json"
Get-Content $toolset -Raw | ConvertFrom-Json
}
function New-MDNewLine {
param (
[int] $Count = 1
)
$newLineSymbol = [System.Environment]::NewLine
return $newLineSymbol * $Count
}
function Restore-UserOwner {
sudo chown -R ${env:USER}: $env:HOME
}
@@ -1,30 +1,22 @@
function Get-JavaFullVersion {
param($JavaRootPath)
function Get-JavaVersionsTable {
$javaToolcacheVersions = Get-ChildItem $env:AGENT_TOOLSDIRECTORY/Java*/* -Directory | Sort-Object { [int]$_.Name.Split(".")[0] }
$javaBinPath = Join-Path $javaRootPath "/bin/java"
$javaVersionOutput = (Get-CommandResult "$javaBinPath -version").Output
$matchResult = $javaVersionOutput | Select-String '^openjdk version \"([\d\._]+)\"'
return $matchResult.Matches.Groups[1].Value
}
$existingVersions = $javaToolcacheVersions | ForEach-Object {
$majorVersion = $_.Name.split(".")[0]
$fullVersion = $_.Name.Replace("-", "+")
$defaultJavaPath = $env:JAVA_HOME
$javaPath = Get-Item env:JAVA_HOME_${majorVersion}_X64
function Get-JavaVersions {
$defaultJavaPath = $env:JAVA_HOME
$javaVersions = Get-Item env:JAVA_HOME_*_X64
$sortRules = @{
Expression = { [Int32]$_.Name.Split("_")[2] }
Descending = $false
}
return $javaVersions | Sort-Object $sortRules | ForEach-Object {
$javaPath = $_.Value
$version = Get-JavaFullVersion $javaPath
$vendor = $version.StartsWith("1.7") ? "Zulu" : "AdoptOpenJDK"
$defaultPostfix = ($javaPath -eq $defaultJavaPath) ? " (default)" : ""
$defaultPostfix = ($javaPath.Value -eq $defaultJavaPath) ? " (default)" : ""
$vendorName = ($_.FullName -like '*Java_Adopt_jdk*') ? "Adopt OpenJDK" : "Eclipse Temurin"
[PSCustomObject] @{
"Version" = $version + $defaultPostfix
"Vendor" = $vendor
"Environment Variable" = $_.Name
"Version" = $fullVersion + $defaultPostfix
"Vendor" = $vendorName
"Environment Variable" = $javaPath.Name
}
}
}
# Return all the vendors which are not Adopt, also look for version 12 of Adopt (Eclipse Temurin does not have this version)
$versionsToReturn = $existingVersions | Where-Object {$_.Vendor -notlike "Adopt*" -or $_.Version.Split(".")[0] -eq 12}
return $versionsToReturn
}
@@ -1,55 +1,55 @@
function Initialize-RustEnvironment {
ln -sf "/usr/share/rust/.rustup" $HOME/.rustup
ln -sf "/usr/share/rust/.cargo" $HOME/.cargo
}
function Get-RustVersion {
Initialize-RustEnvironment
$rustVersion = $(rustc --version) | Take-OutputPart -Part 1
return "Rust $rustVersion"
}
function Get-BindgenVersion {
$bindgenVersion = $(bindgen --version) | Take-OutputPart -Part 1
return "Bindgen $bindgenVersion"
}
function Get-CargoVersion {
$cargoVersion = $(cargo --version) | Take-OutputPart -Part 1
return "Cargo $cargoVersion"
}
function Get-CargoAuditVersion {
$cargoAuditVersion = $(cargo audit --version) | Take-OutputPart -Part 1
return "Cargo audit $cargoAuditVersion"
}
function Get-CargoOutdatedVersion {
$cargoOutdatedVersion = $(cargo outdated --version) | Take-OutputPart -Part 1 -Delimiter "v"
return "Cargo outdated $cargoOutdatedVersion"
}
function Get-CargoClippyVersion {
$cargoClippyVersion = $(cargo-clippy --version) | Take-OutputPart -Part 1
return "Cargo clippy $cargoClippyVersion"
}
function Get-CbindgenVersion {
$cbindgenVersion = $(cbindgen --version) | Take-OutputPart -Part 1
return "Cbindgen $cbindgenVersion"
}
function Get-RustupVersion {
$rustupVersion = $(rustup --version) | Take-OutputPart -Part 1
return "Rustup $rustupVersion"
}
function Get-RustdocVersion {
$rustdocVersion = $(rustdoc --version) | Take-OutputPart -Part 1
return "Rustdoc $rustdocVersion"
}
function Get-RustfmtVersion {
$rustfmtVersion = $(rustfmt --version) | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
return "Rustfmt $rustfmtVersion"
}
function Initialize-RustEnvironment {
$env:PATH = "/etc/skel/.cargo/bin:/etc/skel/.rustup/bin:$($env:PATH)"
$env:RUSTUP_HOME = "/etc/skel/.rustup"
$env:CARGO_HOME = "/etc/skel/.cargo"
}
function Get-RustVersion {
$rustVersion = $(rustc --version) | Take-OutputPart -Part 1
return $rustVersion
}
function Get-BindgenVersion {
$bindgenVersion = $(bindgen --version) | Take-OutputPart -Part 1
return $bindgenVersion
}
function Get-CargoVersion {
$cargoVersion = $(cargo --version) | Take-OutputPart -Part 1
return $cargoVersion
}
function Get-CargoAuditVersion {
$cargoAuditVersion = $(cargo-audit --version) | Take-OutputPart -Part 1
return $cargoAuditVersion
}
function Get-CargoOutdatedVersion {
$cargoOutdatedVersion = cargo outdated --version | Take-OutputPart -Part 1
return $cargoOutdatedVersion
}
function Get-CargoClippyVersion {
$cargoClippyVersion = $(cargo-clippy --version) | Take-OutputPart -Part 1
return $cargoClippyVersion
}
function Get-CbindgenVersion {
$cbindgenVersion = $(cbindgen --version) | Take-OutputPart -Part 1
return $cbindgenVersion
}
function Get-RustupVersion {
$rustupVersion = $(rustup --version) | Take-OutputPart -Part 1
return $rustupVersion
}
function Get-RustdocVersion {
$rustdocVersion = $(rustdoc --version) | Take-OutputPart -Part 1
return $rustdocVersion
}
function Get-RustfmtVersion {
$rustfmtVersion = $(rustfmt --version) | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
return $rustfmtVersion
}
@@ -1,292 +1,294 @@
function Get-7zipVersion {
$7zVersion = 7z i | Select-String "7-Zip" | Take-OutputPart -Part 2
return "7-Zip $7zVersion"
}
function Get-AnsibleVersion {
$ansibleVersion = ansible --version | Select-Object -First 1 | Take-OutputPart -Part 1
return "Ansible $ansibleVersion"
$ansibleVersion = (ansible --version)[0] -replace "[^\d.]"
return $ansibleVersion
}
function Get-AptFastVersion {
$aptFastVersion = (dpkg-query --showformat='${Version}' --show apt-fast).Split('-')[0]
return "apt-fast $aptFastVersion"
$versionFileContent = Get-Content (which apt-fast) -Raw
$match = [Regex]::Match($versionFileContent, '# apt-fast v(.+)\n')
return $match.Groups[1].Value
}
function Get-AzCopy7Version {
$azcopy7Version = azcopy --version | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
return "AzCopy7 $azcopy7Version (available by ``azcopy`` alias)"
}
function Get-AzCopy10Version {
$azcopy10Version = azcopy10 --version | Take-OutputPart -Part 2
return "AzCopy10 $azcopy10Version (available by ``azcopy10`` alias)"
function Get-AzCopyVersion {
$azcopyVersion = azcopy --version | Take-OutputPart -Part 2
return "$azcopyVersion - available by ``azcopy`` and ``azcopy10`` aliases"
}
function Get-BazelVersion {
$bazelVersion = bazel --version | Select-String "bazel" | Take-OutputPart -Part 1
return "Bazel $bazelVersion"
return $bazelVersion
}
function Get-BazeliskVersion {
$result = Get-CommandResult "bazelisk version" -Multiline
$bazeliskVersion = $result.Output | Select-String "Bazelisk version:" | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "v"
return "Bazelisk $bazeliskVersion"
return $bazeliskVersion
}
function Get-CodeQLBundleVersion {
function Get-BicepVersion {
(bicep --version | Out-String) -match "bicep cli version (?<version>\d+\.\d+\.\d+)" | Out-Null
return $Matches.Version
}
function Get-CodeQLBundleVersions {
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionsWildcard | Select-Object -First 1 -Expand FullName
$CodeQLPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql"
$CodeQLVersion = & $CodeQLPath version --quiet
return "CodeQL Action Bundle $CodeQLVersion"
$CodeQLVersionPaths = Get-ChildItem $CodeQLVersionsWildcard
$CodeQlVersions=@()
foreach ($CodeQLVersionPath in $CodeQLVersionPaths) {
$FullCodeQLVersionPath = $CodeQLVersionPath | Select-Object -Expand FullName
$CodeQLPath = Join-Path $FullCodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql"
$CodeQLVersion = & $CodeQLPath version --quiet
$CodeQLVersions += $CodeQLVersion
}
return $CodeQLVersions
}
function Get-PodManVersion {
$podmanVersion = podman --version | Take-OutputPart -Part 2
return "Podman $podmanVersion"
return $podmanVersion
}
function Get-BuildahVersion {
$buildahVersion = buildah --version | Take-OutputPart -Part 2
return "Buildah $buildahVersion"
return $buildahVersion
}
function Get-SkopeoVersion {
$skopeoVersion = skopeo --version | Take-OutputPart -Part 2
return "Skopeo $skopeoVersion"
return $skopeoVersion
}
function Get-CMakeVersion {
$cmakeVersion = cmake --version | Select-Object -First 1 | Take-OutputPart -Part 2
return "CMake $cmakeVersion"
return $cmakeVersion
}
function Get-CurlVersion {
$curlVersion = curl --version | Select-Object -First 1 | Take-OutputPart -Part 0,1
return $curlVersion
}
function Get-DockerComposeVersion {
function Get-DockerComposeV1Version {
$composeVersion = docker-compose -v | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter ","
return "Docker Compose $composeVersion"
return $composeVersion
}
function Get-DockerMobyVersion {
$dockerVersion = docker -v | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "+"
return "Docker-Moby $dockerVersion"
function Get-DockerComposeV2Version {
$composeVersion = docker compose version | Take-OutputPart -Part 3
return $composeVersion
}
function Get-DockerMobyClientVersion {
$dockerClientVersion = sudo docker version --format '{{.Client.Version}}'
return $dockerClientVersion
}
function Get-DockerMobyServerVersion {
$dockerServerVersion = sudo docker version --format '{{.Server.Version}}'
return $dockerServerVersion
}
function Get-DockerBuildxVersion {
$buildxVersion = docker buildx version | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "+"
return "Docker-Buildx $buildxVersion"
return $buildxVersion
}
function Get-DockerAmazonECRCredHelperVersion {
$ecrVersion = docker-credential-ecr-login -v | Select-String "Version:" | Take-OutputPart -Part 1
return $ecrVersion
}
function Get-GitVersion {
$result = Get-CommandResult "git --version"
$gitVersion = $result.Output | Take-OutputPart -Part 2
return "Git $gitVersion"
$gitVersion = git --version | Take-OutputPart -Part -1
return $gitVersion
}
function Get-GitLFSVersion {
$result = Get-CommandResult "git-lfs --version"
$gitlfsversion = $result.Output | Take-OutputPart -Part 0 | Take-OutputPart -Part 1 -Delimiter "/"
return "Git LFS $gitlfsversion"
return $gitlfsversion
}
function Get-GitFTPVersion {
$gitftpVersion = git-ftp --version | Take-OutputPart -Part 2
return "Git-ftp $gitftpVersion"
return $gitftpVersion
}
function Get-GoogleCloudSDKVersion {
return "$(gcloud --version | Select-Object -First 1)"
return (gcloud --version | Select-Object -First 1) | Take-OutputPart -Part 3
}
function Get-HavegedVersion {
$havegedVersion = dpkg-query --showformat='${Version}' --show haveged | Take-OutputPart -Part 0 -Delimiter "-"
return "Haveged $havegedVersion"
return $havegedVersion
}
function Get-HerokuVersion {
$herokuVersion = heroku version | Take-OutputPart -Part 0 | Take-OutputPart -Part 1 -Delimiter "/"
return "Heroku $herokuVersion"
return $herokuVersion
}
function Get-HHVMVersion {
$hhvmVersion = hhvm --version | Select-Object -First 1 | Take-OutputPart -Part 2
return "HHVM (HipHop VM) $hhvmVersion"
return $hhvmVersion
}
function Get-SVNVersion {
$svnVersion = svn --version | Select-Object -First 1 | Take-OutputPart -Part 2
return "SVN $svnVersion"
return $svnVersion
}
function Get-KustomizeVersion {
$kustomizeVersion = kustomize version --short | Take-OutputPart -Part 0 | Take-OutputPart -Part 1 -Delimiter "v"
return "Kustomize $kustomizeVersion"
return $kustomizeVersion
}
function Get-KindVersion {
$kindVersion = kind version | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "v"
return "Kind $kindVersion"
return $kindVersion
}
function Get-KubectlVersion {
$kubectlVersion = kubectl version --client --short | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "v"
return "Kubectl $kubectlVersion"
$kubectlVersion = (kubectl version --client --output=json | ConvertFrom-Json).clientVersion.gitVersion.Replace('v','')
return $kubectlVersion
}
function Get-MinikubeVersion {
$minikubeVersion = minikube version --short | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "v"
return "Minikube $minikubeVersion"
$minikubeVersion = minikube version --short | Take-OutputPart -Part 0 -Delimiter "v"
return $minikubeVersion
}
function Get-HGVersion {
$hgVersion = hg --version | Select-Object -First 1 | Take-OutputPart -Part -1 | Take-OutputPart -Part 0 -Delimiter ")"
return "Mercurial $hgVersion"
}
function Get-M4Version {
$m4Version = m4 --version | Select-Object -First 1 | Take-OutputPart -Part -1
return "m4 $m4Version"
return $hgVersion
}
function Get-LeiningenVersion {
return "$(lein -v | Take-OutputPart -Part 0,1)"
return "$(lein -v | Take-OutputPart -Part 1)"
}
function Get-MediainfoVersion {
$mediainfoVersion = (mediainfo --version | Select-Object -Index 1 | Take-OutputPart -Part 2).Replace('v', '')
return "MediaInfo $mediainfoVersion"
return $mediainfoVersion
}
function Get-NewmanVersion {
return "Newman $(newman --version)"
return $(newman --version)
}
function Get-NVersion {
$nVersion = (n --version).Replace('v', '')
return $nVersion
}
function Get-NvmVersion {
$nvmVersion = bash -c "source /etc/skel/.nvm/nvm.sh && nvm --version"
return "nvm $nvmVersion"
return $nvmVersion
}
function Get-PackerVersion {
return "Packer $(packer --version)"
$packerVersion = packer --version
return $packerVersion
}
function Get-PhantomJSVersion {
return "PhantomJS $(phantomjs --version)"
}
function Get-SwigVersion {
$swigVersion = swig -version | Select-String "SWIG Version" | Take-OutputPart -Part 2
return "Swig $swigVersion"
$env:OPENSSL_CONF="/etc/ssl"; phantomjs --version
return $(phantomjs --version)
}
function Get-TerraformVersion {
return (terraform version | Select-String "^Terraform").Line.Replace('v','')
}
function Get-UnZipVersion {
$unzipVersion = unzip -v | Select-Object -First 1 | Take-OutputPart -Part 1
return "unzip $unzipVersion"
}
function Get-WgetVersion {
$wgetVersion = wget --version | Select-Object -First 1 | Take-OutputPart -Part 2
return "wget $wgetVersion"
}
function Get-ZipVersion {
$zipVersion = zip -v | Select-String "This is Zip" | Take-OutputPart -Part 3
return "zip $zipVersion"
}
function Get-ZstdVersion {
$zstdVersion = (zstd --version).Split() -match "v\d+" | ForEach-Object {$_.Replace("v","").Replace(",","")}
return "zstd $zstdVersion"
return (terraform version | Select-String "^Terraform").Line.Replace('v','') | Take-OutputPart -Part 1
}
function Get-JqVersion {
$jqVersion = jq --version | Take-OutputPart -Part 1 -Delimiter "-"
return "jq $jqVersion"
return $jqVersion
}
function Get-AzureCliVersion {
$azcliVersion = az -v | Select-String "azure-cli" | Take-OutputPart -Part -1
return "Azure CLI (azure-cli) $azcliVersion"
$azcliVersion = (az version | ConvertFrom-Json).'azure-cli'
return $azcliVersion
}
function Get-AzureDevopsVersion {
$azdevopsVersion = az -v | Select-String "azure-devops" | Take-OutputPart -Part -1
return "Azure CLI (azure-devops) $azdevopsVersion"
$azdevopsVersion = (az version | ConvertFrom-Json).extensions.'azure-devops'
return $azdevopsVersion
}
function Get-AlibabaCloudCliVersion {
return "Alibaba Cloud CLI $(aliyun version)"
return $(aliyun version)
}
function Get-AWSCliVersion {
$result = Get-CommandResult "aws --version"
$awsVersion = $result.Output | Take-OutputPart -Part 0 | Take-OutputPart -Part 1 -Delimiter "/"
return "AWS CLI $awsVersion"
return $awsVersion
}
function Get-AWSCliSessionManagerPluginVersion {
$result = (Get-CommandResult "session-manager-plugin --version").Output
return "AWS CLI Session manager plugin $result"
return $result
}
function Get-AWSSAMVersion {
return "AWS SAM CLI $(sam --version | Take-OutputPart -Part -1)"
return $(sam --version | Take-OutputPart -Part -1)
}
function Get-FastlaneVersion {
$fastlaneVersion = fastlane --version | Select-String "^fastlane [0-9]" | Take-OutputPart -Part 1
return $fastlaneVersion
}
function Get-HubCliVersion {
$hubVersion = hub --version | Select-String "hub version" | Take-OutputPart -Part 2
return "Hub CLI $hubVersion"
return $hubVersion
}
function Get-GitHubCliVersion {
$ghVersion = gh --version | Select-String "gh version" | Take-OutputPart -Part 2
return "GitHub CLI $ghVersion"
return $ghVersion
}
function Get-NetlifyCliVersion {
$netlifyVersion = netlify --version | Take-OutputPart -Part 0 | Take-OutputPart -Part 1 -Delimiter "/"
return "Netlify CLI $netlifyVersion"
return $netlifyVersion
}
function Get-OCCliVersion {
$ocVersion = oc version | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "-"
return "oc CLI $ocVersion"
$ocVersion = oc version -o=json | jq -r '.releaseClientVersion'
return $ocVersion
}
function Get-ORASCliVersion {
$orasVersion = oras version | Select-String "^Version:" | Take-OutputPart -Part 1
return "ORAS CLI $orasVersion"
return $orasVersion
}
function Get-VerselCliversion {
$result = Get-CommandResult "vercel --version" -Multiline
return $result.Output | Select-Object -First 1
return $result.Output | Select-Object -Skip 1 -First 1
}
function Get-PulumiVersion {
$pulumiVersion = pulumi version | Take-OutputPart -Part 0 -Delimiter "v"
return "Pulumi $pulumiVersion"
return $pulumiVersion
}
function Get-RVersion {
$rVersion = (Get-CommandResult "R --version | grep 'R version'").Output | Take-OutputPart -Part 2
return "R $rVersion"
return $rVersion
}
function Get-SphinxVersion {
$sphinxVersion = searchd -h | Select-Object -First 1 | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
return "Sphinx Open Source Search Server $sphinxVersion"
return $sphinxVersion
}
function Get-YamllintVersion {
return "$(yamllint --version)"
return $(yamllint --version) | Take-OutputPart -Part 1
}
function Get-ZstdVersion {
$zstdVersion = zstd --version | Take-OutputPart -Part 1 -Delimiter "v" | Take-OutputPart -Part 0 -Delimiter ","
return "$zstdVersion"
}
function Get-YqVersion {
$yqVersion = $(yq -V) | Take-OutputPart -Part 3
return $yqVersion.TrimStart("v").Trim()
}
@@ -0,0 +1,55 @@
function Get-ApacheVersion {
$name = "apache2"
$port = 80
$version = bash -c "apache2 -v | grep -Po 'Apache/(\d+.){2}\d+'" | Take-OutputPart -Part 1 -Delimiter "/"
$serviceStatus = systemctl status apache2 | grep "Active:" | Take-OutputPart -Part 1
$configFile = "/etc/apache2/apache2.conf"
return [PsCustomObject]@{
"Name" = $name
"Version" = $version
"ConfigFile" = $configFile
"ServiceStatus" = $serviceStatus
"ListenPort" = $port
}
}
function Get-NginxVersion {
$name = "nginx"
$port = 80
$version = (dpkg-query --showformat='${Version}' --show nginx).Split('-')[0]
$serviceStatus = systemctl status nginx | grep "Active:" | Take-OutputPart -Part 1
$configFile = "/etc/nginx/nginx.conf"
return [PsCustomObject]@{
"Name" = $name
"Version" = $version
"ConfigFile" = $configFile
"ServiceStatus" = $serviceStatus
"ListenPort" = $port
}
}
function Get-Xsp4Version {
$name = "mono-xsp4"
$port = (grep '^port=' /etc/default/mono-xsp4).Split('=')[1]
$version = (dpkg-query --showformat='${Version}' --show mono-xsp4).Split('-')[0]
$serviceStatus = systemctl show -p ActiveState --value mono-xsp4
$configFile = "/etc/default/mono-xsp4"
return [PsCustomObject]@{
"Name" = $name
"Version" = $version
"ConfigFile" = $configFile
"ServiceStatus" = $serviceStatus
"ListenPort" = $port
}
}
function Build-WebServersTable {
$servers = @()
$servers += (Get-ApacheVersion)
if (Test-IsUbuntu20) {
$servers += (Get-Xsp4Version)
}
$servers += (Get-NginxVersion)
return $servers
}
+3
View File
@@ -32,6 +32,9 @@ while [ \$i -le 30 ];do
elif grep -q 'Temporary failure in name resolution' \$err;then
# It looks like DNS is not updated with random generated hostname yet
retry=true
elif grep -q 'dpkg frontend is locked by another process' \$err;then
# dpkg process is busy by another process
retry=true
fi
rm \$err
@@ -0,0 +1,12 @@
#!/bin/bash -e
################################################################################
## File: apt-ubuntu-archive.sh
## Desc: Script for adding additional apt repo to /etc/apt/sources.list
################################################################################
echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted" | tee -a /etc/apt/sources.list
echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-updates main restricted" | tee -a /etc/apt/sources.list
echo "deb http://security.ubuntu.com/ubuntu/ $(lsb_release -cs)-security main restricted" | tee -a /etc/apt/sources.list
echo "deb http://security.ubuntu.com/ubuntu/ $(lsb_release -cs)-security universe" | tee -a /etc/apt/sources.list
echo "deb http://security.ubuntu.com/ubuntu/ $(lsb_release -cs)-security multiverse" | tee -a /etc/apt/sources.list
+22 -14
View File
@@ -8,28 +8,36 @@ systemctl stop apt-daily-upgrade.timer
systemctl disable apt-daily-upgrade.timer
systemctl disable apt-daily-upgrade.service
# This step should completely disable any automatic updates except manual
sudo sed -i 's/APT::Periodic::Update-Package-Lists "1"/APT::Periodic::Update-Package-Lists "0"/' /etc/apt/apt.conf.d/20auto-upgrades
# Enable retry logic for apt up to 10 times
echo "APT::Acquire::Retries \"10\";" > /etc/apt/apt.conf.d/80-retries
# Configure apt to always assume Y
echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes
# APT understands a field called Phased-Update-Percentage which can be used to control the rollout of a new version. It is an integer between 0 and 100.
# In case you have multiple systems that you want to receive the same set of updates,
# you can set APT::Machine-ID to a UUID such that they all phase the same,
# or set APT::Get::Never-Include-Phased-Updates or APT::Get::Always-Include-Phased-Updates to true such that APT will never/always consider phased updates.
# apt-cache policy pkgname
echo 'APT::Get::Always-Include-Phased-Updates "true";' > /etc/apt/apt.conf.d/99-phased-updates
# Fix bad proxy and http headers settings
cat <<EOF >> /etc/apt/apt.conf.d/99bad_proxy
Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy true;
EOF
# Uninstall unattended-upgrades
apt-get remove unattended-upgrades
apt-get purge unattended-upgrades
# Use apt-fast for parallel downloads
add-apt-repository -y ppa:apt-fast/stable
# Need to limit arch for default apt repos due to
# https://github.com/actions/virtual-environments/issues/1961
sed -i'' -E 's/^deb http:\/\/(azure.archive|security).ubuntu.com/deb [arch=amd64,i386] http:\/\/\1.ubuntu.com/' /etc/apt/sources.list
echo 'APT sources limited to the actual architectures'
echo 'APT sources'
cat /etc/apt/sources.list
apt-get update
# Install aria2 , jq and apt-fast
apt-get install aria2 jq apt-fast
# Install jq
apt-get install jq
# Install apt-fast using quick-install.sh
# https://github.com/ilikenwf/apt-fast
bash -c "$(curl -sL https://raw.githubusercontent.com/ilikenwf/apt-fast/master/quick-install.sh)"

Some files were not shown because too many files have changed in this diff Show More