Compare commits

...

1093 Commits

Author SHA1 Message Date
Image generation service account 8f2dd6a8f4 Updating readme file for macOS-11 version 20220110.2 2022-01-12 06:07:23 +00: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
426 changed files with 14740 additions and 9599 deletions
+1
View File
@@ -0,0 +1 @@
* @actions/virtual-environments-owners
-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 -->
+48
View File
@@ -0,0 +1,48 @@
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: Virtual environments affected
options:
- label: Ubuntu 18.04
- label: Ubuntu 20.04
- label: macOS 10.15
- label: macOS 11
- label: Windows Server 2016
- label: Windows Server 2019
- label: Windows Server 2022
validations:
required: true
- 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
+55
View File
@@ -0,0 +1,55 @@
name: Bug Report
description: Submit a bug report
labels: [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: Virtual environments affected
options:
- label: Ubuntu 18.04
- label: Ubuntu 20.04
- label: macOS 10.15
- label: macOS 11
- label: Windows Server 2016
- label: Windows Server 2019
- label: Windows Server 2022
validations:
required: true
- 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" -> "Virtual Environment" -> "Version".
2. For Azure DevOps, under "Initialize job" -> "Virtual Environment" -> "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.
- type: textarea
attributes:
label: Expected behavior
description: A description of what you expected to happen.
- type: textarea
attributes:
label: Actual behavior
description: A description of what is actually happening.
- type: textarea
attributes:
label: Repro steps
placeholder: |
A description with steps to reproduce the issue.
1. Step 1
2. Step 2
validations:
required: true
+1
View File
@@ -0,0 +1 @@
blank_issues_enabled: false
-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! -->
+75
View File
@@ -0,0 +1,75 @@
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: Virtual environments affected
options:
- label: Ubuntu 18.04
- label: Ubuntu 20.04
- label: macOS 10.15
- label: macOS 11
- label: Windows Server 2016
- label: Windows Server 2019
- label: Windows Server 2022
validations:
required: true
- 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!
+16 -2
View File
@@ -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: ['virtual-environments-akvelon']
})
-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']
})
}
+9 -2
View File
@@ -5,6 +5,10 @@ name: Linter
on:
pull_request:
branches: [ main ]
paths:
- '**.json'
- '**.md'
- '**.sh'
jobs:
build:
@@ -14,15 +18,18 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v2
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
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2020 GitHub
Copyright (c) 2021 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
+30 -36
View File
@@ -1,47 +1,37 @@
# 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).
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 build a VM machine from this repo's source, see the [instructions](docs/create-image-and-azure-resources.md).
How to get in touch with us:
- To file a bug report, or request tools to be added/updated, please [open an issue using the appropriate template](https://github.com/actions/virtual-environments/issues/new/choose)
- If you want to share your thoughts about image configuration, installed software, or bring some idea, please, create a new topic in a [discussions section](https://github.com/actions/virtual-environments/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 virtual environments or writing your Actions workflow, please open requests in the [GitHub Actions Community Forum](https://github.community/c/github-actions/41).
## Available Environments
| Environment | YAML Label | Included Software | Latest Release & Rollout Progress |
| --------------------|---------------------|--------------------|---------------------|
| 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)
| Ubuntu 20.04 | `ubuntu-latest` or `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-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)
| macOS 11 | `macos-11` | [macOS-11] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-11&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-11&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 2022 | `windows-2022` | [windows-2022] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=windows-2022&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=windows-2022&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.
```
<b>Note:</b> Beta and Preview images are provided "as-is", "with all faults" and "as available" and are excluded from the service level agreement and warranty. Beta and Preview images may not be covered by customer support.
***What images are available for GitHub Actions and Azure DevOps?***
The availability of images for GitHub Actions and Azure DevOps is different. 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)
***What image version is used in my build?*** Usually, image deployment takes 3-4 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.
***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.
***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.
## Software Guidelines
In general, these are the guidelines we consider when deciding what to pre-install:
- 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.
**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.
## Updates to virtual environments
*Cadence*
@@ -51,15 +41,19 @@ we pin the tool to specific version(s).
*Following Along / Change Notifications*
* **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.
* **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). Pre-release is created when deployment is started. As soon as deployment is finished, it is converted to release.
You can also track upcoming changes using the [awaiting-deployment](https://github.com/actions/virtual-environments/labels/awaiting-deployment) label.
[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
[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
[windows-2022]: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-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-11]: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-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
## Software and image guidelines
To learn more about tools and images support policy, see the [guidelines](./docs/software-and-images-guidelines.md).
-1
View File
@@ -1 +0,0 @@
theme: jekyll-theme-slate
@@ -1,5 +1,5 @@
# 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.
The virtual-environments project uses [Packer](https://www.packer.io/) to generate disk images for the following platforms: Windows 2016/2019/2022, Ubuntu 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.
@@ -11,12 +11,11 @@ After successful image generation, a snapshot of the temporary VM will be conver
- `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
- `Azure CLI ` - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
- `Azure Az Powershell module` - https://docs.microsoft.com/en-us/powershell/azure/install-az-ps
- `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.
> To connect to a temporary VM packer uses 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.
@@ -33,6 +32,11 @@ Download `packer` from https://www.packer.io/downloads, or install it via Chocol
choco install packer
```
Install the Azure Az PowerShell module - https://docs.microsoft.com/en-us/powershell/azure/install-az-ps.
```
Install-Module -Name Az -Repository PSGallery -Force
```
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
@@ -51,13 +55,13 @@ Set-Location C:\virtual-environments
Import-Module .\helpers\GenerateResourcesAndImage.ps1
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "myTestResourceGroup" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu1604 -AzureLocation "East US"
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "myTestResourceGroup" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu1804 -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".
- `ImageType` - The type of the image being generated. Valid options are: "Windows2016", "Windows2019", "Windows2022", "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.
@@ -105,7 +109,6 @@ The Packer template includes `variables` section containing user variables used
- `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.
@@ -123,4 +126,45 @@ 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)
### 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/virtual-environments/tree/main/images/win/post-generation
- Linux: https://github.com/actions/virtual-environments/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
sudo su -c "find /opt/post-generation -mindepth 1 -maxdepth 1 -type f -name '*.sh' -exec bash {} \;"
##### Windows
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 [virtual-environments/issues/572](https://github.com/actions/virtual-environments/issues/572).
##### Windows
- **Choco.ps1** - contains dummy command to cleanup orphaned packages to avoid initial delay for future choco commands
- **Dotnet.ps1** - adds `$env:USERPROFILE\.dotnet\tools` directory to the PATH
- **InternetExplorerConfiguration** - turns off the Internet Explorer Enhanced Security feature
- **Msys2FirstLaunch.ps1** - initializes bash user profile in MSYS2
- **RustJunction.ps1** - creates Rust junction points to cargo and rustup folders
- **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

+38
View File
@@ -0,0 +1,38 @@
# Software and image guidelines
## Software preinstallation policy
In general, these are the guidelines we consider when deciding what to pre-install:
- 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.
- 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.
**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.
## Software and images support policy
These are the guidelines we follow in software and images supporting routine:
- Tools and versions will typically be removed 6 months after they are deprecated or have reached end-of-life.
- We support at least 2 latest OS versions (LTS only for Ubuntu) and initiate deprecation process for the oldest one when image usage drops below 5%.
- The images generally contain the latest versions of packages installed except for Ubuntu LTS where we rely on the Canonical-provided repositories mostly.
- 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 |
## Software default versions update policy for tools with multiple versions installed
In general, once a new version is installed on the image, we announce the default version update 2 weeks prior to deploying it to give time to adapt to upcoming changes. For potentially dangerous updates, we can extend the timeline up to 1 month between the announcement and deployment.
+10 -7
View File
@@ -48,21 +48,22 @@ 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 Standard --version IPv4 --subscription $subscriptionId -o json)
$publicIpId = ($publicIp | ConvertFrom-Json).publicIp.id
Write-Host "`nAdding the public IP to the NIC"
@@ -70,4 +71,6 @@ Function CreateAzureVMFromPackerTemplate {
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
Write-Host "`nCreated in $(ResourceGroupName):`n vnet $(vnetName)`n subnet $(subnetName)`n nic $(nicName)`n publicip $(publicIpName)`n vm $(VirtualMachineName)"
}
+97 -35
View File
@@ -3,7 +3,7 @@ $ErrorActionPreference = 'Stop'
enum ImageType {
Windows2016 = 0
Windows2019 = 1
Ubuntu1604 = 2
Windows2022 = 2
Ubuntu1804 = 3
Ubuntu2004 = 4
}
@@ -23,8 +23,8 @@ Function Get-PackerTemplatePath {
([ImageType]::Windows2019) {
$relativeTemplatePath = Join-Path "win" "windows2019.json"
}
([ImageType]::Ubuntu1604) {
$relativeTemplatePath = Join-Path "linux" "ubuntu1604.json"
([ImageType]::Windows2022) {
$relativeTemplatePath = Join-Path "win" "windows2022.json"
}
([ImageType]::Ubuntu1804) {
$relativeTemplatePath = Join-Path "linux" "ubuntu1804.json"
@@ -72,7 +72,7 @@ Function GenerateResourcesAndImage {
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: {"Windows2016", "Windows2019", "Windows2022", "Ubuntu1804", "Ubuntu2004"}.
.PARAMETER AzureLocation
The location of the resources being created in Azure. For example "East US".
@@ -80,11 +80,24 @@ Function GenerateResourcesAndImage {
.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.
.EXAMPLE
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "shsamytest1" -ImageGenerationRepositoryRoot "C:\virtual-environments" -ImageType Ubuntu1604 -AzureLocation "East US"
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "shsamytest1" -ImageGenerationRepositoryRoot "C:\virtual-environments" -ImageType Ubuntu1804 -AzureLocation "East US"
#>
param (
[Parameter(Mandatory = $True)]
@@ -100,22 +113,33 @@ 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
)
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();
$ServicePrincipalClientSecret = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$InstallPassword = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
Connect-AzAccount
if ([string]::IsNullOrEmpty($AzureClientId))
{
Connect-AzAccount
} else {
$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
$alreadyExists = $true;
@@ -169,23 +193,57 @@ Function GenerateResourcesAndImage {
$storageAccountName = $storageAccountName.Replace("-", "").Replace("_", "").Replace("(", "").Replace(")", "").ToLower()
$storageAccountName += "001"
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS"
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS" -AllowBlobPublicAccess $AllowBlobPublicAccess -EnableHttpsTrafficOnly $EnableHttpsTrafficOnly
$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
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)
$spAppId = $sp.ApplicationId
$spClientId = $sp.ApplicationId
$spObjectId = $sp.Id
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
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
}
}
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`"", ""
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
# "", "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`"", ""
} 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
@@ -194,16 +252,20 @@ Function GenerateResourcesAndImage {
throw "'packer' binary is not found on PATH"
}
if($RestrictToAgentIpAddress -eq $true) {
$AgentIp = (Invoke-RestMethod http://ipinfo.io/json).ip
Write-Host "Restricting access to packer generated VM to agent IP Address: $AgentIp"
}
& $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)" `
-var "allowed_inbound_ip_addresses=$($AgentIp)" `
$builderScriptPath
}
}
@@ -22,7 +22,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:
@@ -51,8 +51,8 @@ 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
@@ -92,8 +92,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)
@@ -17,4 +17,4 @@ jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu1804
image_readme_name: Ubuntu1804-README.md
image_readme_name: Ubuntu1804-Readme.md
@@ -17,4 +17,4 @@ jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu2004
image_readme_name: Ubuntu2004-README.md
image_readme_name: Ubuntu2004-Readme.md
@@ -16,5 +16,5 @@ pr:
jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu1604
image_readme_name: Ubuntu1604-README.md
image_type: windows2022
image_readme_name: Windows2022-Readme.md
-2
View File
@@ -2,7 +2,6 @@ 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,
@@ -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" `
+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 group deployment 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 succesfully"
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"
}
+227
View File
@@ -0,0 +1,227 @@
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
$images = anka --machine-readable registry --registry-path $RegistryUrl list | ConvertFrom-Json | ForEach-Object body
$images | Where-Object name -eq $TemplateName | ForEach-Object {
$id = $_.id
Show-StringWithFormat "Deleting '$TemplateName[$id]' VM and '$TagName' tag"
$uri = '{0}/registry/vm?id={1}' -f $RegistryUrl, $id
Invoke-WebRequest -Uri $uri -Method Delete | Out-Null
}
$command = "anka registry --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 = { 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,184 @@
[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 {
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
Write-Host "`t[*] Installing Software Updates on '$TemplateName' VM:"
Install-SoftwareUpdate -HostName $ipAddress | Show-StringWithFormat
# Check if Action: restart
if ($newUpdates.Contains("Action: restart")) {
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: $updates"
Show-StringWithFormat $updates
exit 1
}
}
Write-Host "`t[*] Show the install history:"
$hUpdates = Get-SoftwareUpdateHistory -HostName $ipAddress
Show-StringWithFormat $hUpdates
}
function Invoke-UpdateSettings {
$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
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:"
$macOSInstaller = Get-MacOSInstaller -MacOSVersion $MacOSVersion -DownloadLatestVersion $DownloadLatestVersion -BetaSearch $BetaSearch
$shortMacOSVersion = Get-ShortMacOSVersion -MacOSVersion $MacOSVersion
if ([string]::IsNullOrEmpty($TemplateName)) {
$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
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
+339
View File
@@ -0,0 +1,339 @@
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/virtual-environments/main/images/macos/provision/bootstrap-provisioner/kcpassword.py"
$script = Invoke-RestMethod -Uri $url
$base64 = [Convert]::ToBase64String($script.ToCharArray())
$kcpassword = "echo $base64 | base64 --decode > ~/kcpassword;sudo python ./kcpassword '${Password}';rm ./kcpassword"
$loginwindow = "sudo /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser '${UserName}';sudo /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUserScreenLocked -bool false"
$command = "${kcpassword};$loginwindow"
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-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
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*${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
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
)
$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
}
}
@@ -75,7 +75,6 @@ jobs:
-var="vm_password=$(vm-password)" `
-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 `
@@ -121,15 +120,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()
@@ -141,6 +131,9 @@ jobs:
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-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)'
@@ -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 +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: "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-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'
+18 -6
View File
@@ -39,7 +39,13 @@ param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$VIPassword
[string]$VIPassword,
[int32]$CpuCount,
[int32]$CoresPerSocketCount,
[int64]$Memory
)
# Import helpers module
@@ -56,13 +62,12 @@ try {
}
$vm = Get-VM $VMName
if ($env:AGENT_JOBSTATUS -eq 'Failed') {
try {
if($vm.PowerState -ne "PoweredOff") {
Stop-VM -VM $vm -Confirm:$false -ErrorAction Stop
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'"
@@ -70,8 +75,15 @@ if ($env:AGENT_JOBSTATUS -eq 'Failed') {
}
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'"
}
}
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'"
}
+12 -6
View File
@@ -54,14 +54,19 @@ 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 {
$availableDatastores = $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
$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 +78,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)
-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
+370
View File
@@ -0,0 +1,370 @@
| Announcements |
|-|
| [[All OSs] Python version 3.5 will be removed from the images on January 24, 2022](https://github.com/actions/virtual-environments/issues/4744) |
***
# Ubuntu 18.04.6 LTS
- Linux kernel version: 5.4.0-1064-azure
- Image Version: 20211219.1
## Installed Software
### Language and Runtime
- Bash 4.4.20(1)-release
- Clang 9.0.0
- Clang-format 9.0.0
- Erlang 24.1.7 (Eshell 12.1.5)
- Erlang rebar3 3.17.0
- GNU C++ 7.5.0, 9.4.0, 10.3.0
- GNU Fortran 7.5.0, 9.4.0, 10.3.0
- Julia 1.7.0
- Kotlin 1.6.0-release-798
- Mono 6.12.0.122 (apt source repository: https://download.mono-project.com/repo/ubuntu stable-bionic main)
- MSBuild 16.6.0.15201 (from /usr/lib/mono/msbuild/15.0/bin/MSBuild.dll)
- Node 16.13.1
- Perl 5.26.1
- Python 2.7.17
- Python3 3.6.9
- Ruby 2.5.1p57
- Swift 5.5.2
### Package Management
- cpan 1.64
- Helm 3.7.2
- Homebrew 3.3.8
- Miniconda 4.10.3
- Npm 8.1.2
- Pip 9.0.1
- Pip3 9.0.1
- Pipx 0.16.4
- RubyGems 2.7.6
- Vcpkg (build from master \<50fd3d995>)
- Yarn 1.22.17
#### Environment variables
| Name | Value |
| ----------------------- | ---------------------- |
| CONDA | /usr/share/miniconda |
| VCPKG_INSTALLATION_ROOT | /usr/local/share/vcpkg |
### Project Management
- Ant 1.10.5
- Gradle 7.3.2
- Maven 3.8.4
- Sbt 1.5.7
### Tools
- Ansible 2.11.7
- apt-fast 1.9.11
- AzCopy 10.13.0 (available by `azcopy` and `azcopy10` aliases)
- Bazel 4.2.2
- Bazelisk 1.11.0
- Bicep 0.4.1124
- Buildah 1.19.6 (apt source repository: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable)
- CMake 3.22.1
- CodeQL Action Bundle 2.7.3
- Docker Compose v1 1.29.2
- Docker Compose v2 2.2.2+azure-1
- Docker-Buildx 0.7.1
- Docker-Moby Client 20.10.11+azure-3
- Docker-Moby Server 20.10.11+azure-3
- Git 2.34.1 (apt source repository: ppa:git-core/ppa)
- Git LFS 3.0.2 (apt source repository: https://packagecloud.io/install/repositories/github/git-lfs)
- Git-ftp 1.3.1
- Haveged 1.9.1
- Heroku 7.59.2
- HHVM (HipHop VM) 4.140.1
- jq 1.5
- Kind 0.11.1
- Kubectl 1.23.1
- Kustomize 4.4.1
- Leiningen 2.9.8
- MediaInfo 17.12
- Mercurial 4.5.3
- Minikube 1.24.0
- n 8.0.1
- Newman 5.3.0
- nvm 0.39.1
- OpenSSL 1.1.1 11 Sep 2018
- Packer 1.7.8
- Parcel 2.0.1
- PhantomJS 2.1.1
- Podman 3.0.1 (apt source repository: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable)
- Pulumi 3.19.0
- R 4.1.2
- Skopeo 1.2.2 (apt source repository: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable)
- Sphinx Open Source Search Server 2.2.11
- SVN 1.9.7
- Terraform 1.1.2
- yamllint 1.26.3
- yq 4.16.1
- zstd 1.5.0 (homebrew)
### CLI Tools
- Alibaba Cloud CLI 3.0.102
- AWS CLI 1.22.24
- AWS CLI Session manager plugin 1.2.279.0
- AWS SAM CLI 1.36.0
- Azure CLI (azure-cli) 2.31.0 (installation method: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt)
- Azure CLI (azure-devops) 0.22.0
- GitHub CLI 2.3.0
- Google Cloud SDK 367.0.0 (apt source repository: https://packages.cloud.google.com/apt)
- Hub CLI 2.14.2
- Netlify CLI 8.1.8
- OpenShift CLI 4.9.11
- ORAS CLI 0.12.0
- Vercel CLI 23.1.2
### Java
| Version | Vendor | Environment Variable |
| ------------------- | ------------- | -------------------- |
| 8.0.292+1 (default) | Adopt OpenJDK | JAVA_HOME_8_X64 |
| 11.0.11+9 | Adopt OpenJDK | JAVA_HOME_11_X64 |
| 12.0.2+10 | Adopt OpenJDK | JAVA_HOME_12_X64 |
### PHP
| Tool | Version |
| -------- | ---------------------------------------- |
| PHP | 7.1.33 7.2.34 7.3.33 7.4.26 8.0.13 8.1.0 |
| Composer | 2.1.14 |
| PHPUnit | 8.5.21 |
```
Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled.
```
### Haskell
- Cabal 3.6.2.0
- GHC 9.2.1
- GHCup 0.1.17.4
- Stack 2.7.3
### Rust Tools
- Cargo 1.57.0
- Rust 1.57.0
- Rustdoc 1.57.0
- Rustup 1.24.3
#### Packages
- Bindgen 0.59.2
- Cargo audit 0.16.0
- Cargo clippy 0.1.57
- Cargo outdated 0.10.2
- Cbindgen 0.20.0
- Rustfmt 1.4.37
### Browsers and Drivers
- Google Chrome 96.0.4664.110
- ChromeDriver 96.0.4664.45
- Mozilla Firefox 95.0
- Geckodriver 0.30.0
- Chromium 96.0.4664.0
- Selenium server 4.1.0
#### Environment variables
| Name | Value |
| ----------------- | ----------------------------------- |
| CHROMEWEBDRIVER | /usr/local/share/chrome_driver |
| GECKOWEBDRIVER | /usr/local/share/gecko_driver |
| SELENIUM_JAR_PATH | /usr/share/java/selenium-server.jar |
### .NET Core SDK
- 2.1.302 2.1.403 2.1.526 2.1.617 2.1.701 2.1.818 3.1.120 3.1.202 3.1.302 3.1.416 5.0.104 5.0.210 5.0.303 5.0.404
### Databases
- MongoDB 5.0.5 (apt source repository: https://repo.mongodb.org/apt/ubuntu)
- PostgreSQL 14.1 (apt source repository: https://apt.postgresql.org/pub/repos/apt/)
- sqlite3 3.22.0
#### MySQL
- MySQL 5.7.36
- 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.8.0001.1
- SqlPackage 15.0.5282.3
### Cached Tools
#### Go
- 1.15.15
- 1.16.12
- 1.17.5
#### Node.js
- 12.22.8
- 14.18.2
- 16.13.1
#### PyPy
- 2.7.18 [PyPy 7.3.6]
- 3.6.12 [PyPy 7.3.3]
#### Python
- 2.7.18
- 3.5.10
- 3.6.15
- 3.7.12
- 3.8.12
- 3.9.9
- 3.10.1
#### Ruby
- 2.4.10
- 2.5.9
- 2.6.9
- 2.7.5
- 3.0.3
#### Environment variables
| Name | Value | Architecture |
| --------------- | ----------------------------------- | ------------ |
| GOROOT_1_15_X64 | /opt/hostedtoolcache/go/1.15.15/x64 | x64 |
| GOROOT_1_16_X64 | /opt/hostedtoolcache/go/1.16.12/x64 | x64 |
| GOROOT_1_17_X64 | /opt/hostedtoolcache/go/1.17.5/x64 | x64 |
### PowerShell Tools
- PowerShell 7.2.1
#### PowerShell Modules
| Module | Version |
| ---------- | ------- |
| MarkdownPS | 1.9 |
| Pester | 5.3.1 |
#### Az PowerShell Modules
- 6.4.0 3.1.0.zip 4.4.0.zip 5.9.0.zip
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ------- | ------- | ------------------------- | ------------- | ---------- |
| apache2 | 2.4.29 | /etc/apache2/apache2.conf | inactive | 80 |
| nginx | 1.14.0 | /etc/nginx/nginx.conf | inactive | 80 |
### Android
| Package Name | Version |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Android Command Line Tools | 4.0 |
| Android Emulator | 31.1.4 |
| Android SDK Build-tools | 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<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 |
| Android SDK Platform-Tools | 31.0.3 |
| Android SDK Platforms | 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)<br>android-26 (rev 2)<br>android-25 (rev 3)<br>android-24 (rev 2)<br>android-23 (rev 3) |
| Android SDK Tools | 26.1.1 |
| Android Support Repository | 47.0.0 |
| CMake | 3.10.2<br>3.18.1 |
| 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 |
| Google Play services | 49 |
| Google Repository | 58 |
| NDK | 21.4.7075529 (default)<br>23.1.7779620 |
| SDK Patch Applier v4 | 1 |
#### Environment variables
| Name | Value |
| ----------------------- | ------------------------------------------------------------------------------------ |
| ANDROID_HOME | /usr/local/lib/android/sdk |
| ANDROID_NDK_HOME | /usr/local/lib/android/sdk/ndk-bundle -> /usr/local/lib/android/sdk/ndk/21.4.7075529 |
| ANDROID_NDK_LATEST_HOME | /usr/local/lib/android/sdk/ndk/23.1.7779620 |
| ANDROID_NDK_ROOT | /usr/local/lib/android/sdk/ndk-bundle -> /usr/local/lib/android/sdk/ndk/21.4.7075529 |
| ANDROID_SDK_ROOT | /usr/local/lib/android/sdk |
### Cached Docker images
| Repository:Tag | Digest | Created |
| ----------------------- | ------------------------------------------------------------------------ | ---------- |
| alpine:3.12 | sha256:d9459083f962de6bd980ae6a05be2a4cf670df6a1d898157bceb420342bec280 | 2021-11-12 |
| alpine:3.13 | sha256:026f721af4cf2843e07bba648e158fb35ecc876d822130633cc49f707f0fc88c | 2021-11-12 |
| alpine:3.14 | sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 | 2021-11-12 |
| buildpack-deps:bullseye | sha256:5445b145c8a1a2f7e5a4b233f571c629aed12fce435496f942ad267f21a05ff2 | 2021-12-02 |
| buildpack-deps:buster | sha256:c11cd0a4c97acd1aa8d2289aee5c126ac78adc48108744c104f6741cbd9a1f6c | 2021-12-02 |
| buildpack-deps:stretch | sha256:bb93e2c2858cb20f7f16e433773adb2c583fce38dc9c71976c62bf098f956093 | 2021-12-02 |
| debian:10 | sha256:5b57f8c365c40fde437d53b953c436995525be7c481eb0128b1cbf3b49b0df18 | 2021-12-02 |
| debian:11 | sha256:45ee40a844048c2f6d0105899c1a17733530b56d481612608aab5e2e4048570b | 2021-12-02 |
| debian:9 | sha256:aa78ddaa7f8a14bad8f940ebff5542377f91843f6dcc168e41a8628c6007e815 | 2021-12-02 |
| moby/buildkit:latest | sha256:d6c89b7085b106301645ddcc77cf64eb7b705ab507b72d52d130ac33f1300417 | 2021-11-18 |
| node:12 | sha256:f881ce751096a214a7e595b0ccf9ee7d6e38d8e0141d7e9d5880b2f242ad392b | 2021-12-18 |
| node:12-alpine | sha256:8fad09b7620b2bc715cbba92e3313c64a797e453f560118576f1740a44584d5d | 2021-12-18 |
| node:14 | sha256:52c884d7cf8509c27def168415a1ff23a0bd95d358dd5787ca77b60474dcb3db | 2021-12-02 |
| node:14-alpine | sha256:7bcf853eeb97a25465cb385b015606c22e926f548cbd117f85b7196df8aa0d29 | 2021-12-02 |
| node:16 | sha256:89b59ce49929d8a8e230946bdb1b58c14cdbbb86c9a7397610afcecfce1be035 | 2021-12-02 |
| node:16-alpine | sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dcd84bd9753b2027e1 | 2021-12-02 |
| ubuntu:16.04 | sha256:0f71fa8d4d2d4292c3c617fda2b36f6dabe5c8b6e34c3dc5b0d17d4e704bd39c | 2021-08-31 |
| ubuntu:18.04 | sha256:0fedbd5bd9fb72089c7bbca476949e10593cebed9b1fb9edf5b79dbbacddd7d6 | 2021-10-01 |
| ubuntu:20.04 | sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 | 2021-10-16 |
### Installed apt packages
| Name | Version |
| ----------------- | --------------------------------- |
| aria2 | 1.33.1-1 |
| binutils | 2.30-21ubuntu1\~18.04.7 |
| bison | 2:3.0.4.dfsg-1build1 |
| brotli | 1.0.3-1ubuntu1.3 |
| build-essential | 12.4ubuntu1 |
| bzip2 | 1.0.6-8.1ubuntu0.2 |
| coreutils | 8.28-1ubuntu1 |
| curl | 7.58.0-2ubuntu3.16 |
| dbus | 1.12.2-1ubuntu1.2 |
| dnsutils | 1:9.11.3+dfsg-1ubuntu1.16 |
| dpkg | 1.19.0.5ubuntu2.3 |
| fakeroot | 1.22-2ubuntu1 |
| file | 1:5.32-2ubuntu0.4 |
| flex | 2.6.4-6 |
| ftp | 0.17-34 |
| gnupg2 | 2.2.4-1ubuntu1.4 |
| haveged | 1.9.1-6 |
| imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.12 |
| iproute2 | 4.15.0-2ubuntu1.3 |
| iputils-ping | 3:20161105-1ubuntu3 |
| jq | 1.5+dfsg-2 |
| lib32z1 | 1:1.2.11.dfsg-0ubuntu2 |
| libc++-dev | 6.0-2 |
| libc++abi-dev | 6.0-2 |
| libcurl3 | 7.58.0-2ubuntu3.16 |
| libgbm-dev | 20.0.8-0ubuntu1\~18.04.1 |
| libgconf-2-4 | 3.2.6-4ubuntu1 |
| libgsl-dev | 2.4+dfsg-6 |
| libgtk-3-0 | 3.22.30-1ubuntu4 |
| libmagic-dev | 1:5.32-2ubuntu0.4 |
| libmagickcore-dev | 8:6.9.7.4+dfsg-16ubuntu6.12 |
| libmagickwand-dev | 8:6.9.7.4+dfsg-16ubuntu6.12 |
| libsecret-1-dev | 0.18.6-1 |
| libsqlite3-dev | 3.22.0-1ubuntu0.4 |
| libunwind8 | 1.2.1-8 |
| libxkbfile-dev | 1:1.0.9-2 |
| libxss1 | 1:1.2.2-1 |
| locales | 2.27-3ubuntu1.4 |
| m4 | 1.4.18-1 |
| mediainfo | 17.12-1 |
| mercurial | 4.5.3-1ubuntu2.2 |
| net-tools | 1.60+git20161116.90da8a0-1ubuntu1 |
| netcat | 1.10-41.1 |
| openssh-client | 1:7.6p1-4ubuntu0.5 |
| p7zip-full | 16.02+dfsg-6 |
| p7zip-rar | 16.02-2 |
| parallel | 20161222-1 |
| pass | 1.7.1-3 |
| patchelf | 0.9-1 |
| pkg-config | 0.29.1-0ubuntu2 |
| pollinate | 4.33-0ubuntu1\~18.04.2 |
| python-setuptools | 39.0.1-2 |
| rpm | 4.14.1+dfsg1-2 |
| rsync | 3.1.2-2.1ubuntu1.2 |
| shellcheck | 0.4.6-1 |
| sphinxsearch | 2.2.11-2 |
| sqlite3 | 3.22.0-1ubuntu0.4 |
| ssh | 1:7.6p1-4ubuntu0.5 |
| sshpass | 1.06-1 |
| subversion | 1.9.7-4ubuntu1 |
| sudo | 1.8.21p2-3ubuntu1.4 |
| swig | 3.0.12-1 |
| telnet | 0.17-41 |
| texinfo | 6.5.0.dfsg.1-2 |
| time | 1.7-25.1build1 |
| tk | 8.6.0+9 |
| tzdata | 2021e-0ubuntu0.18.04 |
| unzip | 6.0-21ubuntu1.1 |
| upx | 3.94-4 |
| wget | 1.19.4-1ubuntu2.2 |
| xorriso | 1.4.8-3 |
| xvfb | 2:1.19.6-1ubuntu4.10 |
| xz-utils | 5.2.2-1.3 |
| zip | 3.0-11build1 |
| zsync | 0.6.2-3ubuntu1 |
-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
+380
View File
@@ -0,0 +1,380 @@
| Announcements |
|-|
| [[All OSs] Python version 3.5 will be removed from the images on January 24, 2022](https://github.com/actions/virtual-environments/issues/4744) |
***
# Ubuntu 20.04.3 LTS
- Linux kernel version: 5.11.0-1022-azure
- Image Version: 20211219.1
## 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
- Erlang 24.1.7 (Eshell 12.1.5)
- Erlang rebar3 3.17.0
- GNU C++ 9.3.0, 10.3.0
- GNU Fortran 9.3.0, 10.3.0
- Julia 1.7.0
- Kotlin 1.6.0-release-798
- Mono 6.12.0.122 (apt source repository: https://download.mono-project.com/repo/ubuntu stable-focal main)
- MSBuild 16.6.0.15201 (from /usr/lib/mono/msbuild/15.0/bin/MSBuild.dll)
- Node 16.13.1
- Perl 5.30.0
- Python 3.8.10
- Python3 3.8.10
- Ruby 2.7.0p0
- Swift 5.5.2
### Package Management
- cpan 1.64
- Helm 3.7.2
- Homebrew 3.3.8
- Miniconda 4.10.3
- Npm 8.1.2
- Pip 20.0.2
- Pip3 20.0.2
- Pipx 0.16.4
- RubyGems 3.1.2
- Vcpkg (build from master \<50fd3d995>)
- Yarn 1.22.17
#### Environment variables
| Name | Value |
| ----------------------- | ---------------------- |
| CONDA | /usr/share/miniconda |
| VCPKG_INSTALLATION_ROOT | /usr/local/share/vcpkg |
### Project Management
- Ant 1.10.7
- Gradle 7.3.2
- Lerna 4.0.0
- Maven 3.8.4
- Sbt 1.5.7
### Tools
- Ansible 2.12.1
- apt-fast 1.9.11
- AzCopy 10.13.0 (available by `azcopy` and `azcopy10` aliases)
- Bazel 4.2.2
- Bazelisk 1.11.0
- Bicep 0.4.1124
- Buildah 1.21.3 (apt source repository: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable)
- CMake 3.22.1
- CodeQL Action Bundle 2.7.3
- Docker Compose v1 1.29.2
- Docker Compose v2 2.2.2+azure-1
- Docker-Buildx 0.7.1
- Docker-Moby Client 20.10.11+azure-3
- Docker-Moby Server 20.10.11+azure-3
- Fastlane 2.199.0
- Git 2.34.1 (apt source repository: ppa:git-core/ppa)
- Git LFS 3.0.2 (apt source repository: https://packagecloud.io/install/repositories/github/git-lfs)
- Git-ftp 1.6.0
- Haveged 1.9.1
- Heroku 7.59.2
- HHVM (HipHop VM) 4.140.1
- jq 1.6
- Kind 0.11.1
- Kubectl 1.23.1
- Kustomize 4.4.1
- Leiningen 2.9.8
- MediaInfo 19.09
- Mercurial 5.3.1
- Minikube 1.24.0
- n 8.0.1
- Newman 5.3.0
- nvm 0.39.1
- OpenSSL 1.1.1f 31 Mar 2020
- Packer 1.7.8
- Parcel 2.0.1
- PhantomJS 2.1.1
- Podman 3.4.2 (apt source repository: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable)
- Pulumi 3.19.0
- R 4.1.2
- Skopeo 1.3.0 (apt source repository: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable)
- Sphinx Open Source Search Server 2.2.11
- SVN 1.13.0
- Terraform 1.1.2
- yamllint 1.26.3
- yq 4.16.1
- zstd 1.5.0 (homebrew)
### CLI Tools
- Alibaba Cloud CLI 3.0.102
- AWS CLI 2.4.6
- AWS CLI Session manager plugin 1.2.279.0
- AWS SAM CLI 1.36.0
- Azure CLI (azure-cli) 2.31.0 (installation method: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt)
- Azure CLI (azure-devops) 0.22.0
- GitHub CLI 2.3.0
- Google Cloud SDK 367.0.0 (apt source repository: https://packages.cloud.google.com/apt)
- Hub CLI 2.14.2
- Netlify CLI 8.1.8
- OpenShift CLI 4.9.11
- ORAS CLI 0.12.0
- Vercel CLI 23.1.2
### Java
| Version | Vendor | Environment Variable |
| ------------------- | ------------- | -------------------- |
| 8.0.292+1 | Adopt OpenJDK | JAVA_HOME_8_X64 |
| 11.0.11+9 (default) | Adopt OpenJDK | JAVA_HOME_11_X64 |
### GraalVM
| Version | Environment variables |
| --------- | --------------------- |
| CE 21.3.0 | GRAALVM_11_ROOT |
### PHP
| Tool | Version |
| -------- | ------------------- |
| PHP | 7.4.26 8.0.13 8.1.0 |
| Composer | 2.1.14 |
| PHPUnit | 8.5.21 |
```
Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled.
```
### Haskell
- Cabal 3.6.2.0
- GHC 9.2.1
- GHCup 0.1.17.4
- Stack 2.7.3
### Rust Tools
- Cargo 1.57.0
- Rust 1.57.0
- Rustdoc 1.57.0
- Rustup 1.24.3
#### Packages
- Bindgen 0.59.2
- Cargo audit 0.16.0
- Cargo clippy 0.1.57
- Cargo outdated 0.10.2
- Cbindgen 0.20.0
- Rustfmt 1.4.37
### Browsers and Drivers
- Google Chrome 96.0.4664.110
- ChromeDriver 96.0.4664.45
- Mozilla Firefox 95.0
- Geckodriver 0.30.0
- Chromium 96.0.4664.0
- Selenium server 4.1.0
#### Environment variables
| Name | Value |
| ----------------- | ----------------------------------- |
| CHROMEWEBDRIVER | /usr/local/share/chrome_driver |
| GECKOWEBDRIVER | /usr/local/share/gecko_driver |
| SELENIUM_JAR_PATH | /usr/share/java/selenium-server.jar |
### .NET Core SDK
- 2.1.302 2.1.403 2.1.526 2.1.617 2.1.701 2.1.818 3.1.120 3.1.202 3.1.302 3.1.416 5.0.104 5.0.210 5.0.303 5.0.404
### Databases
- MongoDB 5.0.5 (apt source repository: https://repo.mongodb.org/apt/ubuntu)
- PostgreSQL 14.1 (apt source repository: https://apt.postgresql.org/pub/repos/apt/)
- sqlite3 3.31.1
#### MySQL
- MySQL 8.0.26
- 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.8.0001.1
- SqlPackage 15.0.5282.3
### Cached Tools
#### Go
- 1.15.15
- 1.16.12
- 1.17.5
#### Node.js
- 12.22.8
- 14.18.2
- 16.13.1
#### PyPy
- 2.7.18 [PyPy 7.3.6]
- 3.6.12 [PyPy 7.3.3]
- 3.7.12 [PyPy 7.3.7]
- 3.8.12 [PyPy 7.3.7]
#### Python
- 2.7.18
- 3.5.10
- 3.6.15
- 3.7.12
- 3.8.12
- 3.9.9
- 3.10.1
#### Ruby
- 2.5.9
- 2.6.9
- 2.7.5
- 3.0.3
#### Environment variables
| Name | Value | Architecture |
| --------------- | ----------------------------------- | ------------ |
| GOROOT_1_15_X64 | /opt/hostedtoolcache/go/1.15.15/x64 | x64 |
| GOROOT_1_16_X64 | /opt/hostedtoolcache/go/1.16.12/x64 | x64 |
| GOROOT_1_17_X64 | /opt/hostedtoolcache/go/1.17.5/x64 | x64 |
### PowerShell Tools
- PowerShell 7.2.1
#### PowerShell Modules
| Module | Version |
| ---------------- | ------- |
| MarkdownPS | 1.9 |
| Pester | 5.3.1 |
| PSScriptAnalyzer | 1.20.0 |
#### Az PowerShell Modules
- 6.4.0 3.1.0.zip 4.4.0.zip 5.9.0.zip
### 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 | 4.0 |
| Android Emulator | 31.1.4 |
| Android SDK Build-tools | 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 | 31.0.3 |
| Android SDK Platforms | 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 |
| Google Play services | 49 |
| Google Repository | 58 |
| NDK | 21.4.7075529 (default)<br>22.1.7171670<br>23.1.7779620 |
| SDK Patch Applier v4 | 1 |
#### Environment variables
| Name | Value |
| ----------------------- | ------------------------------------------------------------------------------------ |
| ANDROID_HOME | /usr/local/lib/android/sdk |
| ANDROID_NDK_HOME | /usr/local/lib/android/sdk/ndk-bundle -> /usr/local/lib/android/sdk/ndk/21.4.7075529 |
| ANDROID_NDK_LATEST_HOME | /usr/local/lib/android/sdk/ndk/23.1.7779620 |
| ANDROID_NDK_ROOT | /usr/local/lib/android/sdk/ndk-bundle -> /usr/local/lib/android/sdk/ndk/21.4.7075529 |
| ANDROID_SDK_ROOT | /usr/local/lib/android/sdk |
### Cached Docker images
| Repository:Tag | Digest | Created |
| ----------------------- | ------------------------------------------------------------------------ | ---------- |
| alpine:3.12 | sha256:d9459083f962de6bd980ae6a05be2a4cf670df6a1d898157bceb420342bec280 | 2021-11-12 |
| alpine:3.13 | sha256:026f721af4cf2843e07bba648e158fb35ecc876d822130633cc49f707f0fc88c | 2021-11-12 |
| alpine:3.14 | sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 | 2021-11-12 |
| buildpack-deps:bullseye | sha256:5445b145c8a1a2f7e5a4b233f571c629aed12fce435496f942ad267f21a05ff2 | 2021-12-02 |
| buildpack-deps:buster | sha256:c11cd0a4c97acd1aa8d2289aee5c126ac78adc48108744c104f6741cbd9a1f6c | 2021-12-02 |
| buildpack-deps:stretch | sha256:bb93e2c2858cb20f7f16e433773adb2c583fce38dc9c71976c62bf098f956093 | 2021-12-02 |
| debian:10 | sha256:5b57f8c365c40fde437d53b953c436995525be7c481eb0128b1cbf3b49b0df18 | 2021-12-02 |
| debian:11 | sha256:45ee40a844048c2f6d0105899c1a17733530b56d481612608aab5e2e4048570b | 2021-12-02 |
| debian:9 | sha256:aa78ddaa7f8a14bad8f940ebff5542377f91843f6dcc168e41a8628c6007e815 | 2021-12-02 |
| moby/buildkit:latest | sha256:d6c89b7085b106301645ddcc77cf64eb7b705ab507b72d52d130ac33f1300417 | 2021-11-18 |
| node:12 | sha256:f881ce751096a214a7e595b0ccf9ee7d6e38d8e0141d7e9d5880b2f242ad392b | 2021-12-18 |
| node:12-alpine | sha256:8fad09b7620b2bc715cbba92e3313c64a797e453f560118576f1740a44584d5d | 2021-12-18 |
| node:14 | sha256:52c884d7cf8509c27def168415a1ff23a0bd95d358dd5787ca77b60474dcb3db | 2021-12-02 |
| node:14-alpine | sha256:7bcf853eeb97a25465cb385b015606c22e926f548cbd117f85b7196df8aa0d29 | 2021-12-02 |
| node:16 | sha256:89b59ce49929d8a8e230946bdb1b58c14cdbbb86c9a7397610afcecfce1be035 | 2021-12-02 |
| node:16-alpine | sha256:a9b9cb880fa429b0bea899cd3b1bc081ab7277cc97e6d2dcd84bd9753b2027e1 | 2021-12-02 |
| ubuntu:16.04 | sha256:0f71fa8d4d2d4292c3c617fda2b36f6dabe5c8b6e34c3dc5b0d17d4e704bd39c | 2021-08-31 |
| ubuntu:18.04 | sha256:0fedbd5bd9fb72089c7bbca476949e10593cebed9b1fb9edf5b79dbbacddd7d6 | 2021-10-01 |
| ubuntu:20.04 | sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 | 2021-10-16 |
### Installed apt packages
| Name | Version |
| ---------------------- | --------------------------------- |
| acl | 2.2.53-6 |
| aria2 | 1.35.0-1build1 |
| binutils | 2.34-6ubuntu1.3 |
| 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.7 |
| dbus | 1.12.16-2ubuntu2.1 |
| dnsutils | 1:9.16.1-0ubuntu2.9 |
| dpkg | 1.19.7ubuntu3 |
| 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.1 |
| haveged | 1.9.1-6ubuntu1 |
| imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.4 |
| iproute2 | 5.5.0-1ubuntu1 |
| iputils-ping | 3:20190709-3 |
| jq | 1.6-1ubuntu0.20.04.1 |
| lib32z1 | 1:1.2.11.dfsg-2ubuntu1.2 |
| libc++-dev | 1:10.0-50\~exp1 |
| libc++abi-dev | 1:10.0-50\~exp1 |
| libcurl4 | 7.68.0-1ubuntu2.7 |
| libgbm-dev | 21.0.3-0ubuntu0.3\~20.04.5 |
| libgconf-2-4 | 3.2.6-6ubuntu1 |
| libgsl-dev | 2.5+dfsg-6build1 |
| libgtk-3-0 | 3.24.20-0ubuntu1 |
| libmagic-dev | 1:5.38-4 |
| libmagickcore-dev | 8:6.9.10.23+dfsg-2.1ubuntu11.4 |
| libmagickwand-dev | 8:6.9.10.23+dfsg-2.1ubuntu11.4 |
| libsecret-1-dev | 0.20.4-0ubuntu1 |
| libsqlite3-dev | 3.31.1-4ubuntu0.2 |
| libunwind8 | 1.2.1-9build1 |
| libxkbfile-dev | 1:1.1.0-1 |
| libxss1 | 1:1.2.3-1 |
| locales | 2.31-0ubuntu9.2 |
| 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.3 |
| 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.1 |
| shellcheck | 0.7.0-2build2 |
| sphinxsearch | 2.2.11-2ubuntu2 |
| sqlite3 | 3.31.1-4ubuntu0.2 |
| ssh | 1:8.2p1-4ubuntu0.3 |
| sshpass | 1.06-1 |
| subversion | 1.13.0-3 |
| sudo | 1.8.31-1ubuntu1.2 |
| swig | 4.0.1-5build1 |
| telnet | 0.17-41.2build1 |
| texinfo | 6.7.0.dfsg.2-5 |
| time | 1.7-25.1build1 |
| tk | 8.6.9+1 |
| tzdata | 2021e-0ubuntu0.20.04 |
| unzip | 6.0-25ubuntu1 |
| upx | 3.95-2build1 |
| wget | 1.20.3-1ubuntu2 |
| xorriso | 1.5.2-1 |
| xvfb | 2:1.20.13-1ubuntu1\~20.04.2 |
| xz-utils | 5.2.4-1ubuntu1 |
| zip | 3.0-11build1 |
| zsync | 0.6.2-3ubuntu1 |
-2
View File
@@ -1,2 +0,0 @@
# Name of the pool supported by this image
POOL_NAME="Ubuntu 1604"
@@ -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
@@ -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_PATH', '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}
}
}
}
@@ -16,4 +16,37 @@ function Get-FirefoxVersion {
function Get-GeckodriverVersion {
$geckodriverVersion = geckodriver --version | Select-Object -First 1 | Take-OutputPart -Part 1
return "Geckodriver $geckodriverVersion"
}
}
function Get-ChromiumVersion {
$chromiumVersion = chromium-browser --version | Take-OutputPart -Part 0,1
return $chromiumVersion
}
function Get-SeleniumVersion {
$seleniumBinaryName = Get-ToolsetValue "selenium.binary_name"
$fullSeleniumVersion = (Get-ChildItem "/usr/share/java/${seleniumBinaryName}-*").Name -replace "${seleniumBinaryName}-"
return "Selenium server $fullSeleniumVersion"
}
function Build-BrowserWebdriversEnvironmentTable {
return @(
@{
"Name" = "CHROMEWEBDRIVER"
"Value" = $env:CHROMEWEBDRIVER
},
@{
"Name" = "GECKOWEBDRIVER"
"Value" = $env:GECKOWEBDRIVER
},
@{
"Name" = "SELENIUM_JAR_PATH"
"Value" = $env:SELENIUM_JAR_PATH
}
) | ForEach-Object {
[PSCustomObject] @{
"Name" = $_.Name
"Value" = $_.Value
}
}
}
+21 -22
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]
}
}
@@ -28,37 +28,36 @@ function Get-ToolcacheGoVersions {
return Get-ChildItem $toolcachePath -Name | Sort-Object { [Version]$_ }
}
function Get-ToolcacheBoostVersions {
$toolcachePath = Join-Path $env:AGENT_TOOLSDIRECTORY "boost"
if (-not (Test-Path $toolcachePath)) {
return @()
function Build-GoEnvironmentTable {
return Get-CachedToolInstances -Name "go" -VersionCommand "version" | ForEach-Object {
$Version = [System.Version]($_.Version -Split(" "))[0]
$Name = "GOROOT_$($Version.major)_$($Version.minor)_X64"
$Value = (Get-Item env:\$Name).Value
[PSCustomObject] @{
"Name" = $Name
"Value" = (Get-Item env:\$Name).Value
"Architecture" = $_. Architecture
}
}
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 "Go" -Level 4
$output += New-MDList -Lines (Get-ToolcacheGoVersions) -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
$output += New-MDHeader "PyPy" -Level 4
$output += New-MDList -Lines (Get-ToolcachePyPyVersions) -Style Unordered
$boostVersions = Get-ToolcacheBoostVersions
if ($boostVersions.Count -gt 0) {
$output += New-MDHeader "Boost" -Level 4
$output += New-MDList -Lines $boostVersions -Style Unordered
}
$output += New-MDHeader "Python" -Level 4
$output += New-MDList -Lines (Get-ToolcachePythonVersions) -Style Unordered
$output += New-MDHeader "Ruby" -Level 4
$output += New-MDList -Lines (Get-ToolcacheRubyVersions) -Style Unordered
return $output
}
}
@@ -1,7 +1,6 @@
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Helpers.psm1") -DisableNameChecking
function Get-OSName {
lsb_release -ds
function Get-BashVersion {
$version = bash -c 'echo ${BASH_VERSION}'
return "Bash $version"
}
function Get-CPPVersions {
@@ -21,27 +20,61 @@ function Get-FortranVersions {
return "GNU Fortran " + ($fortranVersions -Join ", ")
}
function Get-ClangVersions {
$clangVersions = @()
function Get-ClangToolVersions {
param (
[Parameter(Mandatory = $true)]
[string] $ToolName,
[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 "${ToolName} version" } | ForEach-Object {
$_ -match "${ToolName} version (?<version>${VersionPattern}" | Out-Null
$Matches.version
}
} | Sort-Object {[Version]$_}
return "Clang " + ($clangVersions -Join ", ")
}
} | Sort-Object {[Version]$_}
return $toolVersions -Join ", "
}
function Get-ClangVersions {
$clangVersions = Get-ClangToolVersions -ToolName "clang"
return "Clang " + $clangVersions
}
function Get-ClangFormatVersions {
$clangFormatVersions = Get-ClangToolVersions -ToolName "clang-format"
return "Clang-format " + $clangFormatVersions
}
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 "Erlang $erlangVersion (Eshell $shellVersion)"
}
function Get-ErlangRebar3Version {
$result = Get-CommandResult "rebar3 --version"
$result.Output -match "rebar (?<version>(\d+.){2}\d+)" | Out-Null
$rebarVersion = $Matches.version
return "Erlang rebar3 $rebarVersion"
}
function Get-MonoVersion {
$monoVersion = mono --version | Out-String | Take-OutputPart -Part 4
return "Mono $monoVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "mono"
return "Mono $monoVersion (apt source repository: $aptSourceRepo)"
}
function Get-MsbuildVersion {
$msbuildVersion = msbuild -version | Select-Object -Last 1
$result = Select-String -Path (Get-Command msbuild).Source -Pattern "msbuild"
$result -match "(?<path>\/\S*\.dll)" | Out-Null
$msbuildPath = $Matches.path
return "MSBuild $msbuildVersion (from $msbuildPath)"
}
function Get-NodeVersion {
@@ -49,6 +82,10 @@ function Get-NodeVersion {
return "Node $nodeVersion"
}
function Get-OpensslVersion {
return $(openssl version)
}
function Get-PerlVersion {
$version = $(perl -e 'print substr($^V,1)')
return "Perl $version"
@@ -80,11 +117,21 @@ function Get-SwiftVersion {
return "Swift $swiftVersion"
}
function Get-KotlinVersion {
$kotlinVersion = kotlin -version | Out-String | Take-OutputPart -Part 2
return "Kotlin $kotlinVersion"
}
function Get-JuliaVersion {
$juliaVersion = julia --version | Take-OutputPart -Part 2
return "Julia $juliaVersion"
}
function Get-LernaVersion {
$version = lerna -v
return "Lerna $version"
}
function Get-HomebrewVersion {
$result = Get-CommandResult "brew -v"
$result.Output -match "Homebrew (?<version>\d+\.\d+\.\d+)" | Out-Null
@@ -92,11 +139,18 @@ function Get-HomebrewVersion {
return "Homebrew $version"
}
function Get-CpanVersion {
$result = Get-CommandResult "cpan --version" -ExpectExitCode @(25, 255)
$result.Output -match "version (?<version>\d+\.\d+) " | Out-Null
$cpanVersion = $Matches.version
return "cpan $cpanVersion"
}
function Get-GemVersion {
$result = Get-CommandResult "gem --version"
$result.Output -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
$gemVersion = $Matches.version
return "Gem $gemVersion"
return "RubyGems $gemVersion"
}
function Get-MinicondaVersion {
@@ -120,6 +174,11 @@ function Get-YarnVersion {
return "Yarn $yarnVersion"
}
function Get-ParcelVersion {
$parcelVersion = parcel --version
return "Parcel $parcelVersion"
}
function Get-PipVersion {
$result = Get-CommandResult "pip --version"
$result.Output -match "pip (?<version>\d+\.\d+\.\d+)" | Out-Null
@@ -139,7 +198,7 @@ function Get-VcpkgVersion {
$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 "Vcpkg $vcpkgVersion (build from master \<$commitId>)"
}
function Get-AntVersion {
@@ -207,12 +266,29 @@ function Build-PHPTable {
}
}
function Build-PHPSection {
$output = ""
$output += New-MDHeader "PHP" -Level 3
$output += Build-PHPTable | New-MDTable
$output += New-MDCode -Lines @(
"Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled."
)
return $output
}
function Get-GHCVersion {
$(ghc --version) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$ghcVersion = $Matches.version
return "GHC $ghcVersion"
}
function Get-GHCupVersion {
$(ghcup --version) -match "version v(?<version>\d+(\.\d+){2,})" | Out-Null
$ghcVersion = $Matches.version
return "GHCup $ghcVersion"
}
function Get-CabalVersion {
$(cabal --version | Out-String) -match "cabal-install version (?<version>\d+\.\d+\.\d+\.\d+)" | Out-Null
$cabalVersion = $Matches.version
@@ -262,21 +338,34 @@ 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 {
@@ -285,3 +374,36 @@ function Get-PipxVersion {
$pipxVersion = $Matches.Version
return "Pipx $pipxVersion"
}
function Get-GraalVMVersion {
$version = & "$env:GRAALVM_11_ROOT\bin\java" --version | Select-String -Pattern "GraalVM" | Take-OutputPart -Part 5,6
return $version
}
function Build-GraalVMTable {
$version = Get-GraalVMVersion
$envVariables = "GRAALVM_11_ROOT"
return [PSCustomObject] @{
"Version" = $version
"Environment variables" = $envVariables
}
}
function Build-PackageManagementEnvironmentTable {
return @(
@{
"Name" = "CONDA"
"Value" = $env:CONDA
},
@{
"Name" = "VCPKG_INSTALLATION_ROOT"
"Value" = $env:VCPKG_INSTALLATION_ROOT
}
) | ForEach-Object {
[PSCustomObject] @{
"Name" = $_.Name
"Value" = $_.Value
}
}
}
@@ -1,11 +1,13 @@
function Get-PostgreSqlVersion {
$postgreSQLVersion = psql --version | Take-OutputPart -Part 2
return "Postgre SQL $postgreSQLVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "postgresql"
return "PostgreSQL $postgreSQLVersion (apt source repository: $aptSourceRepo)"
}
function Get-MongoDbVersion {
$mongoDBVersion = mongod --version | Select-Object -First 1 | Take-OutputPart -Part 2 -Delimiter "v"
return "MongoDB $mongoDBVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "mongodb"
return "MongoDB $mongoDBVersion (apt source repository: $aptSourceRepo)"
}
function Get-SqliteVersion {
@@ -14,7 +16,10 @@ function Get-SqliteVersion {
}
function Get-MySQLVersion {
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "-"
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2
if (-not (Test-IsUbuntu20)) {
$mySQLVersion = $mySQLVersion | Take-OutputPart -Part 0 -Delimiter "-"
}
return "MySQL $mySQLVersion"
}
@@ -23,6 +28,11 @@ function Get-SQLCmdVersion {
return "sqlcmd $sqlcmdVersion"
}
function Get-SqlPackageVersion {
$sqlPackageVersion = sqlpackage /version
return "SqlPackage $sqlPackageVersion"
}
function Build-MySQLSection {
$output = ""
@@ -43,8 +53,9 @@ function Build-MSSQLToolsSection {
$output += New-MDHeader "MS SQL Server Client Tools" -Level 4
$output += New-MDList -Style Unordered -Lines @(
(Get-SQLCmdVersion)
(Get-SQLCmdVersion),
(Get-SqlPackageVersion)
)
return $output
}
}
@@ -3,7 +3,9 @@ param (
$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
@@ -11,10 +13,12 @@ Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Browsers.psm1") -DisableN
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
@@ -24,72 +28,88 @@ $markdown = ""
$OSName = Get-OSName
$markdown += New-MDHeader "$OSName" -Level 1
$kernelVersion = Get-KernelVersion
$markdown += New-MDList -Style Unordered -Lines @(
"$kernelVersion"
"Image Version: $env:IMAGE_VERSION"
)
$markdown += New-MDHeader "Installed Software" -Level 2
$markdown += New-MDHeader "Language and Runtime" -Level 3
$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)
$runtimesList = @(
(Get-BashVersion),
(Get-CPPVersions),
(Get-FortranVersions),
(Get-ErlangVersion),
(Get-ErlangRebar3Version),
(Get-MonoVersion),
(Get-MsbuildVersion),
(Get-NodeVersion),
(Get-PerlVersion),
(Get-PythonVersion),
(Get-Python3Version),
(Get-RubyVersion),
(Get-SwiftVersion),
(Get-JuliaVersion),
(Get-KotlinVersion),
(Get-ClangVersions),
(Get-ClangFormatVersions)
)
$markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object)
$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)
(Get-HomebrewVersion),
(Get-CpanVersion),
(Get-GemVersion),
(Get-MinicondaVersion),
(Get-HelmVersion),
(Get-NpmVersion),
(Get-YarnVersion),
(Get-PipxVersion),
(Get-PipVersion),
(Get-Pip3Version),
(Get-VcpkgVersion)
)
if (-not (Test-IsUbuntu16)) {
$packageManagementList += @(
(Get-PipxVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($packageManagementList | Sort-Object)
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-PackageManagementEnvironmentTable | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Project Management" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-AntVersion),
(Get-GradleVersion),
(Get-MavenVersion),
(Get-SbtVersion)
$projectManagementList = @(
(Get-AntVersion),
(Get-GradleVersion),
(Get-MavenVersion),
(Get-SbtVersion)
)
if (Test-IsUbuntu20) {
$projectManagementList += @(
(Get-LernaVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($projectManagementList | Sort-Object)
$markdown += New-MDHeader "Tools" -Level 3
$toolsList = @(
(Get-7zipVersion),
(Get-AnsibleVersion),
(Get-AptFastVersion),
(Get-AzCopy7Version),
(Get-AzCopy10Version),
(Get-AzCopyVersion),
(Get-BazelVersion),
(Get-BazeliskVersion),
(Get-BicepVersion),
(Get-BuildahVersion),
(Get-CodeQLBundleVersion),
(Get-CMakeVersion),
(Get-CurlVersion),
(Get-DockerMobyVersion),
(Get-DockerComposeVersion),
(Get-DockerMobyClientVersion),
(Get-DockerMobyServerVersion),
(Get-DockerComposeV1Version),
(Get-DockerComposeV2Version),
(Get-DockerBuildxVersion),
(Get-GitVersion),
(Get-GitLFSVersion),
@@ -99,42 +119,39 @@ $toolsList = @(
(Get-HHVMVersion),
(Get-SVNVersion),
(Get-JqVersion),
(Get-YqVersion),
(Get-KindVersion),
(Get-KubectlVersion),
(Get-KustomizeVersion),
(Get-LeiningenVersion),
(Get-MediainfoVersion),
(Get-M4Version),
(Get-HGVersion),
(Get-MinikubeVersion),
(Get-NewmanVersion),
(Get-NVersion),
(Get-NvmVersion),
(Get-OpensslVersion),
(Get-PackerVersion),
(Get-ParcelVersion),
(Get-PhantomJSVersion),
(Get-PodManVersion),
(Get-PulumiVersion),
(Get-RVersion),
(Get-SkopeoVersion),
(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)
)
if (Test-IsUbuntu20) {
$toolsList += (Get-FastlaneVersion)
}
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
$markdown += New-MDHeader "CLI Tools" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-AlibabaCloudCliVersion),
(Get-AWSCliVersion),
(Get-AWSCliSessionManagerPluginVersion),
@@ -148,64 +165,77 @@ $markdown += New-MDList -Style Unordered -Lines @(
(Get-OCCliVersion),
(Get-ORASCliVersion),
(Get-VerselCliversion)
) | Sort-Object
)
$markdown += New-MDHeader "Java" -Level 3
$markdown += Get-JavaVersions | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "PHP" -Level 3
$markdown += Build-PHPTable | New-MDTable
$markdown += New-MDNewLine
if (Test-IsUbuntu20) {
$markdown += New-MDHeader "GraalVM" -Level 3
$markdown += Build-GraalVMTable | New-MDTable
$markdown += New-MDNewLine
}
$markdown += Build-PHPSection
$markdown += New-MDHeader "Haskell" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-GHCVersion),
(Get-GHCupVersion),
(Get-CabalVersion),
(Get-StackVersion)
) | Sort-Object
)
$markdown += New-MDHeader "Rust Tools" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-RustVersion),
(Get-RustupVersion),
(Get-RustdocVersion),
(Get-CargoVersion)
) | Sort-Object
)
$markdown += New-MDHeader "Packages" -Level 4
$markdown += New-MDList -Style Unordered -Lines @(
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-BindgenVersion),
(Get-CargoAuditVersion),
(Get-CargoOutdatedVersion),
(Get-CargoClippyVersion),
(Get-CbindgenVersion),
(Get-RustfmtVersion)
) | Sort-Object
)
$markdown += New-MDHeader "Browsers and Drivers" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
$browsersAndDriversList = @(
(Get-ChromeVersion),
(Get-ChromeDriverVersion),
(Get-FirefoxVersion),
(Get-GeckodriverVersion)
(Get-GeckodriverVersion),
(Get-ChromiumVersion),
(Get-SeleniumVersion)
)
$markdown += New-MDList -Style Unordered -Lines $browsersAndDriversList
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-BrowserWebdriversEnvironmentTable | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader ".NET Core SDK" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-DotNetCoreSdkVersions)
)
$markdown += New-MDHeader "Az Module" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
(Get-AzModuleVersions)
)
$markdown += New-MDHeader "Databases" -Level 3
$markdown += New-MDList -Style Unordered -Lines @(
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-PostgreSqlVersion),
(Get-MongoDbVersion),
(Get-SqliteVersion)
) | Sort-Object
)
$markdown += Build-MySQLSection
@@ -214,22 +244,36 @@ $markdown += Build-MSSQLToolsSection
$markdown += New-MDHeader "Cached Tools" -Level 3
$markdown += Build-CachedToolsSection
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-GoEnvironmentTable | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "PowerShell Tools" -Level 3
$markdown += New-MDList -Lines (Get-PowershellVersion) -Style Unordered
$markdown += New-MDHeader "PowerShell Modules" -Level 4
$markdown += Get-PowerShellModules | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Az PowerShell Modules" -Level 4
$markdown += New-MDList -Style Unordered -Lines @(
(Get-AzModuleVersions)
)
$markdown += Build-WebServersSection
$markdown += New-MDHeader "Android" -Level 3
$markdown += Build-AndroidTable | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-AndroidEnvironmentTable | 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 += Get-AptPackages | New-MDTable
Test-BlankElement
$markdown | Out-File -FilePath "${OutputDirectory}/Ubuntu-Readme.md"
@@ -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,19 @@
function Get-JavaFullVersion {
param($JavaRootPath)
$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
}
function Get-JavaVersions {
$defaultJavaPath = $env:JAVA_HOME
$javaVersions = Get-Item env:JAVA_HOME_*_X64
$sortRules = @{
Expression = { [Int32]$_.Name.Split("_")[2] }
Descending = $false
}
$toolcachePath = Join-Path $env:AGENT_TOOLSDIRECTORY "Java_Adopt_jdk"
$javaToolcacheVersions = Get-ChildItem $toolcachePath -Name | Sort-Object { [int]$_.Split(".")[0] }
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)" : ""
return $javaToolcacheVersions | ForEach-Object {
$majorVersion = $_.split(".")[0]
$fullVersion = $_.Replace("-", "+")
$defaultJavaPath = $env:JAVA_HOME
$javaPath = Get-Item env:JAVA_HOME_${majorVersion}_X64
$defaultPostfix = ($javaPath.Value -eq $defaultJavaPath) ? " (default)" : ""
[PSCustomObject] @{
"Version" = $version + $defaultPostfix
"Vendor" = $vendor
"Environment Variable" = $_.Name
"Version" = $fullVersion + $defaultPostfix
"Vendor" = "Adopt OpenJDK"
"Environment Variable" = $javaPath.Name
}
}
}
@@ -1,55 +1,56 @@
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 {
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"
}
@@ -1,26 +1,18 @@
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
$ansibleVersion = (ansible --version)[0] -replace "[^\d.]"
return "Ansible $ansibleVersion"
}
function Get-AptFastVersion {
$aptFastVersion = (dpkg-query --showformat='${Version}' --show apt-fast).Split('-')[0]
$versionFileContent = Get-Content (which apt-fast) -Raw
$match = [Regex]::Match($versionFileContent, '# apt-fast v(.+)\n')
$aptFastVersion = $match.Groups[1].Value
return "apt-fast $aptFastVersion"
}
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 "AzCopy $azcopyVersion (available by ``azcopy`` and ``azcopy10`` aliases)"
}
function Get-BazelVersion {
@@ -34,6 +26,12 @@ function Get-BazeliskVersion {
return "Bazelisk $bazeliskVersion"
}
function Get-BicepVersion {
(bicep --version | Out-String) -match "bicep cli version (?<version>\d+\.\d+\.\d+)" | Out-Null
$bicepVersion = $Matches.Version
return "Bicep $bicepVersion"
}
function Get-CodeQLBundleVersion {
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionsWildcard | Select-Object -First 1 -Expand FullName
@@ -44,17 +42,20 @@ function Get-CodeQLBundleVersion {
function Get-PodManVersion {
$podmanVersion = podman --version | Take-OutputPart -Part 2
return "Podman $podmanVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "containers"
return "Podman $podmanVersion (apt source repository: $aptSourceRepo)"
}
function Get-BuildahVersion {
$buildahVersion = buildah --version | Take-OutputPart -Part 2
return "Buildah $buildahVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "containers"
return "Buildah $buildahVersion (apt source repository: $aptSourceRepo)"
}
function Get-SkopeoVersion {
$skopeoVersion = skopeo --version | Take-OutputPart -Part 2
return "Skopeo $skopeoVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "containers"
return "Skopeo $skopeoVersion (apt source repository: $aptSourceRepo)"
}
function Get-CMakeVersion {
@@ -62,19 +63,24 @@ function Get-CMakeVersion {
return "CMake $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 "Docker Compose v1 $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 "Docker Compose v2 $composeVersion"
}
function Get-DockerMobyClientVersion {
$dockerClientVersion = sudo docker version --format '{{.Client.Version}}'
return "Docker-Moby Client $dockerClientVersion"
}
function Get-DockerMobyServerVersion {
$dockerServerVersion = sudo docker version --format '{{.Server.Version}}'
return "Docker-Moby Server $dockerServerVersion"
}
function Get-DockerBuildxVersion {
@@ -85,13 +91,15 @@ function Get-DockerBuildxVersion {
function Get-GitVersion {
$result = Get-CommandResult "git --version"
$gitVersion = $result.Output | Take-OutputPart -Part 2
return "Git $gitVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "git-core"
return "Git $gitVersion (apt source repository: $aptSourceRepo)"
}
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"
$aptSourceRepo = Get-AptSourceRepository -PackageName "git-lfs"
return "Git LFS $gitlfsversion (apt source repository: $aptSourceRepo)"
}
function Get-GitFTPVersion {
@@ -100,7 +108,8 @@ function Get-GitFTPVersion {
}
function Get-GoogleCloudSDKVersion {
return "$(gcloud --version | Select-Object -First 1)"
$aptSourceRepo = Get-AptSourceRepository -PackageName "google-cloud-sdk"
return "$(gcloud --version | Select-Object -First 1) (apt source repository: $aptSourceRepo)"
}
function Get-HavegedVersion {
@@ -139,7 +148,7 @@ function Get-KubectlVersion {
}
function Get-MinikubeVersion {
$minikubeVersion = minikube version --short | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "v"
$minikubeVersion = minikube version --short | Take-OutputPart -Part 0 -Delimiter "v"
return "Minikube $minikubeVersion"
}
@@ -148,11 +157,6 @@ function Get-HGVersion {
return "Mercurial $hgVersion"
}
function Get-M4Version {
$m4Version = m4 --version | Select-Object -First 1 | Take-OutputPart -Part -1
return "m4 $m4Version"
}
function Get-LeiningenVersion {
return "$(lein -v | Take-OutputPart -Part 0,1)"
}
@@ -166,60 +170,44 @@ function Get-NewmanVersion {
return "Newman $(newman --version)"
}
function Get-NVersion {
$nVersion = (n --version).Replace('v', '')
return "n $nVersion"
}
function Get-NvmVersion {
$nvmVersion = bash -c "source /etc/skel/.nvm/nvm.sh && nvm --version"
return "nvm $nvmVersion"
}
function Get-PackerVersion {
return "Packer $(packer --version)"
# Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
$result = (Get-CommandResult "packer --version").Output
$packerVersion = [regex]::matches($result, "(\d+.){2}\d+").Value
return "Packer $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"
}
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"
}
function Get-JqVersion {
$jqVersion = jq --version | Take-OutputPart -Part 1 -Delimiter "-"
return "jq $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'
$aptSourceRepo = Get-AptSourceRepository -PackageName "azure-cli"
return "Azure CLI (azure-cli) $azcliVersion (installation method: $aptSourceRepo)"
}
function Get-AzureDevopsVersion {
$azdevopsVersion = az -v | Select-String "azure-devops" | Take-OutputPart -Part -1
$azdevopsVersion = (az version | ConvertFrom-Json).extensions.'azure-devops'
return "Azure CLI (azure-devops) $azdevopsVersion"
}
@@ -242,6 +230,11 @@ function Get-AWSSAMVersion {
return "AWS SAM CLI $(sam --version | Take-OutputPart -Part -1)"
}
function Get-FastlaneVersion {
$fastlaneVersion = fastlane --version | Select-String "^fastlane [0-9]" | Take-OutputPart -Part 1
return "Fastlane $fastlaneVersion"
}
function Get-HubCliVersion {
$hubVersion = hub --version | Select-String "hub version" | Take-OutputPart -Part 2
return "Hub CLI $hubVersion"
@@ -259,7 +252,7 @@ function Get-NetlifyCliVersion {
function Get-OCCliVersion {
$ocVersion = oc version | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "-"
return "oc CLI $ocVersion"
return "OpenShift CLI $ocVersion"
}
function Get-ORASCliVersion {
@@ -289,4 +282,14 @@ function Get-SphinxVersion {
function Get-YamllintVersion {
return "$(yamllint --version)"
}
function Get-ZstdVersion {
$zstdVersion = zstd --version | Take-OutputPart -Part 1 -Delimiter "v" | Take-OutputPart -Part 0 -Delimiter ","
return "zstd $zstdVersion (homebrew)"
}
function Get-YqVersion {
$yqVersion = ($(yq -V) -Split " ")[-1]
return "yq $yqVersion"
}
@@ -0,0 +1,61 @@
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-WebServersSection {
$servers = @(
(Get-ApacheVersion),
(Get-NginxVersion)
)
if (Test-IsUbuntu20) {
$servers += (Get-Xsp4Version)
}
$output = ""
$output += New-MDHeader "Web Servers" -Level 3
$output += $servers | Sort-Object Name | New-MDTable
$output += New-MDNewLine
return $output
}
+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
+14 -9
View File
@@ -8,20 +8,21 @@ 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
# Uninstall unattended-upgrades
apt-get remove unattended-upgrades
# 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
# Use apt-fast for parallel downloads
add-apt-repository -y ppa:apt-fast/stable
# Uninstall unattended-upgrades
apt-get purge unattended-upgrades
# Need to limit arch for default apt repos due to
# https://github.com/actions/virtual-environments/issues/1961
@@ -31,5 +32,9 @@ echo 'APT sources limited to the actual architectures'
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)"
+9 -2
View File
@@ -1,7 +1,14 @@
#!/bin/bash -e
echo '* soft nofile 65536' >> /etc/security/limits.conf
echo '* hard nofile 65536' >> /etc/security/limits.conf
echo 'session required pam_limits.so' >> /etc/pam.d/common-session
echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive
echo 'DefaultLimitNOFILE=65536' >> /etc/systemd/system.conf
echo 'DefaultLimitSTACK=16M:infinity' >> /etc/systemd/system.conf
# Raise Number of File Descriptors
echo '* soft nofile 65536' >> /etc/security/limits.conf
echo '* hard nofile 65536' >> /etc/security/limits.conf
# Double stack size from default 8192KB
echo '* soft stack 16384' >> /etc/security/limits.conf
echo '* hard stack 16384' >> /etc/security/limits.conf
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash -e
# Put snapd auto refresh on hold
# as it may generate too much traffic on Canonical's snap server
# when they are rolling a new major update out.
# Hold is calculated as today's date + 60 days
# snapd is started automatically, but during image generation
# a unix socket may die, restart snapd.service (and therefore snapd.socket)
# to make sure the socket is alive.
systemctl restart snapd.socket
systemctl restart snapd
snap set system refresh.hold="$(date --date='today+60 days' +%Y-%m-%dT%H:%M:%S%:z)"
@@ -0,0 +1,78 @@
function Get-CommandResult {
param (
[Parameter(Mandatory=$true)]
[string] $Command,
[int[]] $ExpectExitCode = 0,
[switch] $Multiline,
[bool] $ValidateExitCode = $true
)
# 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
if ($ValidateExitCode) {
if ($ExpectExitCode -notcontains $exitCode) {
try {
throw "StdOut: '$stdout' ExitCode: '$exitCode'"
} catch {
Write-Host $_.Exception.Message
Write-Host $_.ScriptStackTrace
exit $LASTEXITCODE
}
}
}
return @{
Output = If ($Multiline -eq $true) { $stdout } else { [string]$stdout }
ExitCode = $exitCode
}
}
function Get-OSName {
lsb_release -ds
}
function Get-KernelVersion {
$kernelVersion = uname -r
return "Linux kernel version: $kernelVersion"
}
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 Get-ToolsetValue {
param (
[Parameter(Mandatory = $true)]
[string] $KeyPath
)
$jsonNode = Get-ToolsetContent
$pathParts = $KeyPath.Split(".")
# try to walk through all arguments consequentially to resolve specific json node
$pathParts | ForEach-Object {
$jsonNode = $jsonNode.$_
}
return $jsonNode
}
function Get-AndroidPackages {
$androidSDKManagerPath = "/usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager"
$androidPackages = & $androidSDKManagerPath --list --verbose
return $androidPackages
}
function Get-EnvironmentVariable($variable) {
return [System.Environment]::GetEnvironmentVariable($variable)
}
@@ -0,0 +1,158 @@
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 New-MDNewLine {
param (
[int] $Count = 1
)
$newLineSymbol = [System.Environment]::NewLine
return $newLineSymbol * $Count
}
function Restore-UserOwner {
sudo chown -R ${env:USER}: $env:HOME
}
function Get-LinkTarget {
param (
[string] $inputPath
)
$link = Get-Item $inputPath | Select-Object -ExpandProperty Target
if ($link) {
return " -> $link"
}
return ""
}
function Get-PathWithLink {
param (
[string] $inputPath
)
$link = Get-LinkTarget($inputPath)
return "${inputPath}${link}"
}
function Get-CachedToolInstances
{
<#
.SYNOPSIS
Returns hastable of installed cached tools.
.DESCRIPTION
Return hastable that contains versions and architectures for selected cached tool.
.PARAMETER Name
Name of cached tool.
.PARAMETER VersionCommand
Optional parameter. Command to return version of system default tool.
.EXAMPLE
Get-CachedToolInstances -Name "Python" -VersionCommand "--version"
#>
param
(
[String] $Name,
[String] $VersionCommand
)
$toolInstances = @()
$toolPath = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $Name
# Get all installed versions from TOOLSDIRECTORY folder
$versions = Get-ChildItem $toolPath | Sort-Object { [System.Version]$_.Name }
foreach ($version in $versions)
{
$instanceInfo = @{}
# Create instance hashtable
[string]$instanceInfo.Path = Join-Path -Path $toolPath -ChildPath $version.Name
[string]$instanceInfo.Version = $version.Name
# Get all architectures for current version
[array]$instanceInfo.Architecture_Array = Get-ChildItem $version.FullName -Name -Directory | Where-Object { $_ -match "^x[0-9]{2}$" }
[string]$instanceInfo.Architecture = $instanceInfo.Architecture_Array -Join ", "
# Add (default) postfix to version name, in case if current version is in environment path
if (-not ([string]::IsNullOrEmpty($VersionCommand)))
{
$defaultVersion = $(& ($Name.ToLower()) $VersionCommand 2>&1)
$defaultToolVersion = $defaultVersion | Select-String -Pattern "\d+\.\d+\.\d+" -AllMatches `
| ForEach-Object { $_.Matches.Value }
if ([version]$version.Name -eq [version]$defaultToolVersion)
{
$instanceInfo.Version += " (Default)"
}
}
$toolInstances += $instanceInfo
}
return $toolInstances
}
function Get-AptSourceRepository {
param([String] $PackageName)
$sourceUrl = Get-Content "$PSScriptRoot/../helpers/apt-sources.txt" | Select-String -Pattern $PackageName | Take-OutputPart -Part (1..3)
return $sourceUrl
}
function Test-BlankElement {
param(
[string] $Markdown
)
$splitByLines = $Markdown.Split("`n")
# Validate entry without version
$blankVersions = $splitByLines -match "^-" -notmatch "Image Version|MySQL Server|Vcpkg|\d\." | Out-String
# Validate tables with blank rows
$blankRows = ""
for($i = 0; $i -lt $splitByLines.Length; $i++) {
$addRows= $false
$table = @()
if ($splitByLines[$i].StartsWith("#") -and $splitByLines[$i+1].StartsWith("|")) {
$table += $splitByLines[$i,($i+1),($i+2)]
$i += 3
$current = $splitByLines[$i]
while ($current.StartsWith("|")) {
$isBlankRow = $current.Substring(1, $current.LastIndexOf("|") - 2).Split("|").Trim() -contains ""
if ($isBlankRow) {
$table += $current
$addRows = $true
}
$current = $splitByLines[++$i]
}
if ($addRows) {
$blankRows += $table | Out-String
}
}
}
# Display report
$isReport = $false
if ($blankVersions) {
Write-Host "Software list with blank version:`n${blankVersions}"
$isReport = $true
}
if ($blankRows) {
Write-Host "Tables with blank rows:`n${blankRows}"
$isReport = $true
}
if ($isReport) {
exit 1
}
}
@@ -0,0 +1,104 @@
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1" -DisableNameChecking
# Validates that tool is installed and in PATH
function Validate-ToolExist($tool) {
Get-Command $tool -ErrorAction SilentlyContinue | Should -BeTrue
}
function Invoke-PesterTests {
Param(
[Parameter(Mandatory)][string] $TestFile,
[string] $TestName
)
$testPath = "/imagegeneration/tests/${TestFile}.Tests.ps1"
if (-not (Test-Path $testPath)) {
throw "Unable to find test file '$TestFile' on '$testPath'."
}
# Check that Pester module is imported
if (!(Get-Module "Pester")) {
Import-Module Pester
}
$configuration = [PesterConfiguration] @{
Run = @{ Path = $testPath; PassThru = $true }
Output = @{ Verbosity = "Detailed" }
}
if ($TestName) {
$configuration.Filter.FullName = $TestName
}
# Switch ErrorActionPreference to Stop temporary to make sure that tests will fail on silent errors too
$backupErrorActionPreference = $ErrorActionPreference
$ErrorActionPreference = "Stop"
$results = Invoke-Pester -Configuration $configuration
$ErrorActionPreference = $backupErrorActionPreference
# Fail in case if no tests are run
if (-not ($results -and ($results.FailedCount -eq 0) -and (($results.PassedCount + $results.SkippedCount) -gt 0))) {
$results
throw "Test run has failed"
}
}
function ShouldReturnZeroExitCode {
Param(
[string] $ActualValue,
[switch] $Negate,
[string] $Because # This parameter is unused but we need it to match Pester asserts signature
)
$result = Get-CommandResult $ActualValue -ValidateExitCode $false
[bool]$succeeded = $result.ExitCode -eq 0
if ($Negate) { $succeeded = -not $succeeded }
if (-not $succeeded)
{
$commandOutputIndent = " " * 4
$commandOutput = ($result.Output | ForEach-Object { "${commandOutputIndent}${_}" }) -join "`n"
$failureMessage = "Command '${ActualValue}' has finished with exit code`n${commandOutput}"
}
return [PSCustomObject] @{
Succeeded = $succeeded
FailureMessage = $failureMessage
}
}
function ShouldMatchCommandOutput {
Param(
[string] $ActualValue,
[string] $RegularExpression,
[switch] $Negate
)
$output = (Get-CommandResult $ActualValue -ValidateExitCode $false).Output | Out-String
[bool] $succeeded = $output -cmatch $RegularExpression
if ($Negate) {
$succeeded = -not $succeeded
}
$failureMessage = ''
if (-not $succeeded) {
if ($Negate) {
$failureMessage = "Expected regular expression '$RegularExpression' for '$ActualValue' command to not match '$output', but it did match."
}
else {
$failureMessage = "Expected regular expression '$RegularExpression' for '$ActualValue' command to match '$output', but it did not match."
}
}
return [PSCustomObject] @{
Succeeded = $succeeded
FailureMessage = $failureMessage
}
}
If (Get-Command -Name Add-ShouldOperator -ErrorAction SilentlyContinue) {
Add-ShouldOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
Add-ShouldOperator -Name MatchCommandOutput -InternalName ShouldMatchCommandOutput -Test ${function:ShouldMatchCommandOutput}
}
@@ -18,7 +18,7 @@ function addEtcEnvironmentVariable {
variable_name="$1"
variable_value="$2"
echo "$variable_name=\"$variable_value\"" | sudo tee -a /etc/environment
echo "$variable_name=$variable_value" | sudo tee -a /etc/environment
}
function replaceEtcEnvironmentVariable {
+30 -12
View File
@@ -14,21 +14,29 @@ download_with_retries() {
local COMPRESSED="$4"
if [[ $COMPRESSED == "compressed" ]]; then
COMMAND="curl $URL -4 -sL --compressed -o '$DEST/$NAME'"
local COMMAND="curl $URL -4 -sL --compressed -o '$DEST/$NAME' -w '%{http_code}'"
else
COMMAND="curl $URL -4 -sL -o '$DEST/$NAME'"
local COMMAND="curl $URL -4 -sL -o '$DEST/$NAME' -w '%{http_code}'"
fi
echo "Downloading $URL..."
i=20
while [ $i -gt 0 ]; do
((i--))
eval $COMMAND
if [ $? != 0 ]; then
sleep 30
else
echo "Downloading '$URL' to '${DEST}/${NAME}'..."
retries=20
interval=30
while [ $retries -gt 0 ]; do
((retries--))
# Temporary disable exit on error to retry on non-zero exit code
set +e
http_code=$(eval $COMMAND)
exit_code=$?
if [ $http_code -eq 200 ] && [ $exit_code -eq 0 ]; then
echo "Download completed"
return 0
else
echo "Error — Either HTTP response code for '$URL' is wrong - '$http_code' or exit code is not 0 - '$exit_code'. Waiting $interval seconds before the next attempt, $retries attempts left"
sleep 30
fi
# Enable exit on error back
set -e
done
echo "Could not download $URL"
@@ -40,11 +48,21 @@ download_with_retries() {
## if ! IsPackageInstalled packageName; then
## echo "packageName is not installed!"
## fi
function IsPackageInstalled {
IsPackageInstalled() {
dpkg -S $1 &> /dev/null
}
verlte() {
sortedVersion=$(echo -e "$1\n$2" | sort -V | head -n1)
[ "$1" = "$sortedVersion" ]
}
}
get_toolset_path() {
echo "/imagegeneration/installers/toolset.json"
}
get_toolset_value() {
local toolset_path=$(get_toolset_path)
local query=$1
echo "$(jq -r "$query" $toolset_path)"
}
@@ -0,0 +1,8 @@
#!/bin/bash -e
################################################################################
## File: invoke-tests.sh
## Desc: Helper function for invoking tests
################################################################################
pwsh -Command "Import-Module '$HELPER_SCRIPTS/Tests.Helpers.psm1' -DisableNameChecking
Invoke-PesterTests -TestFile \"$1\" -TestName \"$2\""
@@ -0,0 +1,193 @@
#!/bin/bash -e
#
# Temporary fix for the https://github.com/actions/virtual-environments/issues/4732 issue
# Taken from the official ubuntu:20.04 docker container
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network $time
# Should-Stop: $network $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the mysql database server daemon
# Description: Controls the main MySQL database server daemon "mysqld"
# and its wrapper script "mysqld_safe".
### END INIT INFO
#
set -e
set -u
${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
test -x /usr/bin/mysqld_safe || exit 0
. /lib/lsb/init-functions
SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
CONF=/etc/mysql/my.cnf
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
# priority can be overriden and "-s" adds output to stderr
ERR_LOGGER="logger -p daemon.err -t /etc/init.d/mysql -i"
# Safeguard (relative paths, core dumps..)
cd /
umask 077
# mysqladmin likes to read /root/.my.cnf. This is usually not what I want
# as many admins e.g. only store a password without a username there and
# so break my scripts.
export HOME=/etc/mysql/
## Fetch a particular option from mysql's invocation.
#
# Usage: void mysqld_get_param option
mysqld_get_param() {
/usr/sbin/mysqld --print-defaults \
| tr " " "\n" \
| grep -- "--$1" \
| tail -n 1 \
| cut -d= -f2
}
## Do some sanity checks before even trying to start mysqld.
sanity_checks() {
# check for config file
if [ ! -r /etc/mysql/my.cnf ]; then
log_warning_msg "$0: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz"
echo "WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz" | $ERR_LOGGER
fi
# check for diskspace shortage
datadir=`mysqld_get_param datadir`
if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then
log_failure_msg "$0: ERROR: The partition with $datadir is too full!"
echo "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER
exit 1
fi
}
## Checks if there is a server running and if so if it is accessible.
#
# check_alive insists on a pingable server
# check_dead also fails if there is a lost mysqld in the process list
#
# Usage: boolean mysqld_status [check_alive|check_dead] [warn|nowarn]
mysqld_status () {
ping_output=`$MYADMIN ping 2>&1`; ping_alive=$(( ! $? ))
ps_alive=0
pidfile=`mysqld_get_param pid-file`
if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi
if [ "$1" = "check_alive" -a $ping_alive = 1 ] ||
[ "$1" = "check_dead" -a $ping_alive = 0 -a $ps_alive = 0 ]; then
return 0 # EXIT_SUCCESS
else
if [ "$2" = "warn" ]; then
echo -e "$ps_alive processes alive and '$MYADMIN ping' resulted in\n$ping_output\n" | $ERR_LOGGER -p daemon.debug
fi
return 1 # EXIT_FAILURE
fi
}
#
# main()
#
case "${1:-''}" in
'start')
sanity_checks;
# Start daemon
log_daemon_msg "Starting MySQL database server" "mysqld"
if mysqld_status check_alive nowarn; then
log_progress_msg "already running"
log_end_msg 0
else
# Could be removed during boot
test -e /var/run/mysqld || install -m 755 -o mysql -g root -d /var/run/mysqld
# Start MySQL!
su - mysql -s /bin/sh -c "/usr/bin/mysqld_safe > /dev/null 2>&1 &"
# 6s was reported in #352070 to be too few when using ndbcluster
# 14s was reported in #736452 to be too few with large installs
for i in $(seq 1 30); do
sleep 1
if mysqld_status check_alive nowarn ; then break; fi
log_progress_msg "."
done
if mysqld_status check_alive warn; then
log_end_msg 0
# Now start mysqlcheck or whatever the admin wants.
output=$(/etc/mysql/debian-start)
[ -n "$output" ] && log_action_msg "$output"
else
log_end_msg 1
log_failure_msg "Please take a look at the syslog"
fi
fi
;;
'stop')
# * As a passwordless mysqladmin (e.g. via ~/.my.cnf) must be possible
# at least for cron, we can rely on it here, too. (although we have
# to specify it explicit as e.g. sudo environments points to the normal
# users home and not /root)
log_daemon_msg "Stopping MySQL database server" "mysqld"
if ! mysqld_status check_dead nowarn; then
set +e
shutdown_out=`$MYADMIN shutdown 2>&1`; r=$?
set -e
if [ "$r" -ne 0 ]; then
log_end_msg 1
[ "$VERBOSE" != "no" ] && log_failure_msg "Error: $shutdown_out"
log_daemon_msg "Killing MySQL database server by signal" "mysqld"
killall -15 mysqld
server_down=
for i in 1 2 3 4 5 6 7 8 9 10; do
sleep 1
if mysqld_status check_dead nowarn; then server_down=1; break; fi
done
if test -z "$server_down"; then killall -9 mysqld; fi
fi
fi
if ! mysqld_status check_dead warn; then
log_end_msg 1
log_failure_msg "Please stop MySQL manually and read /usr/share/doc/mysql-server-5.7/README.Debian.gz!"
exit -1
else
log_end_msg 0
fi
;;
'restart')
set +e; $SELF stop; set -e
$SELF start
;;
'reload'|'force-reload')
log_daemon_msg "Reloading MySQL database server" "mysqld"
$MYADMIN reload
log_end_msg 0
;;
'status')
if mysqld_status check_alive nowarn; then
log_action_msg "$($MYADMIN version)"
else
log_action_msg "MySQL is stopped."
exit 3
fi
;;
*)
echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
exit 1
;;
esac
# Some success paths end up returning non-zero so exit 0 explicitly. See
# bug #739846.
exit 0
-5
View File
@@ -4,11 +4,6 @@
## Desc: Helper functions for installing tools
################################################################################
function isUbuntu16
{
lsb_release -d | grep -q 'Ubuntu 16'
}
function isUbuntu18
{
lsb_release -d | grep -q 'Ubuntu 18'
-16
View File
@@ -1,16 +0,0 @@
#!/bin/bash -e
################################################################################
## File: 7-zip.sh
## Desc: Installs 7-zip
################################################################################
# Install 7-Zip
apt-get update -y
apt-get install -y p7zip p7zip-full p7zip-rar
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v 7z; then
echo "7-Zip was not installed"
exit 1
fi
@@ -4,6 +4,8 @@
## Desc: Configure toolset
################################################################################
Import-Module "$env:HELPER_SCRIPTS/Tests.Helpers.psm1" -DisableNameChecking
function Get-ToolsetToolFullPath
{
param
@@ -37,12 +39,8 @@ $ErrorActionPreference = "Stop"
Write-Host "Configure toolset tools environment..."
$toolsEnvironment = @{
boost = @{
variableTemplate = "BOOST_ROOT_{0}_{1}_{2}"
}
go = @{
command = "ln -s {0}/bin/* /usr/bin/"
defaultVariable = "GOROOT"
variableTemplate = "GOROOT_{0}_{1}_X64"
}
}
@@ -93,3 +91,5 @@ foreach ($tool in $toolset.toolcache)
Invoke-Expression -Command $command
}
}
Invoke-PesterTests -TestFile "Toolset" -TestName "Toolset"
@@ -0,0 +1,40 @@
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
Import-Module "$env:HELPER_SCRIPTS/Tests.Helpers.psm1" -DisableNameChecking
# Get modules content from toolset
$modules = (Get-ToolsetContent).azureModules
$installPSModulePath = "/usr/share"
foreach ($module in $modules)
{
$moduleName = $module.name
Write-Host "Installing ${moduleName} to the ${installPSModulePath} path..."
foreach ($version in $module.versions)
{
$modulePath = Join-Path -Path $installPSModulePath -ChildPath "${moduleName}_${version}"
Write-Host " - $version [$modulePath]"
Save-Module -Path $modulePath -Name $moduleName -RequiredVersion $version -Force
}
$assets = Invoke-RestMethod $module.url
# Get github release asset for each version
foreach ($toolVersion in $module.zip_versions) {
$asset = $assets | Where-Object version -eq $toolVersion `
| Select-Object -ExpandProperty files `
| Select-Object -First 1
Write-Host "Installing $($module.name) $toolVersion ..."
if ($null -ne $asset) {
Write-Host "Download $($asset.filename)"
wget $asset.download_url -nv --retry-connrefused --tries=10 -P $installPSModulePath
} else {
Write-Host "Asset was not found in versions manifest"
exit 1
}
}
}
Invoke-PesterTests -TestFile "PowerShellModules" -TestName "AzureModules"
@@ -1,14 +1,15 @@
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
function Get-ToolsetContent
{
$toolset = Join-Path $env:INSTALLER_SCRIPT_FOLDER "toolset.json"
Get-Content $toolset -Raw | ConvertFrom-Json
}
Import-Module "$env:HELPER_SCRIPTS/Tests.Helpers.psm1" -DisableNameChecking
# Specifies the installation policy
Set-PSRepository -InstallationPolicy Trusted -Name PSGallery
# Try to update PowerShellGet before the actual installation
Install-Module -Name PowerShellGet -Force
Update-Module -Name PowerShellGet -Force
# Install PowerShell modules
$modules = (Get-ToolsetContent).powershellModules
@@ -29,3 +30,5 @@ foreach($module in $modules)
Install-Module -Name $moduleName -Scope AllUsers -SkipPublisherCheck -Force
}
Invoke-PesterTests -TestFile "PowerShellModules" -TestName "PowerShellModules"
@@ -28,9 +28,8 @@ $ErrorActionPreference = "Stop"
# Get toolset content
$toolset = Get-Content -Path "$env:INSTALLER_SCRIPT_FOLDER/toolset.json" -Raw
$toolsToInstall = @("Python", "Node", "Boost", "Go")
$tools = ConvertFrom-Json -InputObject $toolset | Select-Object -ExpandProperty toolcache | Where-Object {$ToolsToInstall -contains $_.Name}
$tools = ConvertFrom-Json -InputObject $toolset | Select-Object -ExpandProperty toolcache | Where-Object {$_.url -ne $null }
foreach ($tool in $tools) {
# Get versions manifest for current tool
@@ -51,8 +50,5 @@ foreach ($tool in $tools) {
exit 1
}
}
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" "/opt/hostedtoolcache/$($tool.name)"
}
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/Python
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/node
chown -R "$($env:SUDO_USER):$($env:SUDO_USER)" /opt/hostedtoolcache/go
@@ -1,92 +0,0 @@
################################################################################
## File: Validate-Toolset.ps1
## Team: CI-Build
## Desc: Validate Toolset
################################################################################
function Run-ExecutableTests {
param (
[Parameter(Mandatory)] [string[]] $Executables,
[Parameter(Mandatory)] [string] $ToolPath
)
$versionCommand = $Executables["command"]
foreach ($executable in $Executables["tools"]) {
$executablePath = Join-Path $ToolPath $executable
Write-Host "Check $executable..."
if (Test-Path $executablePath) {
Write-Host "$executable is successfully installed: $(& $executablePath $versionCommand)"
} else {
Write-Host "$executablePath is not installed!"
exit 1
}
}
}
$ErrorActionPreference = "Stop"
# Define executables for cached tools
$toolsExecutables = @{
Python = @{
tools = @("python", "bin/pip")
command = "--version"
}
node = @{
tools = @("bin/node", "bin/npm")
command = "--version"
}
PyPy = @{
tools = @("bin/python", "bin/pip")
command = "--version"
}
go = @{
tools = @("bin/go")
command = "version"
}
Ruby = @{
tools = @("bin/ruby")
command = "--version"
}
}
# Get toolset content
$toolset = Get-Content -Path "$env:INSTALLER_SCRIPT_FOLDER/toolset.json" -Raw
$tools = ConvertFrom-Json -InputObject $toolset | Select-Object -ExpandProperty toolcache
foreach($tool in $tools) {
$toolPath = Join-Path $env:AGENT_TOOLSDIRECTORY $tool.name
# Get executables for current tool
$toolExecs = $toolsExecutables[$tool.name]
foreach ($version in $tool.versions) {
# Add wildcard if missing
if ($version.Split(".").Length -lt 3) {
$version += ".*"
}
# Check if version folder exists
$expectedVersionPath = Join-Path $toolPath $version
if (-not (Test-Path $expectedVersionPath)) {
Write-Host "Expected $($tool.name) $version folder is not found!"
exit 1
}
# Take latest installed version in case if toolset version contains wildcards
$foundVersion = Get-Item $expectedVersionPath `
| Sort-Object -Property {[version]$_.name} -Descending `
| Select-Object -First 1
$foundVersionPath = Join-Path $foundVersion $tool.arch
if ($toolExecs) {
Write-Host "Run validation test for $($tool.name)($($tool.arch)) $($foundVersion.name) executables..."
Run-ExecutableTests -Executables $toolExecs -ToolPath $foundVersionPath
}
$foundVersionName = $foundVersion.name
if ($tool.name -eq 'PyPy')
{
$pypyVersion = & "$foundVersionPath/bin/python" -c "import sys;print(sys.version.split('\n')[1])"
$foundVersionName = "{0} {1}" -f $foundVersionName, $pypyVersion
}
}
}
@@ -4,15 +4,13 @@
## Desc: Installs Alibaba Cloud CLI
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install Alibaba Cloud CLI
URL=$(curl -s https://api.github.com/repos/aliyun/aliyun-cli/releases/latest | jq -r '.assets[].browser_download_url | select(contains("aliyun-cli-linux"))')
wget -P /tmp $URL
tar xzvf /tmp/aliyun-cli-linux-*-amd64.tgz
URL=$(curl -s https://api.github.com/repos/aliyun/aliyun-cli/releases/latest | jq -r '.assets[].browser_download_url | select(contains("aliyun-cli-linux") and endswith("amd64.tgz"))')
download_with_retries $URL "/tmp"
tar xzf /tmp/aliyun-cli-linux-*-amd64.tgz
mv aliyun /usr/local/bin
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v aliyun ; then
echo "aliyun was not installed"
exit 1
fi
invoke_tests "CLI.Tools" "Aliyun CLI"
+54 -20
View File
@@ -7,6 +7,7 @@
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/etc-environment.sh
function filter_components_by_version {
minimumVersion=$1
@@ -24,30 +25,40 @@ function filter_components_by_version {
done
}
function get_full_ndk_version {
majorVersion=$1
ndkFullVersion=$($SDKMANAGER --list | grep "ndk;${majorVersion}.*" | awk '{gsub("ndk;", ""); print $1}' | sort -V | tail -n1)
echo "$ndkFullVersion"
}
# Set env variable for SDK Root (https://developer.android.com/studio/command-line/variables)
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT}" | tee -a /etc/environment
# ANDROID_HOME is deprecated, but older versions of Gradle rely on it
echo "ANDROID_HOME=${ANDROID_SDK_ROOT}" | tee -a /etc/environment
# Set env variables for NDK Root
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" | tee -a /etc/environment
echo "ANDROID_NDK_ROOT=${ANDROID_NDK_ROOT}" | tee -a /etc/environment
# Create android sdk directory
mkdir -p ${ANDROID_SDK_ROOT}
# Download the latest command line tools so that we can accept all of the licenses.
# See https://developer.android.com/studio/#command-tools
wget -O android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
rm -f android-sdk.zip
if isUbuntu20 ; then
# Sdk manager doesn't work with Java > 8, set version 8 explicitly
sed -i "2i export JAVA_HOME=${JAVA_HOME_8_X64}" /usr/local/lib/android/sdk/tools/bin/sdkmanager
fi
cmdlineTools="android-cmdline-tools.zip"
download_with_retries https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip "." $cmdlineTools
unzip -qq $cmdlineTools -d ${ANDROID_SDK_ROOT}/cmdline-tools
# Command line tools need to be placed in ${ANDROID_SDK_ROOT}/sdk/cmdline-tools/latest to determine SDK root
mv ${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools ${ANDROID_SDK_ROOT}/cmdline-tools/latest
rm -f $cmdlineTools
# Check sdk manager installation
/usr/local/lib/android/sdk/tools/bin/sdkmanager --list 1>/dev/null
${SDKMANAGER} --list 1>/dev/null
if [ $? -eq 0 ]
then
echo "Android SDK manager was installed"
@@ -56,24 +67,47 @@ else
exit 1
fi
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
minimumBuildToolVersion=$(jq -r '.android.build_tools_min_version' $toolset)
minimumPlatformVersion=$(jq -r '.android.platform_min_version' $toolset)
extras=$(jq -r '.android.extra_list[]|"extras;" + .' $toolset)
addons=$(jq -r '.android.addon_list[]|"add-ons;" + .' $toolset)
additional=$(jq -r '.android.additional_tools[]' $toolset)
minimumBuildToolVersion=$(get_toolset_value '.android.build_tools_min_version')
minimumPlatformVersion=$(get_toolset_value '.android.platform_min_version')
extras=$(get_toolset_value '.android.extra_list[]|"extras;" + .')
addons=$(get_toolset_value '.android.addon_list[]|"add-ons;" + .')
additional=$(get_toolset_value '.android.additional_tools[]')
ANDROID_NDK_MAJOR_VERSIONS=($(get_toolset_value '.android.ndk.versions[]'))
ANDROID_NDK_MAJOR_DEFAULT=$(get_toolset_value '.android.ndk.default')
ndkDefaultFullVersion=$(get_full_ndk_version $ANDROID_NDK_MAJOR_DEFAULT)
# Install the following SDKs and build tools, passing in "y" to accept licenses.
components=( "${extras[@]}" "${addons[@]}" "${additional[@]}" )
components=("${extras[@]}" "${addons[@]}" "${additional[@]}")
for ndk_version in "${ANDROID_NDK_MAJOR_VERSIONS[@]}"
do
ndk_full_version=$(get_full_ndk_version $ndk_version)
components+=("ndk;$ndk_full_version")
done
availablePlatforms=($(${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --list | sed -n '/Available Packages:/,/^$/p' | grep "platforms;android-" | cut -d"|" -f 1))
allBuildTools=($(${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --list | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
# This changes were added due to incompatibility with android ndk-bundle (ndk;22.0.7026061).
# Link issue virtual-environments: https://github.com/actions/virtual-environments/issues/2481
# Link issue xamarin-android: https://github.com/xamarin/xamarin-android/issues/5526
ln -s $ANDROID_SDK_ROOT/ndk/$ndkDefaultFullVersion $ANDROID_NDK_ROOT
ANDROID_NDK_MAJOR_LATEST=(${ANDROID_NDK_MAJOR_VERSIONS[-1]})
ndkLatestFullVersion=$(get_full_ndk_version $ANDROID_NDK_MAJOR_LATEST)
echo "ANDROID_NDK_LATEST_HOME=$ANDROID_SDK_ROOT/ndk/$ndkLatestFullVersion" | tee -a /etc/environment
availablePlatforms=($($SDKMANAGER --list | sed -n '/Available Packages:/,/^$/p' | grep "platforms;android-[0-9]" | cut -d"|" -f 1))
allBuildTools=($($SDKMANAGER --list | grep "build-tools;" | cut -d"|" -f 1 | sort -u))
availableBuildTools=$(echo ${allBuildTools[@]//*rc[0-9]/})
filter_components_by_version $minimumPlatformVersion "${availablePlatforms[@]}"
filter_components_by_version $minimumBuildToolVersion "${availableBuildTools[@]}"
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager ${components[@]}
echo "y" | $SDKMANAGER ${components[@]}
# Old skdmanager from sdk tools doesn't work with Java > 8, set version 8 explicitly
if isUbuntu20; then
sed -i "2i export JAVA_HOME=${JAVA_HOME_8_X64}" ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager
fi
# Add required permissions
chmod -R a+rwx ${ANDROID_SDK_ROOT}
reloadEtcEnvironment
invoke_tests "Android"
@@ -1,24 +0,0 @@
#!/bin/bash -e
################################################################################
## File: ansible.sh
## Desc: Installs Ansible
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
# ppa:ansible/ansible doesn't contain packages for Ubuntu20.04
if isUbuntu16 || isUbuntu18 ; then
add-apt-repository ppa:ansible/ansible
apt-get update
fi
# Install latest Ansible
apt-get install -y --no-install-recommends ansible
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v ansible; then
echo "Ansible was not installed or found on PATH"
exit 1
fi
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash -e
################################################################################
## File: apache.sh
## Desc: Installs Apache HTTP Server
################################################################################
# Install Apache
apt-get install apache2 -y
# Disable apache2.service
systemctl is-active --quiet apache2.service && systemctl stop apache2.service
systemctl disable apache2.service
invoke_tests "WebServers" "Apache"
@@ -1,30 +0,0 @@
#!/bin/bash -e
################################################################################
## File: aws-sam-cli.sh
## Desc: Installs AWS SAM CLI
## Requires Python >=3.6, must be run as non-root user after toolset installation
################################################################################
# Download latest aws sam cli sources
TarballUrl=$(curl -s https://api.github.com/repos/aws/aws-sam-cli/releases/latest | jq -r '.tarball_url')
TarballPath="/tmp/aws-sam-cli.tar.gz"
wget $TarballUrl -O $TarballPath
tar -xzvf $TarballPath -C /tmp
cd /tmp/aws-aws-sam-cli*
mkdir /opt/python-aws-sam-cli
cp -r /opt/hostedtoolcache/Python/3.7* /opt/python-aws-sam-cli
# Use copy of python 3.7 from toolcache to install aws sam, setuptools package required for the installation
Python3Dir=$(echo /opt/python-aws-sam-cli/3.7*/x64)
Python3BinDir="${Python3Dir}/bin"
$Python3BinDir/python3 -m pip install setuptools
$Python3BinDir/python3 setup.py install
ln -sf ${Python3BinDir}/sam /usr/local/bin/sam
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! sam --version; then
echo "AWS SAM CLI was not installed"
exit 1
fi
+21 -27
View File
@@ -1,41 +1,35 @@
#!/bin/bash -e
################################################################################
## File: aws.sh
## Desc: Installs the AWS CLI
## Desc: Installs the AWS CLI, Session Manager plugin for the AWS CLI, and AWS SAM CLI
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
# Install the AWS CLI v1 on Ubuntu16 and Ubuntu18, and AWS CLI v2 on Ubuntu20
# Install the AWS CLI v1 Ubuntu18 and AWS CLI v2 on Ubuntu20
if isUbuntu20 ; then
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i /usr/local/aws-cli -b /usr/local/bin
rm awscliv2.zip
rm -rf aws
download_with_retries "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" "/tmp" "awscliv2.zip"
unzip -qq /tmp/awscliv2.zip -d /tmp
/tmp/aws/install -i /usr/local/aws-cli -b /usr/local/bin
fi
if isUbuntu16 || isUbuntu18 ; then
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
rm awscli-bundle.zip
rm -rf awscli-bundle
# The installation should be run after python3 is installed as aws-cli V1 dropped python2 support
if isUbuntu18 ; then
download_with_retries "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" "/tmp" "awscli-bundle.zip"
unzip -qq /tmp/awscli-bundle.zip -d /tmp
python3 /tmp/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
fi
# Validate the installation
echo "Validate the installation"
if ! command -v aws; then
echo "aws was not installed"
exit 1
fi
download_with_retries "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" "/tmp" "session-manager-plugin.deb"
apt install /tmp/session-manager-plugin.deb
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg -i session-manager-plugin.deb
# Download & install the latest aws sam cli release
zipName="aws-sam-cli-linux-x86_64.zip"
zipUrl="https://github.com/aws/aws-sam-cli/releases/latest/download/${zipName}"
download_with_retries $zipUrl "/tmp" $zipName
unzip /tmp/${zipName} -d /tmp
/tmp/install
sessionPlugin=$(session-manager-plugin)
echo "$sessionPlugin"
if ! [[ $sessionPlugin == *"was installed successfully"* ]]
then
exit 1
fi
invoke_tests "CLI.Tools" "AWS"
+8 -20
View File
@@ -4,26 +4,14 @@
## Desc: Installs AzCopy
################################################################################
# Install AzCopy7
wget -O azcopy.tar.gz https://aka.ms/downloadazcopylinux64
tar -xf azcopy.tar.gz
rm azcopy.tar.gz
./install.sh
source $HELPER_SCRIPTS/install.sh
# Install AzCopy10
wget -O /tmp/azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
tar zxvf /tmp/azcopy.tar.gz --strip-components=1 -C /tmp
mv /tmp/azcopy /usr/local/bin/azcopy10
chmod +x /usr/local/bin/azcopy10
download_with_retries "https://aka.ms/downloadazcopy-v10-linux" "/tmp" "azcopy.tar.gz"
tar xzf /tmp/azcopy.tar.gz --strip-components=1 -C /tmp
mv /tmp/azcopy /usr/local/bin/azcopy
chmod +x /usr/local/bin/azcopy
# Create azcopy 10 alias for backward compatibility
ln -sf /usr/local/bin/azcopy /usr/local/bin/azcopy10
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v azcopy; then
echo "azcopy7 was not installed"
exit 1
fi
if ! command -v azcopy10; then
echo "azcopy10 was not installed"
exit 1
fi
invoke_tests "Tools" "azcopy"
@@ -1,34 +0,0 @@
#!/bin/bash -e
################################################################################
## File: azpowershell.sh
## Desc: Installed Azure PowerShell
################################################################################
# List of versions
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
versions=$(jq -r '.azureModules[] | select(.name | contains("az")) | .versions[]' $toolset)
# Try to install and update PowerShellGet before the actual installation
pwsh -Command "Install-Module -Name PowerShellGet -Force"
pwsh -Command "Update-Module -Name PowerShellGet -Force"
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
for version in ${versions[@]}; do
pwsh -Command "Save-Module -Name Az -LiteralPath /usr/share/az_$version -RequiredVersion $version -Force -Verbose"
done
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
for version in ${versions[@]}; do
modulePath="/usr/share/az_$version"
pwsh -Command "
\$env:PSModulePath = '${modulePath}:' + \$env:PSModulePath;
if ( -not (Get-Module -ListAvailable -Name Az.Accounts)) {
Write-Host 'Az Module was not installed'
exit 1
}"
if [ $? -ne 0 ]; then
echo "Az version $version is not installed"
exit 1
fi
done
+4 -6
View File
@@ -6,10 +6,8 @@
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
echo "azure-cli https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt" >> $HELPER_SCRIPTS/apt-sources.txt
rm -f /etc/apt/sources.list.d/azure-cli.list
rm -f /etc/apt/sources.list.d/azure-cli.list.save
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v az; then
echo "azure-cli was not installed"
exit 1
fi
invoke_tests "CLI.Tools" "Azure CLI"
@@ -12,11 +12,4 @@ echo "AZURE_EXTENSION_DIR=$AZURE_EXTENSION_DIR" | tee -a /etc/environment
# install azure devops Cli extension
az extension add -n azure-devops
# check to determine if extension was installed or not
if [ $? -eq 0 ]
then
echo "azure DevOps Cli extension was installed"
else
echo "azure DevOps Cli extension was not installed"
exit 1
fi
invoke_tests "CLI.Tools" "Azure DevOps CLI"
+4 -11
View File
@@ -3,20 +3,13 @@
## File: basic.sh
## Desc: Installs basic command line utilities and dev packages
################################################################################
source $HELPER_SCRIPTS/install.sh
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
common_packages=$(jq -r ".apt.common_packages[]" $toolset)
cmd_packages=$(jq -r ".apt.cmd_packages[]" $toolset)
common_packages=$(get_toolset_value .apt.common_packages[])
cmd_packages=$(get_toolset_value .apt.cmd_packages[])
for package in $common_packages $cmd_packages; do
echo "Install $package"
apt-get install -y --no-install-recommends $package
done
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
for cmd in $cmd_packages; do
if ! command -v $cmd; then
echo "$cmd was not installed"
exit 1
fi
done
invoke_tests "Apt"
+4 -15
View File
@@ -4,23 +4,12 @@
## Desc: Installs Bazel and Bazelisk (A user-friendly launcher for Bazel)
################################################################################
# Install bazel
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
apt-get update -y
apt-get install -y bazel
source $HELPER_SCRIPTS/install.sh
# Install bazelisk
npm install -g @bazel/bazelisk
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v bazel; then
echo "Bazel was not installed"
exit 1
fi
# run bazelisk once in order to instal /usr/local/bin/bazel binary
bazelisk
if ! command -v bazelisk; then
echo "Bazelisk was not installed"
exit 1
fi
invoke_tests "Tools" "Bazel"
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash -e
################################################################################
## File: bicep.sh
## Desc: Installs bicep cli
################################################################################
source $HELPER_SCRIPTS/install.sh
# Install Bicep CLI
download_with_retries "https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64" "." "bicep.bin"
# Mark it as executable
chmod +x ./bicep.bin
# Add bicep to PATH (requires admin)
sudo mv ./bicep.bin /usr/local/bin/bicep
invoke_tests "Tools" "Bicep"
@@ -1,18 +0,0 @@
#!/bin/bash -e
################################################################################
## File: build-essential.sh
## Desc: Installs build-essential package
################################################################################
source $HELPER_SCRIPTS/install.sh
PACKAGE=build-essential
# Test to see if the software in question is already installed, if not install it
echo "Checking to see if the installer script has already been run"
if ! IsPackageInstalled $PACKAGE; then
echo "Installing $PACKAGE"
apt-get install -y --no-install-recommends $PACKAGE
else
echo "$PACKAGE is already installed"
fi
+10 -31
View File
@@ -5,27 +5,13 @@
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
function InstallClang {
local version=$1
echo "Installing clang-$version..."
if [[ $version =~ 9 ]] && isUbuntu16; then
./llvm.sh $version
apt-get install -y "clang-format-$version"
else
apt-get install -y "clang-$version" "lldb-$version" "lld-$version" "clang-format-$version"
fi
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
for cmd in clang-$version clang++-$version; do
if ! command -v $cmd; then
echo "$cmd was not installed"
exit 1
fi
done
apt-get install -y "clang-$version" "lldb-$version" "lld-$version" "clang-format-$version"
}
function SetDefaultClang {
@@ -37,23 +23,16 @@ function SetDefaultClang {
update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-${version} 100
}
# Download script for automatic installation
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
if isUbuntu16 || isUbuntu18; then
versions=( "6.0" "8" "9" )
default_clang_version="9"
fi
if isUbuntu20 ; then
versions=( "8" "9" "10" )
default_clang_version="10"
fi
versions=$(get_toolset_value '.clang.versions[]')
default_clang_version=$(get_toolset_value '.clang.default_version')
for version in ${versions[*]}; do
InstallClang $version
if [[ $version != $default_clang_version ]]; then
InstallClang $version
fi
done
InstallClang $default_clang_version
SetDefaultClang $default_clang_version
rm llvm.sh
invoke_tests "Tools" "clang"
@@ -7,6 +7,7 @@ before=$(df / -Pm | awk 'NR==2{print $4}')
# It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial
apt-get clean
rm -rf /tmp/*
rm -rf /root/.cache
# journalctl
if command -v journalctl; then
@@ -28,3 +29,6 @@ after=$(df / -Pm | awk 'NR==2{print $4}')
echo "Before: $before MB"
echo "After : $after MB"
echo "Delta : $(($after-$before)) MB"
# delete symlink for tests running
rm -f /usr/local/bin/invoke_tests
+5 -8
View File
@@ -9,16 +9,13 @@ echo "Checking to see if the installer script has already been run"
if command -v cmake; then
echo "cmake is already installed"
else
url=$(curl -s https://api.github.com/repos/Kitware/CMake/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux-x86_64.sh"))')
curl -sL ${url} -o cmakeinstall.sh \
json=$(curl -s "https://api.github.com/repos/Kitware/CMake/releases")
latest_tag=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | grep -v "rc" | tail -1)
sh_url=$(echo $json | jq -r ".[] | select(.tag_name==\"${latest_tag}\").assets[].browser_download_url | select(endswith(\"inux-x86_64.sh\"))")
curl -sL ${sh_url} -o cmakeinstall.sh \
&& chmod +x cmakeinstall.sh \
&& ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \
&& rm cmakeinstall.sh
fi
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v cmake; then
echo "cmake was not installed"
exit 1
fi
invoke_tests "Tools" "Cmake"
@@ -7,7 +7,7 @@
source $HELPER_SCRIPTS/install.sh
# Retrieve the name of the CodeQL bundle preferred by the Action (in the format codeql-bundle-YYYYMMDD).
codeql_bundle_name="$(curl -sSL https://raw.githubusercontent.com/github/codeql-action/main/src/defaults.json | jq -r .bundleVersion)"
codeql_bundle_name="$(curl -sSL https://raw.githubusercontent.com/github/codeql-action/v1/src/defaults.json | jq -r .bundleVersion)"
# Convert the bundle name to a version number (0.0.0-YYYYMMDD).
codeql_bundle_version="0.0.0-${codeql_bundle_name##*-}"
@@ -23,6 +23,3 @@ touch "$extraction_directory/pinned-version"
# Touch a file to indicate to the toolcache that setting up CodeQL is complete.
touch "$extraction_directory.complete"
# Test that the tool has been extracted successfully.
"$AGENT_TOOLSDIRECTORY/CodeQL/$codeql_bundle_version/x64/codeql/codeql" version
@@ -1,12 +1,15 @@
#!/bin/bash -e
#Set ImageVersion and ImageOS env variables
# Set ImageVersion and ImageOS env variables
echo ImageVersion=$IMAGE_VERSION | tee -a /etc/environment
echo ImageOS=$IMAGE_OS | tee -a /etc/environment
# Set the ACCEPT_EULA variable to Y value to confirm your acceptance of the End-User Licensing Agreement
echo ACCEPT_EULA=Y | tee -a /etc/environment
# This directory is supposed to be created in $HOME and owned by user(https://github.com/actions/virtual-environments/issues/491)
mkdir -p /etc/skel/.config/configstore
echo 'export XDG_CONFIG_HOME=$HOME/.config' | tee -a /etc/skel/.bashrc
echo 'XDG_CONFIG_HOME=$HOME/.config' | tee -a /etc/environment
# Change waagent entries to use /mnt for swapfile
sed -i 's/ResourceDisk.Format=n/ResourceDisk.Format=y/g' /etc/waagent.conf
@@ -25,3 +28,7 @@ chmod -R 777 $AGENT_TOOLSDIRECTORY
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
# https://www.suse.com/support/kb/doc/?id=000016692
echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf
# Create symlink for tests running
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
+14 -11
View File
@@ -4,22 +4,25 @@
## Desc: Installs container tools: podman, buildah and skopeo onto the image
################################################################################
# Install podman, buildah, scopeo container's tools
source $HELPER_SCRIPTS/os.sh
install_packages=(podman buildah skopeo)
REPO_URL="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable"
# Install podman, buildah, scopeo container's tools (on Ubuntu20 these tools can be installed without adding new repository)
source /etc/os-release
sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key
sh -c "echo 'deb ${REPO_URL}/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -qnv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key
apt-key add Release.key
apt-get update -qq
apt-get -qq -y install ${install_packages[@]}
mkdir -p /etc/containers
echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | tee /etc/containers/registries.conf
# Check that tools are installed properly
echo "Testing to make sure that script performed as expected, and basic scenarios work"
for cmd in ${install_packages[@]}; do
if ! command -v $cmd; then
echo "$cmd was not installed"
exit 1
fi
done
# Remove source repo
rm /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
# Document source repo
echo "containers $REPO_URL" >> $HELPER_SCRIPTS/apt-sources.txt
invoke_tests "Tools" "Containers"
@@ -4,15 +4,9 @@
## Desc: Installs Docker Compose
################################################################################
URL=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("docker-compose-Linux-x86_64"))' | head -1)
# Install latest docker-compose from releases
# Install docker-compose v1 from releases
URL="https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64"
curl -L $URL -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v docker-compose; then
echo "docker-compose was not installed"
exit 1
fi
invoke_tests "Tools" "Docker-compose v1"
+17 -16
View File
@@ -16,6 +16,7 @@ if ! IsPackageInstalled $docker_package; then
apt-get update
apt-get install -y moby-engine moby-cli
apt-get install --no-install-recommends -y moby-buildx
apt-get install -y moby-compose
else
echo "Docker ($docker_package) is already installed"
fi
@@ -24,25 +25,25 @@ fi
systemctl is-active --quiet docker.service || systemctl start docker.service
systemctl is-enabled --quiet docker.service || systemctl enable docker.service
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
echo "Checking the docker-moby and moby-buildx"
if ! command -v docker; then
echo "docker was not installed"
exit 1
elif ! [[ $(docker buildx) ]]; then
echo "Docker-Buildx was not installed"
exit 1
else
echo "Docker-moby and Docker-buildx checking the successfull"
# Docker daemon takes time to come up after installing
sleep 10
docker info
# Docker daemon takes time to come up after installing
sleep 10
docker info
# If credentials are provided, attempt to log into Docker Hub
# with a paid account to avoid Docker Hub's rate limit.
if [ "${DOCKERHUB_LOGIN}" ] && [ "${DOCKERHUB_PASSWORD}" ]; then
docker login --username "${DOCKERHUB_LOGIN}" --password "${DOCKERHUB_PASSWORD}"
fi
# Pull images
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
images=$(jq -r '.docker.images[]' $toolset)
images=$(get_toolset_value '.docker.images[]')
for image in $images; do
docker pull "$image"
done
# Always attempt to logout so we do not leave our credentials on the built
# image. Logout _should_ return a zero exit code even if no credentials were
# stored from earlier.
docker logout
invoke_tests "Tools" "Docker"
@@ -9,25 +9,8 @@ source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/os.sh
# Ubuntu 20 doesn't support EOL versions
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
LATEST_DOTNET_PACKAGES=$(jq -r '.dotnet.aptPackages[]' $toolset)
versions=$(jq -r '.dotnet.versions[]' $toolset)
mksamples()
{
sdk=$1
sample=$2
mkdir "$sdk"
cd "$sdk" || exit
dotnet help
dotnet new globaljson --sdk-version "$sdk"
dotnet new "$sample"
dotnet restore
dotnet build
set +e
cd .. || exit
rm -rf "$sdk"
}
LATEST_DOTNET_PACKAGES=$(get_toolset_value '.dotnet.aptPackages[]')
DOTNET_VERSIONS=$(get_toolset_value '.dotnet.versions[]')
# Disable telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
@@ -44,7 +27,7 @@ done
# Get list of all released SDKs from channels which are not end-of-life or preview
sdks=()
for version in ${versions[@]}; do
for version in ${DOTNET_VERSIONS[@]}; do
release_url="https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/${version}/releases.json"
download_with_retries "${release_url}" "." "${version}.json"
releases=$(cat "./${version}.json")
@@ -53,7 +36,8 @@ for version in ${versions[@]}; do
rm ./${version}.json
done
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -r | uniq -w 5)
extract_dotnet_sdk() {
local ARCHIVE_NAME="$1"
set -e
@@ -76,20 +60,11 @@ parallel --jobs 0 --halt soon,fail=1 \
find . -name "*.tar.gz" | parallel --halt soon,fail=1 'extract_dotnet_sdk {}'
# Smoke test each SDK
for sdk in $sortedSdks; do
mksamples "$sdk" "console"
mksamples "$sdk" "mstest"
mksamples "$sdk" "xunit"
mksamples "$sdk" "web"
mksamples "$sdk" "mvc"
mksamples "$sdk" "webapi"
done
# NuGetFallbackFolder at /usr/share/dotnet/sdk/NuGetFallbackFolder is warmed up by smoke test
# Additional FTE will just copy to ~/.dotnet/NuGet which provides no benefit on a fungible machine
setEtcEnvironmentVariable DOTNET_SKIP_FIRST_TIME_EXPERIENCE 1
setEtcEnvironmentVariable DOTNET_NOLOGO 1
setEtcEnvironmentVariable DOTNET_MULTILEVEL_LOOKUP 0
prependEtcEnvironmentPath /home/runner/.dotnet/tools
echo 'export PATH="$PATH:$HOME/.dotnet/tools"' | tee -a /etc/skel/.bashrc
prependEtcEnvironmentPath '$HOME/.dotnet/tools'
invoke_tests "DotnetSDK"

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