Compare commits

...

257 Commits

Author SHA1 Message Date
Image generation service account 26e7ad8ba7 Updating readme file for win22 version 20220511.2 2022-05-11 17:51:48 +00:00
Alexis Saettler 0ca5e834c0 Refactor Get-DotnetFrameworkTools and allow multiple SDKs installation (#5464) 2022-05-11 18:59:46 +03:00
AlexanderGitin 63c06b0c58 [MacOS] Add safe directory setting to git config (#5452) 2022-05-11 18:55:42 +03:00
Mikhail Koliada 0576062396 [Ubuntu] Migrate 22.04 from json to hcl (#5517) 2022-05-11 16:53:55 +03:00
Aleksandr Chebotov f2c7e4b929 Cleanup AD principal resources (#5481) 2022-05-10 11:26:57 +03:00
Aleksandr Chebotov 3caf4a3e5c [Windows] Add docker-compose v2 (#5504) 2022-05-10 11:23:19 +03:00
Aleksandr Chebotov 75a62205e9 Update cobertura link (#5502) 2022-05-09 13:43:19 +03:00
AlexanderGitin 54dc44b7a2 [macOS] Fix GHCup version output (#5455)
* [macOS] Fix GHCup version output

* Remove 'v' in GHCup version

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

* Add link to vsts-agent issue

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

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

* Update Ubuntu2004-Readme.md

Updated kubectl version.

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

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

* Update Ubuntu1804-Readme.md

Fix kubectl version.

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

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

* Add link to the badge

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

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

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

* add example revisions that break build

* use json instead of csv when retrieving previous versions

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

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

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

* Remove extra line

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

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

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

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

* removed mac changes

* added go 1.18 and move default version to 1.17

* fixed default version in readme

* update ubuntu2004 readme to golang 1.17.8

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

* Update toolset-11.json

* Added Pester test and documentation update for YQ tool.

* Change YQ version to full description with URL.

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

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

* remove whitespace

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

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

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

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

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

* remove readme changes because they are auto genera

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

* Move check before xcode

* Move check after homebrew

* Exclude NotificationCenter

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

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

* some settings are not available on Win16

* Add import New-ItemPath function

* Suppress output

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

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

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

* Replace graalVM tests

* Resolve comments

* Fix native image install command path

* Fixing graalvm root path in tests

* Fix GRAALVM_11_ROOT path for software report

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

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

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

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

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

* add workaround notice

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

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

* Update installation, improve install-binary and resolve comments

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

* Fix argument list for AzureCLI

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

* Add gh token to 10.15

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

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

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

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

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

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

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

Agree - better.

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

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

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

* Fixes from code review

* Add test and version check to dotnet tool json

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

* Fixes from code review

* Fix test for nbgv

* Fix linux installer

* Fix name for test context.

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

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

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

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

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

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

* Aligning PS1 between win and linux

* Remove out

* Add Nuget.org as feed source for installing tool

* Fix tests

* Fix getting tool version

* Change from code review

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

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

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

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

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

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

* Changes from code review

* Change from code revision

* Fix tests

* dotnet tool is now installed to a tool path

* Move dotnet tools install

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

* Fxi typo in path

* Add path to software report for dotnet tools

* Remove new line (from code review)

* Add progress output message to dotnet tools install

* Change install path for tool

* New updating PATH with dotnet tools location

* Remove duplicated assigment

* Remove output message and add back Out-null

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

* check daemon.conf config exists

* mask fwupd-refresh.timer service
2022-01-13 11:23:56 +03:00
Lucas Mior 59bc59f568 Fixing small typo (#4878) 2022-01-13 09:53:31 +03:00
Nikolay Frolov 02b0bf3e1a [Windows] Add Microsoft.VisualStudio.Component.VC.Modules.x86.x64 (#4872) 2022-01-12 22:07:09 +03:00
Nikolay Frolov a8db6be3f0 [Windows] Update Azure PowerShell to 7.1 (#4853) 2022-01-12 22:06:52 +03:00
Nikolay Frolov 44fd9ae71a [macOS] Update Azure PowerShell to 7.1 (#4854) 2022-01-12 22:06:45 +03:00
Nikolay Frolov a6856ecef3 [Ubuntu] Update Azure PowerShell to 7.1 (#4855) 2022-01-12 22:06:39 +03:00
Aleksandr Chebotov b5fd6da0f9 Add Net.Component.4.7.TargetingPack component (#4874) 2022-01-12 22:05:59 +03:00
Mikhail Koliada 1048793daa [Ubuntu] Add Eclipse Temurin (Adoptium) to Java installer (#4868) 2022-01-12 22:05:33 +03:00
Aleksandr Chebotov 9a54916b6c Pass build_id as an argument to ImageName (#4869) 2022-01-12 12:54:57 +03:00
Maksim Shilov 340f75b8f2 Add vc v141 ATL ARM/64 components (#4857) 2022-01-12 09:55:46 +03:00
152 changed files with 4306 additions and 1992 deletions
+2 -1
View File
@@ -32,9 +32,10 @@ body:
options:
- label: Ubuntu 18.04
- label: Ubuntu 20.04
- label: Ubuntu 22.04
- label: macOS 10.15
- label: macOS 11
- label: Windows Server 2016
- label: macOS 12
- label: Windows Server 2019
- label: Windows Server 2022
validations:
+7 -6
View File
@@ -1,6 +1,6 @@
name: Bug Report
description: Submit a bug report
labels: [needs triage]
description: Submit a bug report.
labels: [bug report, needs triage]
body:
- type: textarea
attributes:
@@ -14,9 +14,10 @@ body:
options:
- label: Ubuntu 18.04
- label: Ubuntu 20.04
- label: Ubuntu 22.04
- label: macOS 10.15
- label: macOS 11
- label: Windows Server 2016
- label: macOS 12
- label: Windows Server 2019
- label: Windows Server 2022
validations:
@@ -28,7 +29,7 @@ body:
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
@@ -51,5 +52,5 @@ body:
A description with steps to reproduce the issue.
1. Step 1
2. Step 2
validations:
required: true
validations:
required: true
+6 -1
View File
@@ -1 +1,6 @@
blank_issues_enabled: false
blank_issues_enabled: false
contact_links:
- name: Get help in GitHub Discussions
url: https://github.com/actions/virtual-environments/discussions
about: Have a question? Feel free to ask in the virtual-environments GitHub Discussions!
+2 -1
View File
@@ -53,9 +53,10 @@ body:
options:
- label: Ubuntu 18.04
- label: Ubuntu 20.04
- label: Ubuntu 22.04
- label: macOS 10.15
- label: macOS 11
- label: Windows Server 2016
- label: macOS 12
- label: Windows Server 2019
- label: Windows Server 2022
validations:
+70
View File
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '32 4 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python', 'ruby' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 GitHub
Copyright (c) 2022 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
+6 -4
View File
@@ -12,10 +12,11 @@ For general questions about using the virtual environments or writing your Actio
| --------------------|---------------------|--------------------|---------------------|
| 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)
| macOS 12 | `macos-12`| [macOS-12] | [![](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-12&badge=1)](https://actionvirtualenvironmentsstatus.azurewebsites.net/api/status?imageName=macos-12&redirect=1)
| macOS 11 | `macos-latest` or `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-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-latest` or `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-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)
<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.
@@ -52,6 +53,7 @@ You can also track upcoming changes using the [awaiting-deployment](https://gith
[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-12]: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md
[macOS-10.15]: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md
[self-hosted runners]: https://help.github.com/en/actions/hosting-your-own-runners
+8 -1
View File
@@ -61,11 +61,17 @@ 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", "Windows2022", "Ubuntu1804", "Ubuntu2004".
- `ImageType` - The type of the image being generated. Valid options are: "Windows2016", "Windows2019", "Windows2022", "Ubuntu1804", "Ubuntu2004", "Ubuntu2204".
- `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.
For optional authentication via service principal make sure to provide the following params — `AzureClientId`, `AzureClientSecret`, `AzureTenantId`, so the whole command will be:
```
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "myTestResourceGroup" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu1804 -AzureLocation "East US" -AzureClientId {AADApplicationID} -AzureClientSecret {AADApplicationSecret} -AzureTenantId {AADTenantID}
```
*Please, check synopsis of `GenerateResourcesAndImage` for details about non-mandatory parameters.*
#### Generated VM Deployment
@@ -95,6 +101,7 @@ The function creates an Azure VM from a template and generates network resources
### User variables
The Packer template includes `variables` section containing user variables used in image generation. Each variable is defined as a key/value strings. User variables can be passed to packer via predefined environment variables, or as direct arguments, in case if packer started manually.
- `build_resource_group_name` - Specify an existing resource group to run the build in it. By default, a temporary resource group will be created and destroyed as part of the build. If you do not have permission to do so, use build_resource_group_name to specify an existing resource group to run the build in it.
- `client_id` - The application ID of the AAD Service Principal. Requires `client_secret`.
- `object_id` - The object ID for the AAD SP. Will be derived from the oAuth token if empty.
- `client_secret` - A password/secret registered for the AAD SP.
+1 -1
View File
@@ -17,7 +17,7 @@ In general, these are the guidelines we consider when deciding what to pre-insta
## 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%.
- We support at least 2 latest OS versions. We begin the deprecation process of the oldest image label once a new OS version has been released.
- 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:
+1 -1
View File
@@ -72,5 +72,5 @@ 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)"
Write-Host "`nCreated in ${ResourceGroupName}:`n vnet ${vnetName}`n subnet ${subnetName}`n nic ${nicName}`n publicip ${publicIpName}`n vm ${VirtualMachineName}"
}
+165 -133
View File
@@ -6,6 +6,7 @@ enum ImageType {
Windows2022 = 2
Ubuntu1804 = 3
Ubuntu2004 = 4
Ubuntu2204 = 5
}
Function Get-PackerTemplatePath {
@@ -32,6 +33,9 @@ Function Get-PackerTemplatePath {
([ImageType]::Ubuntu2004) {
$relativeTemplatePath = Join-Path "linux" "ubuntu2004.json"
}
([ImageType]::Ubuntu2204) {
$relativeTemplatePath = Join-Path "linux" "ubuntu2204.json"
}
default { throw "Unknown type of image" }
}
@@ -128,144 +132,172 @@ Function GenerateResourcesAndImage {
[bool] $EnableHttpsTrafficOnly = $False
)
$builderScriptPath = Get-PackerTemplatePath -RepositoryRoot $ImageGenerationRepositoryRoot -ImageType $ImageType
$ServicePrincipalClientSecret = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$InstallPassword = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
if ([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;
try {
Get-AzResourceGroup -Name $ResourceGroupName
Write-Verbose "Resource group was found, will delete and recreate it."
$builderScriptPath = Get-PackerTemplatePath -RepositoryRoot $ImageGenerationRepositoryRoot -ImageType $ImageType
$ServicePrincipalClientSecret = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
$InstallPassword = $env:UserName + [System.GUID]::NewGuid().ToString().ToUpper()
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;
try {
Get-AzResourceGroup -Name $ResourceGroupName
Write-Verbose "Resource group was found, will delete and recreate it."
}
catch {
Write-Verbose "Resource group was not found, will create it."
$alreadyExists = $false;
}
if ($alreadyExists) {
if($Force -eq $true) {
# Cleanup the resource group if it already exitsted before
Remove-AzResourceGroup -Name $ResourceGroupName -Force
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation
} else {
$title = "Delete Resource Group"
$message = "The resource group you specified already exists. Do you want to clean it up?"
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
"Delete the resource group including all resources."
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
"Keep the resource group and continue."
$stop = New-Object System.Management.Automation.Host.ChoiceDescription "&Stop", `
"Stop the current action."
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no, $stop)
$result = $host.ui.PromptForChoice($title, $message, $options, 0)
switch ($result)
{
0 { Remove-AzResourceGroup -Name $ResourceGroupName -Force; New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation }
1 { <# Do nothing #> }
2 { exit }
}
}
} else {
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation
}
# This script should follow the recommended naming conventions for azure resources
$storageAccountName = if($ResourceGroupName.EndsWith("-rg")) {
$ResourceGroupName.Substring(0, $ResourceGroupName.Length -3)
} else { $ResourceGroupName }
# Resource group names may contain special characters, that are not allowed in the storage account name
$storageAccountName = $storageAccountName.Replace("-", "").Replace("_", "").Replace("(", "").Replace(")", "").ToLower()
$storageAccountName += "001"
# Storage Account Name can only be 24 characters long
if ($storageAccountName.Length -gt 24){
$storageAccountName = $storageAccountName.Substring(0, 24)
}
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS" -AllowBlobPublicAccess $AllowBlobPublicAccess -EnableHttpsTrafficOnly $EnableHttpsTrafficOnly
if ([string]::IsNullOrEmpty($AzureClientId)) {
# Interactive authentication: A service principal is created during runtime.
$spDisplayName = [System.GUID]::NewGuid().ToString().ToUpper()
$startDate = Get-Date
$endDate = $startDate.AddYears(1)
if ('Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential' -as [type]) {
$credentials = [Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential]@{
StartDate = $startDate
EndDate = $endDate
Password = $ServicePrincipalClientSecret
}
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName -PasswordCredential $credentials
$spClientId = $sp.ApplicationId
$azRoleParam = @{
RoleDefinitionName = "Contributor"
ServicePrincipalName = $spClientId
}
}
if ('Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential' -as [type]) {
$credentials = [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential]@{
StartDateTime = $startDate
EndDateTime = $endDate
}
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName
$appCred = New-AzADAppCredential -ApplicationId $sp.AppId -PasswordCredentials $credentials
$spClientId = $sp.AppId
$azRoleParam = @{
RoleDefinitionName = "Contributor"
PrincipalId = $sp.Id
}
$ServicePrincipalClientSecret = $appCred.SecretText
}
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
New-AzRoleAssignment @azRoleParam
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
$sub = Get-AzSubscription -SubscriptionId $SubscriptionId
$tenantId = $sub.TenantId
# Remove ADPrincipal after the script completed
$isCleanupADPrincipal = $true
} else {
# Parametrized Authentication via given service principal: The service principal with the data provided via the command line
# is used for all authentication purposes.
$spClientId = $AzureClientId
$credentials = $AzureAppCred
$ServicePrincipalClientSecret = $AzureClientSecret
$tenantId = $AzureTenantId
}
Get-LatestCommit -ErrorAction SilentlyContinue
$packerBinary = Get-Command "packer"
if (-not ($packerBinary)) {
throw "'packer' binary is not found on PATH"
}
if($RestrictToAgentIpAddress -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 "location=$($AzureLocation)" `
-var "resource_group=$($ResourceGroupName)" `
-var "storage_account=$($storageAccountName)" `
-var "install_password=$($InstallPassword)" `
-var "allowed_inbound_ip_addresses=$($AgentIp)" `
$builderScriptPath
}
catch {
Write-Verbose "Resource group was not found, will create it."
$alreadyExists = $false;
Write-Error $_
}
finally {
# Remove ADServicePrincipal and ADApplication
if ($isCleanupADPrincipal) {
Write-Host "`nRemoving ${spDisplayName}/${spClientId}:"
if (Get-AzADServicePrincipal -DisplayName $spDisplayName) {
Write-Host " [+] ADServicePrincipal"
Remove-AzADServicePrincipal -DisplayName $spDisplayName -Confirm:$false
}
if ($alreadyExists) {
if($Force -eq $true) {
# Cleanup the resource group if it already exitsted before
Remove-AzResourceGroup -Name $ResourceGroupName -Force
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation
} else {
$title = "Delete Resource Group"
$message = "The resource group you specified already exists. Do you want to clean it up?"
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
"Delete the resource group including all resources."
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
"Keep the resource group and continue."
$stop = New-Object System.Management.Automation.Host.ChoiceDescription "&Stop", `
"Stop the current action."
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no, $stop)
$result = $host.ui.PromptForChoice($title, $message, $options, 0)
switch ($result)
{
0 { Remove-AzResourceGroup -Name $ResourceGroupName -Force; New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation }
1 { <# Do nothing #> }
2 { exit }
if (Get-AzADApplication -DisplayName $spDisplayName) {
Write-Host " [+] ADApplication"
Remove-AzADApplication -DisplayName $spDisplayName -Confirm:$false
}
}
} else {
New-AzResourceGroup -Name $ResourceGroupName -Location $AzureLocation
}
# This script should follow the recommended naming conventions for azure resources
$storageAccountName = if($ResourceGroupName.EndsWith("-rg")) {
$ResourceGroupName.Substring(0, $ResourceGroupName.Length -3)
} else { $ResourceGroupName }
# Resource group names may contain special characters, that are not allowed in the storage account name
$storageAccountName = $storageAccountName.Replace("-", "").Replace("_", "").Replace("(", "").Replace(")", "").ToLower()
$storageAccountName += "001"
New-AzStorageAccount -ResourceGroupName $ResourceGroupName -AccountName $storageAccountName -Location $AzureLocation -SkuName "Standard_LRS" -AllowBlobPublicAccess $AllowBlobPublicAccess -EnableHttpsTrafficOnly $EnableHttpsTrafficOnly
if ([string]::IsNullOrEmpty($AzureClientId)) {
# Interactive authentication: A service principal is created during runtime.
$spDisplayName = [System.GUID]::NewGuid().ToString().ToUpper()
$startDate = Get-Date
$endDate = $startDate.AddYears(1)
if ('Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential' -as [type]) {
$credentials = [Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential]@{
StartDate = $startDate
EndDate = $endDate
Password = $ServicePrincipalClientSecret
}
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName -PasswordCredential $credentials
$spClientId = $sp.ApplicationId
$azRoleParam = @{
RoleDefinitionName = "Contributor"
ServicePrincipalName = $spClientId
}
}
if ('Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential' -as [type]) {
$credentials = [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.MicrosoftGraphPasswordCredential]@{
StartDateTime = $startDate
EndDateTime = $endDate
}
$sp = New-AzADServicePrincipal -DisplayName $spDisplayName
$appCred = New-AzADAppCredential -ApplicationId $sp.AppId -PasswordCredentials $credentials
$spClientId = $sp.AppId
$azRoleParam = @{
RoleDefinitionName = "Contributor"
PrincipalId = $sp.Id
}
$ServicePrincipalClientSecret = $appCred.SecretText
}
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
New-AzRoleAssignment @azRoleParam
Start-Sleep -Seconds $SecondsToWaitForServicePrincipalSetup
$sub = Get-AzSubscription -SubscriptionId $SubscriptionId
$tenantId = $sub.TenantId
# "", "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
$packerBinary = Get-Command "packer"
if (-not ($packerBinary)) {
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 "location=$($AzureLocation)" `
-var "resource_group=$($ResourceGroupName)" `
-var "storage_account=$($storageAccountName)" `
-var "install_password=$($InstallPassword)" `
-var "allowed_inbound_ip_addresses=$($AgentIp)" `
$builderScriptPath
}
}
@@ -31,7 +31,10 @@ jobs:
$ImageType = "${{ parameters.image_type }}"
$TemplateDirectoryName = if ($ImageType.StartsWith("ubuntu")) { "linux" } else { "win" }
$TemplateDirectoryPath = Join-Path "images" $TemplateDirectoryName | Resolve-Path
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.json"
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.pkr.hcl"
if ( -not (Test-Path $TemplatePath) ) {
$TemplatePath = Join-Path $TemplateDirectoryPath "$ImageType.json"
}
Write-Host "##vso[task.setvariable variable=TemplateDirectoryPath;]$TemplateDirectoryPath"
Write-Host "##vso[task.setvariable variable=TemplatePath;]$TemplatePath"
@@ -0,0 +1,20 @@
schedules:
- cron: "0 0 * * *"
displayName: Daily
branches:
include:
- main
always: true
trigger: none
pr:
autoCancel: true
branches:
include:
- main
jobs:
- template: image-generation.yml
parameters:
image_type: ubuntu2204
image_readme_name: Ubuntu2204-Readme.md
+5 -2
View File
@@ -19,7 +19,10 @@ if (-not (Test-Path $TemplatePath))
exit 1
}
$Image = [io.path]::GetFileNameWithoutExtension($TemplatePath)
# Set Image repository path env variable, this is a workaround for Ubuntu 22.04 until this is fixed https://github.com/hashicorp/packer/issues/11733
$env:ImageRepositoryPath = "."
$Image = [io.path]::GetFileName($TemplatePath).Split(".")[0]
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()
@@ -59,4 +62,4 @@ packer build -var "capture_name_prefix=$ResourcesNamePrefix" `
$currentString = $_
$sensitiveString = $SensitiveData | Where-Object { $currentString -match $_ }
$sensitiveString -eq $null
}
}
@@ -26,6 +26,7 @@ $headers = @{
Authorization = "Basic ${base64AuthInfo}"
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
$NewRelease = Invoke-RestMethod $URL -Body $Body -Method "POST" -Headers $headers -ContentType "application/json"
Write-Host "Created release: $($NewRelease._links.web.href)"
+2 -4
View File
@@ -13,12 +13,10 @@ function Enable-AutoLogon {
[string] $Password
)
$url = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/macos/provision/bootstrap-provisioner/kcpassword.py"
$url = "https://raw.githubusercontent.com/actions/virtual-environments/main/images/macos/provision/bootstrap-provisioner/setAutoLogin.sh"
$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"
$command = "echo $base64 | base64 --decode > ./setAutoLogin.sh;sudo bash ./setAutoLogin.sh '${UserName}' '${Password}';rm ./setAutoLogin.sh"
Invoke-SSHPassCommand -HostName $HostName -Command $command
}
@@ -55,7 +55,8 @@ jobs:
arguments: -VMName "$(VirtualMachineName)" `
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-v2)" `
-VIPassword "$(vcenter-password-v2)"
-VIPassword '$(vcenter-password-v2)' `
-Cluster "$(esxi-cluster-v2)"
- pwsh: |
$SensitiveData = @(
@@ -66,13 +67,14 @@ jobs:
packer build -on-error=abort `
-var="vcenter_server=$(vcenter-server-v2)" `
-var="vcenter_username=$(vcenter-username-v2)" `
-var="vcenter_password=$(vcenter-password-v2)" `
-var='vcenter_password=$(vcenter-password-v2)' `
-var="vcenter_datacenter=$(vcenter-datacenter-v2)" `
-var="cluster_or_esxi_host=$(esxi-cluster-v2)" `
-var="esxi_datastore=$(buildDatastore)" `
-var="output_folder=$(output-folder)" `
-var="vm_username=$(vm-username)" `
-var="vm_password=$(vm-password)" `
-var="github_api_pat=$(github_api_pat)" `
-var="build_id=$(VirtualMachineName)" `
-var="baseimage_name=${{ parameters.base_image_name }}" `
-var="xcode_install_user=$(xcode-installation-user)" `
@@ -130,7 +132,7 @@ jobs:
-TargetDataStore "${{ parameters.target_datastore }}" `
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-v2)" `
-VIPassword "$(vcenter-password-v2)"
-VIPassword '$(vcenter-password-v2)' `
-CpuCount "$(cpu-count)" `
-CoresPerSocketCount "$(cores-per-socket-count)" `
-Memory "$(memory)"
@@ -144,4 +146,4 @@ jobs:
arguments: -VMName "$(VirtualMachineName)" `
-VIServer "$(vcenter-server-v2)" `
-VIUserName "$(vcenter-username-v2)" `
-VIPassword "$(vcenter-password-v2)"
-VIPassword '$(vcenter-password-v2)'
+3
View File
@@ -71,6 +71,7 @@ if ($env:AGENT_JOBSTATUS -eq 'Failed') {
Write-Host "VM has been successfully powered off and renamed to [${VMName}_failed]"
} catch {
Write-Host "##vso[task.LogIssue type=error;]Failed to power off and rename VM '$VMName'"
exit 1
}
}
@@ -79,6 +80,7 @@ try {
Write-Host "VM has been moved successfully to target datastore '$TargetDataStore'"
} catch {
Write-Host "##vso[task.LogIssue type=error;]Failed to move VM '$VMName' to target datastore '$TargetDataStore'"
exit 1
}
try {
@@ -86,4 +88,5 @@ try {
$vm | Set-VM -NumCPU $CpuCount -CoresPerSocket $CoresPerSocketCount -MemoryMB $Memory -Confirm:$false -ErrorAction Stop | Out-Null
} catch {
Write-Host "##vso[task.LogIssue type=error;]Failed to change specs for VM '$VMName'"
exit 1
}
+9 -5
View File
@@ -36,7 +36,9 @@ param(
[ValidateNotNullOrEmpty()]
[string]$VIPassword,
[string]$TagCategory = "Busy"
[string]$TagCategory = "Busy",
[string]$Cluster
)
# Import helpers module
@@ -47,6 +49,7 @@ function Select-DataStore {
[string]$VMName,
[string]$TagCategory,
[string]$TemplateDatastore = "ds-local-Datastore-*",
[string]$Cluster,
[int]$ThresholdInGb = 400,
[int]$VMCount = 2,
[int]$Retries = 5
@@ -57,8 +60,9 @@ function Select-DataStore {
# 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" }
$availableDatastores = $allDatastores `
$clusterHosts = Get-Cluster -Name $Cluster | Get-VMHost
$availableClusterDatastores = $clusterHosts | Get-Datastore -Name $TemplateDatastore | Where-Object -Property State -eq "Available"
$availableDatastores = $availableClusterDatastores `
| Where-Object { $_.FreeSpaceGB -ge $thresholdInGb } `
| Where-Object {
$vmOnDatastore = @((Get-ChildItem -Path $_.DatastoreBrowserPath).Name -notmatch "^\.").Count
@@ -101,11 +105,11 @@ function Select-DataStore {
}
Write-Host "Datastore select failed, $retries left"
Select-DataStore -VMName $VMName -TagCategory $TagCategory -Retries $retries
Select-DataStore -VMName $VMName -Cluster $Cluster -TagCategory $TagCategory -Retries $retries
}
# Connection to a vCenter Server system
Connect-VCServer -VIServer $VIServer -VIUserName $VIUserName -VIPassword $VIPassword
# Get a target datastore for current deployment
Select-DataStore -VMName $VMName -TagCategory $TagCategory
Select-DataStore -VMName $VMName -Cluster $Cluster -TagCategory $TagCategory
+158 -148
View File
@@ -1,43 +1,39 @@
| 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
- Linux kernel version: 5.4.0-1077-azure
- Image Version: 20220503.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
- Erlang 24.3.3 (Eshell 12.3.1)
- Erlang rebar3 3.18.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
- Julia 1.7.2
- Kotlin 1.6.21-release-334
- 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
- Node 16.15.0
- Perl 5.26.1
- Python 2.7.17
- Python3 3.6.9
- Ruby 2.5.1p57
- Swift 5.5.2
- Swift 5.6.1
### Package Management
- cpan 1.64
- Helm 3.7.2
- Homebrew 3.3.8
- Miniconda 4.10.3
- Npm 8.1.2
- Helm 3.8.2
- Homebrew 3.4.10
- Miniconda 4.11.0
- Npm 8.5.5
- Pip 9.0.1
- Pip3 9.0.1
- Pipx 0.16.4
- Pipx 1.0.0
- RubyGems 2.7.6
- Vcpkg (build from master \<50fd3d995>)
- Yarn 1.22.17
- Vcpkg (build from master \<b98afc9f1>)
- Yarn 1.22.18
#### Environment variables
| Name | Value |
@@ -47,114 +43,115 @@
### Project Management
- Ant 1.10.5
- Gradle 7.3.2
- Maven 3.8.4
- Sbt 1.5.7
- Gradle 7.4.2
- Maven 3.8.5
- Sbt 1.6.2
### Tools
- Ansible 2.11.7
- apt-fast 1.9.11
- AzCopy 10.13.0 (available by `azcopy` and `azcopy10` aliases)
- Bazel 4.2.2
- Ansible 2.11.11
- apt-fast 1.9.12
- AzCopy 10.14.1 (available by `azcopy` and `azcopy10` aliases)
- Bazel 5.1.1
- Bazelisk 1.11.0
- Bicep 0.4.1124
- Bicep 0.6.1
- 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
- CMake 3.23.1
- CodeQL Action Bundle 2.9.0
- 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)
- Docker Compose v2 2.4.1+azure-1
- Docker-Buildx 0.8.2
- Docker-Moby Client 20.10.14+azure-1
- Docker-Moby Server 20.10.14+azure-1
- Git 2.36.0 (apt source repository: ppa:git-core/ppa)
- Git LFS 3.1.4 (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
- Heroku 7.60.2
- HHVM (HipHop VM) 4.159.0
- jq 1.5
- Kind 0.11.1
- Kubectl 1.23.1
- Kustomize 4.4.1
- Kind 0.12.0
- Kubectl 1.24.0
- Kustomize 4.5.4
- Leiningen 2.9.8
- MediaInfo 17.12
- Mercurial 4.5.3
- Minikube 1.24.0
- n 8.0.1
- Newman 5.3.0
- Minikube 1.25.2
- n 8.2.0
- Newman 5.3.2
- nvm 0.39.1
- OpenSSL 1.1.1 11 Sep 2018
- Packer 1.7.8
- Parcel 2.0.1
- OpenSSL 1.1.1-1ubuntu2.1~18.04.15
- Packer 1.8.0
- Parcel 2.5.0
- 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
- Pulumi 3.31.0
- R 4.2.0
- 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
- Terraform 1.1.9
- yamllint 1.26.3
- yq 4.16.1
- zstd 1.5.0 (homebrew)
- yq 4.25.1
- zstd 1.5.2 (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)
- Alibaba Cloud CLI 3.0.118
- AWS CLI 1.23.6
- AWS CLI Session manager plugin 1.2.312.0
- AWS SAM CLI 1.47.0
- Azure CLI (azure-cli) 2.36.0 (installation method: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt)
- Azure CLI (azure-devops) 0.25.0
- GitHub CLI 2.9.0
- Google Cloud SDK 369.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
- Netlify CLI 10.1.0
- OpenShift CLI 4.10.12
- ORAS CLI 0.12.0
- Vercel CLI 23.1.2
- Vercel CLI 24.2.0
### 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 |
| Version | Vendor | Environment Variable |
| ------------------- | --------------- | -------------------- |
| 8.0.322+6 (default) | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.15+10 | Eclipse Temurin | JAVA_HOME_11_X64 |
| 12.0.2+10 | Adopt OpenJDK | JAVA_HOME_12_X64 |
| 17.0.3+7 | Eclipse Temurin | JAVA_HOME_17_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 |
| Tool | Version |
| -------- | --------------------------------- |
| PHP | 7.2.34 7.3.33 7.4.29 8.0.18 8.1.5 |
| Composer | 2.3.5 |
| PHPUnit | 8.5.26 |
```
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
- GHC 9.2.2
- GHCup 0.1.17.7
- Stack 2.7.5
### Rust Tools
- Cargo 1.57.0
- Rust 1.57.0
- Rustdoc 1.57.0
- Cargo 1.60.0
- Rust 1.60.0
- Rustdoc 1.60.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
- Cargo clippy 0.1.60
- Cargo outdated
- Cbindgen 0.23.0
- Rustfmt 1.4.38
### 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
- Google Chrome 101.0.4951.54
- ChromeDriver 101.0.4951.41
- Chromium 101.0.4951.0
- Mozilla Firefox 99.0
- Geckodriver 0.31.0
- Selenium server 4.1.0
#### Environment variables
@@ -165,73 +162,84 @@
| 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
- 3.1.120 3.1.202 3.1.302 3.1.418 5.0.104 5.0.213 5.0.303 5.0.407 6.0.202
### .NET tools
- nbgv 3.5.103+351d94e36c
### 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/)
- MongoDB 5.0.8 (apt source repository: https://repo.mongodb.org/apt/ubuntu)
- sqlite3 3.22.0
#### PostgreSQL
- PostgreSQL 14.2 (apt source repository: https://apt.postgresql.org/pub/repos/apt/)
- PostgreSQL Server (user:postgres)
```
PostgreSQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start postgresql.service'
```
#### MySQL
- MySQL 5.7.36
- MySQL 5.7.38
- 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
- sqlcmd 17.9.0001.1
- SqlPackage 16.0.5400.1
### Cached Tools
#### Go
- 1.15.15
- 1.16.12
- 1.17.5
- 1.16.15
- 1.17.9
- 1.18.1
#### Node.js
- 12.22.8
- 14.18.2
- 16.13.1
- 12.22.12
- 14.19.1
- 16.15.0
#### PyPy
- 2.7.18 [PyPy 7.3.6]
- 2.7.18 [PyPy 7.3.9]
- 3.6.12 [PyPy 7.3.3]
- 3.9.12 [PyPy 7.3.9]
#### Python
- 2.7.18
- 3.5.10
- 3.6.15
- 3.7.12
- 3.7.13
- 3.8.12
- 3.9.9
- 3.10.1
- 3.9.12
- 3.10.4
#### Ruby
- 2.4.10
- 2.5.9
- 2.6.9
- 2.7.5
- 3.0.3
- 2.6.10
- 2.7.6
- 3.0.4
- 3.1.2
#### 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 |
| GOROOT_1_16_X64 | /opt/hostedtoolcache/go/1.16.15/x64 | x64 |
| GOROOT_1_17_X64 | /opt/hostedtoolcache/go/1.17.9/x64 | x64 |
| GOROOT_1_18_X64 | /opt/hostedtoolcache/go/1.18.1/x64 | x64 |
### PowerShell Tools
- PowerShell 7.2.1
- PowerShell 7.2.3
#### PowerShell Modules
| Module | Version |
| ---------- | ------- |
| MarkdownPS | 1.9 |
| Pester | 5.3.1 |
| Module | Version |
| --------------- | ------- |
| MarkdownPS | 1.9 |
| Microsoft.Graph | 1.9.5 |
| Pester | 5.3.3 |
#### Az PowerShell Modules
- 6.4.0 3.1.0.zip 4.4.0.zip 5.9.0.zip
- 7.3.2 3.1.0.zip 4.4.0.zip 5.9.0.zip 6.6.0.zip
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
@@ -243,9 +251,9 @@
| Package Name | Version |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Android Command Line Tools | 4.0 |
| Android Emulator | 31.1.4 |
| Android Emulator | 31.2.10 |
| 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 Platform-Tools | 33.0.1 |
| 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 |
@@ -268,39 +276,41 @@
### 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 |
| alpine:3.12 | sha256:c75ac27b49326926b803b9ed43bf088bc220d22556de1bc5f72d742c91398f69 | 2022-04-05 |
| alpine:3.13 | sha256:ccf92aa53bc6c3b25be2ad0cce80baec1778f007f7e076b0ffbd1b225d0b3a9b | 2022-04-05 |
| alpine:3.14 | sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 | 2022-04-05 |
| buildpack-deps:bullseye | sha256:f26b9bcb6722fd59888caf4f4c1d4990799e3e83d804a83b7b58b4be949dc75e | 2022-04-20 |
| buildpack-deps:buster | sha256:b971efe3151fcfb10d0b7dfc739d081a9f9d9413195aa9b80224a66f4a651b4a | 2022-04-20 |
| buildpack-deps:stretch | sha256:fd003a4b08626dd6e5a59c61de0639243909644344a5bada501bf42e9982eac6 | 2022-04-20 |
| debian:10 | sha256:ebe4b9831fb22dfa778de4ffcb8ea0ad69b5d782d4e86cab14cc1fded5d8e761 | 2022-04-20 |
| debian:11 | sha256:6846593d7d8613e5dcc68c8f7d8b8e3179c7f3397b84a47c5b2ce989ef1075a0 | 2022-04-20 |
| debian:9 | sha256:cebe6e1c30384958d471467e231f740e8f0fd92cbfd2a435a186e9bada3aee1c | 2022-04-20 |
| moby/buildkit:latest | sha256:3fbc9b9d9a74ab650eea43610ed880e51cdc05282d61f83c2e0a3b2e9ed3a344 | 2022-04-27 |
| node:12 | sha256:01627afeb110b3054ba4a1405541ca095c8bfca1cb6f2be9479c767a2711879e | 2022-04-20 |
| node:12-alpine | sha256:d4b15b3d48f42059a15bd659be60afe21762aae9d6cbea6f124440895c27db68 | 2022-04-11 |
| node:14 | sha256:2f39686f6d0b2687550659367fa11f56018a0f782b7e30f1a0ea56b11dece124 | 2022-04-20 |
| node:14-alpine | sha256:8845b4f88f64f8c56a39236648ba22946e806a6153c10911f77b70e5a2edb4ca | 2022-04-05 |
| node:16 | sha256:a6c217d7c8f001dc6fc081d55c2dd7fb3fefe871d5aa7be9c0c16bd62bea8e0c | 2022-04-27 |
| node:16-alpine | sha256:1a9a71ea86aad332aa7740316d4111ee1bd4e890df47d3b5eff3e5bded3b3d10 | 2022-04-27 |
| ubuntu:16.04 | sha256:20858ebbc96215d6c3c574f781133ebffdc7c18d98af4f294cc4c04871a6fe61 | 2021-08-31 |
| ubuntu:18.04 | sha256:d21b6ba9e19feffa328cb3864316e6918e30acfd55e285b5d3df1d8ca3c7fd3f | 2022-04-29 |
| ubuntu:20.04 | sha256:47f14534bda344d9fe6ffd6effb95eefe579f4be0d508b7445cf77f61a0e5724 | 2022-04-29 |
### Installed apt packages
| Name | Version |
| ----------------- | --------------------------------- |
| aria2 | 1.33.1-1 |
| autoconf | 2.69-11 |
| automake | 1:1.15.1-3ubuntu2 |
| 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 |
| curl | 7.58.0-2ubuntu3.17 |
| dbus | 1.12.2-1ubuntu1.2 |
| dnsutils | 1:9.11.3+dfsg-1ubuntu1.16 |
| dnsutils | 1:9.11.3+dfsg-1ubuntu1.17 |
| dpkg | 1.19.0.5ubuntu2.3 |
| fakeroot | 1.22-2ubuntu1 |
| file | 1:5.32-2ubuntu0.4 |
@@ -312,10 +322,10 @@
| iproute2 | 4.15.0-2ubuntu1.3 |
| iputils-ping | 3:20161105-1ubuntu3 |
| jq | 1.5+dfsg-2 |
| lib32z1 | 1:1.2.11.dfsg-0ubuntu2 |
| lib32z1 | 1:1.2.11.dfsg-0ubuntu2.1 |
| libc++-dev | 6.0-2 |
| libc++abi-dev | 6.0-2 |
| libcurl3 | 7.58.0-2ubuntu3.16 |
| libcurl3 | 7.58.0-2ubuntu3.17 |
| libgbm-dev | 20.0.8-0ubuntu1\~18.04.1 |
| libgconf-2-4 | 3.2.6-4ubuntu1 |
| libgsl-dev | 2.4+dfsg-6 |
@@ -325,16 +335,17 @@
| libmagickwand-dev | 8:6.9.7.4+dfsg-16ubuntu6.12 |
| libsecret-1-dev | 0.18.6-1 |
| libsqlite3-dev | 3.22.0-1ubuntu0.4 |
| libtool | 2.4.6-2 |
| libunwind8 | 1.2.1-8 |
| libxkbfile-dev | 1:1.0.9-2 |
| libxss1 | 1:1.2.2-1 |
| locales | 2.27-3ubuntu1.4 |
| locales | 2.27-3ubuntu1.5 |
| 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 |
| openssh-client | 1:7.6p1-4ubuntu0.6 |
| p7zip-full | 16.02+dfsg-6 |
| p7zip-rar | 16.02-2 |
| parallel | 20161222-1 |
@@ -344,11 +355,11 @@
| 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 |
| rsync | 3.1.2-2.1ubuntu1.4 |
| shellcheck | 0.4.6-1 |
| sphinxsearch | 2.2.11-2 |
| sqlite3 | 3.22.0-1ubuntu0.4 |
| ssh | 1:7.6p1-4ubuntu0.5 |
| ssh | 1:7.6p1-4ubuntu0.6 |
| sshpass | 1.06-1 |
| subversion | 1.9.7-4ubuntu1 |
| sudo | 1.8.21p2-3ubuntu1.4 |
@@ -357,14 +368,13 @@
| texinfo | 6.5.0.dfsg.1-2 |
| time | 1.7-25.1build1 |
| tk | 8.6.0+9 |
| tzdata | 2021e-0ubuntu0.18.04 |
| tzdata | 2022a-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 |
| xz-utils | 5.2.2-1.3ubuntu0.1 |
| zip | 3.0-11build1 |
| zsync | 0.6.2-3ubuntu1 |
+162 -152
View File
@@ -1,43 +1,39 @@
| 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
# Ubuntu 20.04.4 LTS
- Linux kernel version: 5.13.0-1022-azure
- Image Version: 20220503.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
- Erlang 24.3.3 (Eshell 12.3.1)
- Erlang rebar3 3.18.0
- GNU C++ 9.4.0, 10.3.0
- GNU Fortran 9.4.0, 10.3.0
- Julia 1.7.2
- Kotlin 1.6.21-release-334
- 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
- Node 16.15.0
- Perl 5.30.0
- Python 3.8.10
- Python3 3.8.10
- Ruby 2.7.0p0
- Swift 5.5.2
- Swift 5.6.1
### Package Management
- cpan 1.64
- Helm 3.7.2
- Homebrew 3.3.8
- Miniconda 4.10.3
- Npm 8.1.2
- Helm 3.8.2
- Homebrew 3.4.10
- Miniconda 4.11.0
- Npm 8.5.5
- Pip 20.0.2
- Pip3 20.0.2
- Pipx 0.16.4
- Pipx 1.0.0
- RubyGems 3.1.2
- Vcpkg (build from master \<50fd3d995>)
- Yarn 1.22.17
- Vcpkg (build from master \<b98afc9f1>)
- Yarn 1.22.18
#### Environment variables
| Name | Value |
@@ -47,120 +43,121 @@
### Project Management
- Ant 1.10.7
- Gradle 7.3.2
- Gradle 7.4.2
- Lerna 4.0.0
- Maven 3.8.4
- Sbt 1.5.7
- Maven 3.8.5
- Sbt 1.6.2
### Tools
- Ansible 2.12.1
- apt-fast 1.9.11
- AzCopy 10.13.0 (available by `azcopy` and `azcopy10` aliases)
- Bazel 4.2.2
- Ansible 2.12.5
- apt-fast 1.9.12
- AzCopy 10.14.1 (available by `azcopy` and `azcopy10` aliases)
- Bazel 5.1.1
- Bazelisk 1.11.0
- Bicep 0.4.1124
- Bicep 0.6.1
- 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
- CMake 3.23.1
- CodeQL Action Bundle 2.9.0
- 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)
- Docker Compose v2 2.4.1+azure-1
- Docker-Buildx 0.8.2
- Docker-Moby Client 20.10.14+azure-1
- Docker-Moby Server 20.10.14+azure-1
- Fastlane 2.205.2
- Git 2.36.0 (apt source repository: ppa:git-core/ppa)
- Git LFS 3.1.4 (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
- Heroku 7.60.2
- HHVM (HipHop VM) 4.159.0
- jq 1.6
- Kind 0.11.1
- Kubectl 1.23.1
- Kustomize 4.4.1
- Kind 0.12.0
- Kubectl 1.24.0
- Kustomize 4.5.4
- Leiningen 2.9.8
- MediaInfo 19.09
- Mercurial 5.3.1
- Minikube 1.24.0
- n 8.0.1
- Newman 5.3.0
- Minikube 1.25.2
- n 8.2.0
- Newman 5.3.2
- nvm 0.39.1
- OpenSSL 1.1.1f 31 Mar 2020
- Packer 1.7.8
- Parcel 2.0.1
- OpenSSL 1.1.1f-1ubuntu2.12
- Packer 1.8.0
- Parcel 2.5.0
- 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
- Pulumi 3.31.0
- R 4.2.0
- 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
- Terraform 1.1.9
- yamllint 1.26.3
- yq 4.16.1
- zstd 1.5.0 (homebrew)
- yq 4.25.1
- zstd 1.5.2 (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)
- Alibaba Cloud CLI 3.0.118
- AWS CLI 2.6.1
- AWS CLI Session manager plugin 1.2.312.0
- AWS SAM CLI 1.47.0
- Azure CLI (azure-cli) 2.36.0 (installation method: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt)
- Azure CLI (azure-devops) 0.25.0
- GitHub CLI 2.9.0
- Google Cloud SDK 369.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
- Netlify CLI 10.1.0
- OpenShift CLI 4.10.12
- ORAS CLI 0.12.0
- Vercel CLI 23.1.2
- Vercel CLI 24.2.0
### 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 |
| Version | Vendor | Environment Variable |
| -------------------- | --------------- | -------------------- |
| 8.0.322+6 | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.15+10 (default) | Eclipse Temurin | JAVA_HOME_11_X64 |
| 17.0.3+7 | Eclipse Temurin | JAVA_HOME_17_X64 |
### GraalVM
| Version | Environment variables |
| --------- | --------------------- |
| CE 21.3.0 | GRAALVM_11_ROOT |
| CE 22.1.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 |
| PHP | 7.4.29 8.0.18 8.1.5 |
| Composer | 2.3.5 |
| PHPUnit | 8.5.26 |
```
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
- GHC 9.2.2
- GHCup 0.1.17.7
- Stack 2.7.5
### Rust Tools
- Cargo 1.57.0
- Rust 1.57.0
- Rustdoc 1.57.0
- Cargo 1.60.0
- Rust 1.60.0
- Rustdoc 1.60.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
- Cargo clippy 0.1.60
- Cargo outdated
- Cbindgen 0.23.0
- Rustfmt 1.4.38
### 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
- Google Chrome 101.0.4951.54
- ChromeDriver 101.0.4951.41
- Chromium 101.0.4951.0
- Mozilla Firefox 99.0
- Geckodriver 0.31.0
- Selenium server 4.1.0
#### Environment variables
@@ -171,75 +168,86 @@
| 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
- 3.1.120 3.1.202 3.1.302 3.1.418 5.0.104 5.0.213 5.0.303 5.0.407 6.0.202
### .NET tools
- nbgv 3.5.103+351d94e36c
### 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/)
- MongoDB 5.0.8 (apt source repository: https://repo.mongodb.org/apt/ubuntu)
- sqlite3 3.31.1
#### PostgreSQL
- PostgreSQL 14.2 (apt source repository: https://apt.postgresql.org/pub/repos/apt/)
- PostgreSQL Server (user:postgres)
```
PostgreSQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start postgresql.service'
```
#### MySQL
- MySQL 8.0.26
- MySQL 8.0.29-0ubuntu0.20.04.2
- 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
- sqlcmd 17.9.0001.1
- SqlPackage 16.0.5400.1
### Cached Tools
#### Go
- 1.15.15
- 1.16.12
- 1.17.5
- 1.16.15
- 1.17.9
- 1.18.1
#### Node.js
- 12.22.8
- 14.18.2
- 16.13.1
- 12.22.12
- 14.19.1
- 16.15.0
#### PyPy
- 2.7.18 [PyPy 7.3.6]
- 2.7.18 [PyPy 7.3.9]
- 3.6.12 [PyPy 7.3.3]
- 3.7.12 [PyPy 7.3.7]
- 3.8.12 [PyPy 7.3.7]
- 3.7.13 [PyPy 7.3.9]
- 3.8.13 [PyPy 7.3.9]
- 3.9.12 [PyPy 7.3.9]
#### Python
- 2.7.18
- 3.5.10
- 3.6.15
- 3.7.12
- 3.7.13
- 3.8.12
- 3.9.9
- 3.10.1
- 3.9.12
- 3.10.4
#### Ruby
- 2.5.9
- 2.6.9
- 2.7.5
- 3.0.3
- 2.6.10
- 2.7.6
- 3.0.4
- 3.1.2
#### 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 |
| GOROOT_1_16_X64 | /opt/hostedtoolcache/go/1.16.15/x64 | x64 |
| GOROOT_1_17_X64 | /opt/hostedtoolcache/go/1.17.9/x64 | x64 |
| GOROOT_1_18_X64 | /opt/hostedtoolcache/go/1.18.1/x64 | x64 |
### PowerShell Tools
- PowerShell 7.2.1
- PowerShell 7.2.3
#### PowerShell Modules
| Module | Version |
| ---------------- | ------- |
| MarkdownPS | 1.9 |
| Pester | 5.3.1 |
| Microsoft.Graph | 1.9.5 |
| Pester | 5.3.3 |
| PSScriptAnalyzer | 1.20.0 |
#### Az PowerShell Modules
- 6.4.0 3.1.0.zip 4.4.0.zip 5.9.0.zip
- 7.3.2 3.1.0.zip 4.4.0.zip 5.9.0.zip 6.6.0.zip
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
@@ -252,9 +260,9 @@
| Package Name | Version |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Android Command Line Tools | 4.0 |
| Android Emulator | 31.1.4 |
| Android Emulator | 31.2.10 |
| 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 Platform-Tools | 33.0.1 |
| 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 |
@@ -276,40 +284,42 @@
### 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 |
| alpine:3.12 | sha256:c75ac27b49326926b803b9ed43bf088bc220d22556de1bc5f72d742c91398f69 | 2022-04-05 |
| alpine:3.13 | sha256:ccf92aa53bc6c3b25be2ad0cce80baec1778f007f7e076b0ffbd1b225d0b3a9b | 2022-04-05 |
| alpine:3.14 | sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 | 2022-04-05 |
| buildpack-deps:bullseye | sha256:f26b9bcb6722fd59888caf4f4c1d4990799e3e83d804a83b7b58b4be949dc75e | 2022-04-20 |
| buildpack-deps:buster | sha256:b971efe3151fcfb10d0b7dfc739d081a9f9d9413195aa9b80224a66f4a651b4a | 2022-04-20 |
| buildpack-deps:stretch | sha256:fd003a4b08626dd6e5a59c61de0639243909644344a5bada501bf42e9982eac6 | 2022-04-20 |
| debian:10 | sha256:ebe4b9831fb22dfa778de4ffcb8ea0ad69b5d782d4e86cab14cc1fded5d8e761 | 2022-04-20 |
| debian:11 | sha256:6846593d7d8613e5dcc68c8f7d8b8e3179c7f3397b84a47c5b2ce989ef1075a0 | 2022-04-20 |
| debian:9 | sha256:cebe6e1c30384958d471467e231f740e8f0fd92cbfd2a435a186e9bada3aee1c | 2022-04-20 |
| moby/buildkit:latest | sha256:3fbc9b9d9a74ab650eea43610ed880e51cdc05282d61f83c2e0a3b2e9ed3a344 | 2022-04-27 |
| node:12 | sha256:01627afeb110b3054ba4a1405541ca095c8bfca1cb6f2be9479c767a2711879e | 2022-04-20 |
| node:12-alpine | sha256:d4b15b3d48f42059a15bd659be60afe21762aae9d6cbea6f124440895c27db68 | 2022-04-11 |
| node:14 | sha256:2f39686f6d0b2687550659367fa11f56018a0f782b7e30f1a0ea56b11dece124 | 2022-04-20 |
| node:14-alpine | sha256:8845b4f88f64f8c56a39236648ba22946e806a6153c10911f77b70e5a2edb4ca | 2022-04-05 |
| node:16 | sha256:a6c217d7c8f001dc6fc081d55c2dd7fb3fefe871d5aa7be9c0c16bd62bea8e0c | 2022-04-27 |
| node:16-alpine | sha256:1a9a71ea86aad332aa7740316d4111ee1bd4e890df47d3b5eff3e5bded3b3d10 | 2022-04-27 |
| ubuntu:16.04 | sha256:20858ebbc96215d6c3c574f781133ebffdc7c18d98af4f294cc4c04871a6fe61 | 2021-08-31 |
| ubuntu:18.04 | sha256:d21b6ba9e19feffa328cb3864316e6918e30acfd55e285b5d3df1d8ca3c7fd3f | 2022-04-29 |
| ubuntu:20.04 | sha256:47f14534bda344d9fe6ffd6effb95eefe579f4be0d508b7445cf77f61a0e5724 | 2022-04-29 |
### Installed apt packages
| Name | Version |
| ---------------------- | --------------------------------- |
| acl | 2.2.53-6 |
| aria2 | 1.35.0-1build1 |
| autoconf | 2.69-11.1 |
| automake | 1:1.16.1-4ubuntu6 |
| binutils | 2.34-6ubuntu1.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 |
| curl | 7.68.0-1ubuntu2.10 |
| dbus | 1.12.16-2ubuntu2.1 |
| dnsutils | 1:9.16.1-0ubuntu2.9 |
| dnsutils | 1:9.16.1-0ubuntu2.10 |
| dpkg | 1.19.7ubuntu3 |
| fakeroot | 1.24-1 |
| file | 1:5.38-4 |
@@ -322,29 +332,30 @@
| 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 |
| lib32z1 | 1:1.2.11.dfsg-2ubuntu1.3 |
| 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 |
| libcurl4 | 7.68.0-1ubuntu2.10 |
| libgbm-dev | 21.2.6-0ubuntu0.1\~20.04.2 |
| libgconf-2-4 | 3.2.6-6ubuntu1 |
| libgsl-dev | 2.5+dfsg-6build1 |
| libgtk-3-0 | 3.24.20-0ubuntu1 |
| libgtk-3-0 | 3.24.20-0ubuntu1.1 |
| 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 |
| libtool | 2.4.6-14 |
| libunwind8 | 1.2.1-9build1 |
| libxkbfile-dev | 1:1.1.0-1 |
| libxss1 | 1:1.2.3-1 |
| locales | 2.31-0ubuntu9.2 |
| locales | 2.31-0ubuntu9.7 |
| 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 |
| openssh-client | 1:8.2p1-4ubuntu0.4 |
| p7zip-full | 16.02+dfsg-7build1 |
| p7zip-rar | 16.02-3build1 |
| parallel | 20161222-1.1 |
@@ -354,27 +365,26 @@
| 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 |
| rsync | 3.1.3-8ubuntu0.3 |
| shellcheck | 0.7.0-2build2 |
| sphinxsearch | 2.2.11-2ubuntu2 |
| sqlite3 | 3.31.1-4ubuntu0.2 |
| ssh | 1:8.2p1-4ubuntu0.3 |
| ssh | 1:8.2p1-4ubuntu0.4 |
| sshpass | 1.06-1 |
| subversion | 1.13.0-3 |
| subversion | 1.13.0-3ubuntu0.1 |
| 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 |
| tzdata | 2022a-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 |
| xz-utils | 5.2.4-1ubuntu1.1 |
| zip | 3.0-11build1 |
| zsync | 0.6.2-3ubuntu1 |
+317
View File
@@ -0,0 +1,317 @@
# Ubuntu 22.04 LTS
- Linux kernel version: 5.15.0-1005-azure
- Image Version: 20220504.1
## Installed Software
### Language and Runtime
- Bash 5.1.16(1)-release
- Clang 11.1.0, 12.0.1
- Clang-format 11.1.0, 12.0.1
- GNU C++ 9.4.0, 10.3.0, 11.2.0
- GNU Fortran 9.4.0, 10.3.0, 11.2.0
- Julia 1.7.2
- Node 16.15.0
- Perl 5.34.0
- Python 3.10.4
- Python3 3.10.4
- Ruby 3.0.2p107
### Package Management
- cpan 1.64
- Helm 3.8.2
- Homebrew 3.4.10
- Miniconda 4.11.0
- Npm 8.5.5
- Pip 22.0.2
- Pip3 22.0.2
- Pipx 1.0.0
- RubyGems 3.3.5
- Vcpkg (build from master \<b98afc9f1>)
- Yarn 1.22.18
#### Environment variables
| Name | Value |
| ----------------------- | ---------------------- |
| CONDA | /usr/share/miniconda |
| VCPKG_INSTALLATION_ROOT | /usr/local/share/vcpkg |
### Project Management
- Lerna 4.0.0
### Tools
- Ansible 2.12.5
- apt-fast 1.9.12
- AzCopy 10.14.1 (available by `azcopy` and `azcopy10` aliases)
- Bazel 5.1.1
- Bazelisk 1.11.0
- Bicep 0.6.1
- CMake 3.23.1
- CodeQL Action Bundle 2.9.0
- Docker Compose v1 1.29.2
- Docker Compose v2 2.4.1+azure-1
- Docker-Buildx 0.8.2
- Docker-Moby Client 20.10.14+azure-1
- Docker-Moby Server 20.10.14+azure-1
- Fastlane 2.205.2
- Git 2.36.0 (apt source repository: ppa:git-core/ppa)
- Git LFS 3.1.4 (apt source repository: https://packagecloud.io/install/repositories/github/git-lfs)
- Git-ftp 1.6.0
- Haveged 1.9.14
- Heroku 7.60.2
- jq 1.6
- Kind 0.12.0
- Kubectl 1.24.0
- Kustomize 4.5.4
- MediaInfo 21.09
- Mercurial 6.1.1
- Minikube 1.25.2
- n 8.2.0
- Newman 5.3.2
- nvm 0.39.1
- OpenSSL 3.0.2-0ubuntu1.1
- Packer 1.8.0
- Parcel 2.5.0
- Pulumi 3.32.0
- R 4.2.0
- Sphinx Open Source Search Server 2.2.11
- SVN 1.14.1
- Terraform 1.1.9
- yamllint 1.26.3
- yq 4.25.1
- zstd 1.5.2 (homebrew)
### CLI Tools
- Alibaba Cloud CLI 3.0.118
- AWS CLI 2.6.2
- AWS CLI Session manager plugin 1.2.312.0
- AWS SAM CLI 1.48.0
- Azure CLI (azure-cli) 2.36.0 (installation method: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt)
- Azure CLI (azure-devops) 0.25.0
- GitHub CLI 2.9.0
- Google Cloud SDK 369.0.0 (apt source repository: https://packages.cloud.google.com/apt)
- Hub CLI 2.14.2
- Netlify CLI 10.2.0
- OpenShift CLI 4.10.12
- ORAS CLI 0.12.0
- Vercel CLI 24.2.0
### GraalVM
| Version | Environment variables |
| --------- | --------------------- |
| CE 22.1.0 | GRAALVM_11_ROOT |
### PHP
| Tool | Version |
| -------- | ------- |
| PHP | 8.1.5 |
| Composer | 2.3.5 |
| PHPUnit | 8.5.26 |
```
Both Xdebug and PCOV extensions are installed, but only Xdebug is enabled.
```
### Haskell
- Cabal 3.6.2.0
- GHC 9.2.2
- GHCup 0.1.17.7
- Stack 2.7.5
### Rust Tools
- Cargo 1.60.0
- Rust 1.60.0
- Rustdoc 1.60.0
- Rustup 1.24.3
#### Packages
- Bindgen 0.59.2
- Cargo audit 0.16.0
- Cargo clippy 0.1.60
- Cbindgen 0.23.0
- Rustfmt 1.4.38
### Browsers and Drivers
- Google Chrome 101.0.4951.54
- ChromeDriver 101.0.4951.41
- Chromium 101.0.4951.0
#### Environment variables
| Name | Value |
| ----------------- | ------------------------------ |
| CHROMEWEBDRIVER | /usr/local/share/chrome_driver |
| GECKOWEBDRIVER | |
| SELENIUM_JAR_PATH | |
### .NET Core SDK
- 6.0.202
### .NET tools
- nbgv 3.5.103+351d94e36c
### Databases
- sqlite3 3.37.2
#### PostgreSQL
- PostgreSQL 14.2 (apt source repository: https://apt.postgresql.org/pub/repos/apt/)
- PostgreSQL Server (user:postgres)
```
PostgreSQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start postgresql.service'
```
#### MySQL
- MySQL 8.0.29-0ubuntu0.22.04.1
- 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'
```
### Cached Tools
#### Go
- 1.17.9
- 1.18.1
#### Node.js
- 14.19.1
- 16.15.0
#### PyPy
- 3.7.13 [PyPy 7.3.9]
- 3.8.13 [PyPy 7.3.9]
- 3.9.12 [PyPy 7.3.9]
#### Python
- 3.7.13
- 3.8.12
- 3.9.12
- 3.10.4
#### Ruby
- 3.1.2
#### Environment variables
| Name | Value | Architecture |
| --------------- | ---------------------------------- | ------------ |
| GOROOT_1_17_X64 | /opt/hostedtoolcache/go/1.17.9/x64 | x64 |
| GOROOT_1_18_X64 | /opt/hostedtoolcache/go/1.18.1/x64 | x64 |
### PowerShell Tools
- PowerShell 7.2.3
#### PowerShell Modules
| Module | Version |
| ---------------- | ------- |
| MarkdownPS | 1.9 |
| Microsoft.Graph | 1.9.5 |
| Pester | 5.3.3 |
| PSScriptAnalyzer | 1.20.0 |
#### Az PowerShell Modules
- 7.3.2
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ------- | ------- | ------------------------- | ------------- | ---------- |
| apache2 | 2.4.52 | /etc/apache2/apache2.conf | inactive | 80 |
| nginx | 1.18.0 | /etc/nginx/nginx.conf | inactive | 80 |
### Cached Docker images
| Repository:Tag | Digest | Created |
| ----------------------- | ------------------------------------------------------------------------ | ---------- |
| alpine:3.14 | sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 | 2022-04-05 |
| alpine:3.15 | sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454 | 2022-04-05 |
| buildpack-deps:bullseye | sha256:f26b9bcb6722fd59888caf4f4c1d4990799e3e83d804a83b7b58b4be949dc75e | 2022-04-20 |
| buildpack-deps:buster | sha256:b971efe3151fcfb10d0b7dfc739d081a9f9d9413195aa9b80224a66f4a651b4a | 2022-04-20 |
| debian:10 | sha256:ebe4b9831fb22dfa778de4ffcb8ea0ad69b5d782d4e86cab14cc1fded5d8e761 | 2022-04-20 |
| debian:11 | sha256:6846593d7d8613e5dcc68c8f7d8b8e3179c7f3397b84a47c5b2ce989ef1075a0 | 2022-04-20 |
| moby/buildkit:latest | sha256:3fbc9b9d9a74ab650eea43610ed880e51cdc05282d61f83c2e0a3b2e9ed3a344 | 2022-04-27 |
| node:14 | sha256:2f39686f6d0b2687550659367fa11f56018a0f782b7e30f1a0ea56b11dece124 | 2022-04-20 |
| node:14-alpine | sha256:8845b4f88f64f8c56a39236648ba22946e806a6153c10911f77b70e5a2edb4ca | 2022-04-05 |
| node:16 | sha256:a6c217d7c8f001dc6fc081d55c2dd7fb3fefe871d5aa7be9c0c16bd62bea8e0c | 2022-04-27 |
| node:16-alpine | sha256:1a9a71ea86aad332aa7740316d4111ee1bd4e890df47d3b5eff3e5bded3b3d10 | 2022-04-27 |
| ubuntu:18.04 | sha256:d21b6ba9e19feffa328cb3864316e6918e30acfd55e285b5d3df1d8ca3c7fd3f | 2022-04-29 |
| ubuntu:20.04 | sha256:47f14534bda344d9fe6ffd6effb95eefe579f4be0d508b7445cf77f61a0e5724 | 2022-04-29 |
| ubuntu:22.04 | sha256:26c68657ccce2cb0a31b330cb0be2b5e108d467f641c62e13ab40cbec258c68d | 2022-04-29 |
### Installed apt packages
| Name | Version |
| ---------------------- | --------------------------------- |
| acl | 2.3.1-1 |
| aria2 | 1.36.0-1 |
| autoconf | 2.71-2 |
| automake | 1:1.16.5-1.3 |
| binutils | 2.38-3ubuntu1 |
| bison | 2:3.8.2+dfsg-1build1 |
| brotli | 1.0.9-2build6 |
| build-essential | 12.9ubuntu3 |
| bzip2 | 1.0.8-5build1 |
| coreutils | 8.32-4.1ubuntu1 |
| curl | 7.81.0-1ubuntu1.1 |
| dbus | 1.12.20-2ubuntu4 |
| dnsutils | 1:9.18.1-1ubuntu1 |
| dpkg | 1.21.1ubuntu2 |
| fakeroot | 1.28-1ubuntu1 |
| file | 1:5.41-3 |
| flex | 2.6.4-8build2 |
| fonts-noto-color-emoji | 2.034-1 |
| ftp | 20210827-4build1 |
| gnupg2 | 2.2.27-3ubuntu2 |
| haveged | 1.9.14-1ubuntu1 |
| imagemagick | 8:6.9.11.60+dfsg-1.3build2 |
| iproute2 | 5.15.0-1ubuntu2 |
| iputils-ping | 3:20211215-1 |
| jq | 1.6-2.1ubuntu3 |
| lib32z1 | 1:1.2.11.dfsg-2ubuntu9 |
| libc++-dev | 1:14.0-55\~exp2 |
| libc++abi-dev | 1:14.0-55\~exp2 |
| libcurl4 | 7.81.0-1ubuntu1.1 |
| libgbm-dev | 22.0.1-1ubuntu2 |
| libgconf-2-4 | 3.2.6-7ubuntu2 |
| libgsl-dev | 2.7.1+dfsg-3 |
| libgtk-3-0 | 3.24.33-1ubuntu1 |
| libmagic-dev | 1:5.41-3 |
| libmagickcore-dev | 8:6.9.11.60+dfsg-1.3build2 |
| libmagickwand-dev | 8:6.9.11.60+dfsg-1.3build2 |
| libsecret-1-dev | 0.20.5-2 |
| libsqlite3-dev | 3.37.2-2 |
| libssl-dev | 3.0.2-0ubuntu1.1 |
| libtool | 2.4.6-15build2 |
| libunwind8 | 1.3.2-2build2 |
| libxkbfile-dev | 1:1.1.0-1build3 |
| libxss1 | 1:1.2.3-1build2 |
| locales | 2.35-0ubuntu3 |
| m4 | 1.4.18-5ubuntu2 |
| mediainfo | 22.03-1 |
| mercurial | 6.1.1-1ubuntu1 |
| net-tools | 1.60+git20181103.0eebece-1ubuntu5 |
| netcat | 1.218-4ubuntu1 |
| openssh-client | 1:8.9p1-3 |
| p7zip-full | 16.02+dfsg-8 |
| p7zip-rar | 16.02-3build1 |
| parallel | 20210822+ds-2 |
| pass | 1.7.4-5 |
| patchelf | 0.14.3-1 |
| pkg-config | 0.29.2-1ubuntu3 |
| pollinate | 4.33-3ubuntu2 |
| python-is-python3 | 3.9.2-2 |
| rpm | 4.17.0+dfsg1-4build1 |
| rsync | 3.2.3-8ubuntu3 |
| shellcheck | 0.8.0-2 |
| sphinxsearch | 2.2.11-8 |
| sqlite3 | 3.37.2-2 |
| ssh | 1:8.9p1-3 |
| sshpass | 1.09-1 |
| subversion | 1.14.1-3build4 |
| sudo | 1.9.9-1ubuntu2 |
| swig | 4.0.2-1ubuntu1 |
| telnet | 0.17-44build1 |
| texinfo | 6.8-4build1 |
| time | 1.9-0.1build2 |
| tk | 8.6.11+1build2 |
| tzdata | 2022a-0ubuntu1 |
| unzip | 6.0-26ubuntu3 |
| upx | 3.96-3 |
| wget | 1.21.2-2ubuntu1 |
| xorriso | 1.5.4-2 |
| xvfb | 2:21.1.3-2ubuntu2 |
| xz-utils | 5.2.5-2ubuntu1 |
| zip | 3.0-12build2 |
| zsync | 0.6.2-3ubuntu1 |
+2
View File
@@ -0,0 +1,2 @@
# Name of pool supported by this image
POOL_NAME="Ubuntu 2204"
@@ -83,7 +83,7 @@ function Get-NodeVersion {
}
function Get-OpensslVersion {
return $(openssl version)
return "OpenSSL $(dpkg-query -W -f '${Version}' openssl)"
}
function Get-PerlVersion {
@@ -236,8 +236,8 @@ function Get-PHPVersions {
}
function Get-ComposerVersion {
$(composer --version) -match "Composer version (?<version>\d+\.\d+\.\d+)\s" | Out-Null
return $Matches.version
$composerVersion = (composer --version) -replace " version" | Take-OutputPart -Part 1
return $composerVersion
}
function Get-PHPUnitVersion {
@@ -331,6 +331,20 @@ function Get-DotNetCoreSdkVersions {
return $dotNetCoreSdkVersion
}
function Get-DotnetTools {
$env:PATH = "/etc/skel/.dotnet/tools:$($env:PATH)"
$dotnetTools = (Get-ToolsetContent).dotnet.tools
$toolsList = @()
ForEach ($dotnetTool in $dotnetTools) {
$toolsList += $dotnetTool.name + " " + (Invoke-Expression $dotnetTool.getversion)
}
return $toolsList
}
function Get-CachedDockerImages {
$toolsetJson = Get-ToolsetContent
$images = $toolsetJson.docker.images
@@ -17,7 +17,7 @@ function Get-SqliteVersion {
function Get-MySQLVersion {
$mySQLVersion = mysqld --version | Take-OutputPart -Part 2
if (-not (Test-IsUbuntu20)) {
if (Test-IsUbuntu18) {
$mySQLVersion = $mySQLVersion | Take-OutputPart -Part 0 -Delimiter "-"
}
return "MySQL $mySQLVersion"
@@ -33,6 +33,21 @@ function Get-SqlPackageVersion {
return "SqlPackage $sqlPackageVersion"
}
function Build-PostgreSqlSection {
$output = ""
$output += New-MDHeader "PostgreSQL" -Level 4
$output += New-MDList -Style Unordered -Lines @(
(Get-PostgreSqlVersion ),
"PostgreSQL Server (user:postgres)"
)
$output += New-MDCode -Lines @(
"PostgreSQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start postgresql.service'"
)
return $output
}
function Build-MySQLSection {
$output = ""
@@ -41,22 +41,27 @@ $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)
)
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$runtimesList += @(
(Get-MsbuildVersion),
(Get-KotlinVersion),
(Get-MonoVersion),
(Get-ErlangVersion),
(Get-ErlangRebar3Version),
(Get-SwiftVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object)
$markdown += New-MDHeader "Package Management" -Level 3
@@ -81,14 +86,17 @@ $markdown += Build-PackageManagementEnvironmentTable | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "Project Management" -Level 3
$projectManagementList = @(
(Get-AntVersion),
(Get-GradleVersion),
(Get-MavenVersion),
(Get-SbtVersion)
)
$projectManagementList = @()
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$projectManagementList += @(
(Get-AntVersion),
(Get-GradleVersion),
(Get-MavenVersion),
(Get-SbtVersion)
)
}
if (Test-IsUbuntu20) {
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$projectManagementList += @(
(Get-LernaVersion)
)
@@ -103,7 +111,6 @@ $toolsList = @(
(Get-BazelVersion),
(Get-BazeliskVersion),
(Get-BicepVersion),
(Get-BuildahVersion),
(Get-CodeQLBundleVersion),
(Get-CMakeVersion),
(Get-DockerMobyClientVersion),
@@ -116,14 +123,12 @@ $toolsList = @(
(Get-GitFTPVersion),
(Get-HavegedVersion),
(Get-HerokuVersion),
(Get-HHVMVersion),
(Get-SVNVersion),
(Get-JqVersion),
(Get-YqVersion),
(Get-KindVersion),
(Get-KubectlVersion),
(Get-KustomizeVersion),
(Get-LeiningenVersion),
(Get-MediainfoVersion),
(Get-HGVersion),
(Get-MinikubeVersion),
@@ -133,18 +138,26 @@ $toolsList = @(
(Get-OpensslVersion),
(Get-PackerVersion),
(Get-ParcelVersion),
(Get-PhantomJSVersion),
(Get-PodManVersion),
(Get-PulumiVersion),
(Get-RVersion),
(Get-SkopeoVersion),
(Get-SphinxVersion),
(Get-TerraformVersion),
(Get-YamllintVersion),
(Get-ZstdVersion)
)
if (Test-IsUbuntu20) {
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$toolsList += @(
(Get-BuildahVersion),
(Get-PhantomJSVersion),
(Get-LeiningenVersion),
(Get-HHVMVersion),
(Get-PodManVersion),
(Get-SkopeoVersion)
)
}
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$toolsList += (Get-FastlaneVersion)
}
@@ -168,11 +181,13 @@ $markdown += New-MDList -Style Unordered -Lines (@(
) | Sort-Object
)
$markdown += New-MDHeader "Java" -Level 3
$markdown += Get-JavaVersions | New-MDTable
$markdown += New-MDNewLine
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$markdown += New-MDHeader "Java" -Level 3
$markdown += Get-JavaVersions | New-MDTable
$markdown += New-MDNewLine
}
if (Test-IsUbuntu20) {
if ((Test-IsUbuntu20) -or (Test-IsUbuntu22)) {
$markdown += New-MDHeader "GraalVM" -Level 3
$markdown += Build-GraalVMTable | New-MDTable
$markdown += New-MDNewLine
@@ -214,12 +229,17 @@ $markdown += New-MDHeader "Browsers and Drivers" -Level 3
$browsersAndDriversList = @(
(Get-ChromeVersion),
(Get-ChromeDriverVersion),
(Get-FirefoxVersion),
(Get-GeckodriverVersion),
(Get-ChromiumVersion),
(Get-SeleniumVersion)
(Get-ChromiumVersion)
)
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$browsersAndDriversList += @(
(Get-FirefoxVersion),
(Get-GeckodriverVersion),
(Get-SeleniumVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines $browsersAndDriversList
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-BrowserWebdriversEnvironmentTable | New-MDTable
@@ -230,16 +250,28 @@ $markdown += New-MDList -Style Unordered -Lines @(
(Get-DotNetCoreSdkVersions)
)
$markdown += New-MDHeader ".NET tools" -Level 3
$tools = Get-DotnetTools
$markdown += New-MDList -Lines $tools -Style Unordered
$markdown += New-MDHeader "Databases" -Level 3
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-PostgreSqlVersion),
(Get-MongoDbVersion),
$databaseLists = @(
(Get-SqliteVersion)
) | Sort-Object
)
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$databaseLists += @(
(Get-MongoDbVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ( $databaseLists | Sort-Object )
$markdown += Build-PostgreSqlSection
$markdown += Build-MySQLSection
$markdown += Build-MSSQLToolsSection
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$markdown += Build-MSSQLToolsSection
}
$markdown += New-MDHeader "Cached Tools" -Level 3
$markdown += Build-CachedToolsSection
@@ -261,12 +293,14 @@ $markdown += New-MDList -Style Unordered -Lines @(
$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
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$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
@@ -1,19 +1,22 @@
function Get-JavaVersions {
$toolcachePath = Join-Path $env:AGENT_TOOLSDIRECTORY "Java_Adopt_jdk"
$javaToolcacheVersions = Get-ChildItem $toolcachePath -Name | Sort-Object { [int]$_.Split(".")[0] }
$javaToolcacheVersions = Get-ChildItem $env:AGENT_TOOLSDIRECTORY/Java*/* -Directory | Sort-Object { [int]$_.Name.Split(".")[0] }
return $javaToolcacheVersions | ForEach-Object {
$majorVersion = $_.split(".")[0]
$fullVersion = $_.Replace("-", "+")
$existingVersions = $javaToolcacheVersions | ForEach-Object {
$majorVersion = $_.Name.split(".")[0]
$fullVersion = $_.Name.Replace("-", "+")
$defaultJavaPath = $env:JAVA_HOME
$javaPath = Get-Item env:JAVA_HOME_${majorVersion}_X64
$defaultPostfix = ($javaPath.Value -eq $defaultJavaPath) ? " (default)" : ""
$vendorName = ($_.FullName -like '*Java_Adopt_jdk*') ? "Adopt OpenJDK" : "Eclipse Temurin"
[PSCustomObject] @{
"Version" = $fullVersion + $defaultPostfix
"Vendor" = "Adopt OpenJDK"
"Vendor" = $vendorName
"Environment Variable" = $javaPath.Name
}
}
}
# Return all the vendors which are not Adopt, also look for version 12 of Adopt (Eclipse Temurin does not have this version)
$versionsToReturn = $existingVersions | Where-Object {$_.Vendor -notlike "Adopt*" -or $_.Version.Split(".")[0] -eq 12}
return $versionsToReturn
}
@@ -89,8 +89,7 @@ function Get-DockerBuildxVersion {
}
function Get-GitVersion {
$result = Get-CommandResult "git --version"
$gitVersion = $result.Output | Take-OutputPart -Part 2
$gitVersion = git --version | Take-OutputPart -Part -1
$aptSourceRepo = Get-AptSourceRepository -PackageName "git-core"
return "Git $gitVersion (apt source repository: $aptSourceRepo)"
}
@@ -143,7 +142,7 @@ function Get-KindVersion {
}
function Get-KubectlVersion {
$kubectlVersion = kubectl version --client --short | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "v"
$kubectlVersion = (kubectl version --client --output=json | ConvertFrom-Json).clientVersion.gitVersion.Replace('v','')
return "Kubectl $kubectlVersion"
}
@@ -0,0 +1,4 @@
#!/bin/bash -e
# https://github.com/hashicorp/packer/issues/11656
echo PubkeyAcceptedKeyTypes=+ssh-rsa >> /etc/ssh/sshd_config
systemctl reload sshd.service
@@ -46,6 +46,10 @@ function Test-IsUbuntu20 {
return (lsb_release -rs) -eq "20.04"
}
function Test-IsUbuntu22 {
return (lsb_release -rs) -eq "22.04"
}
function Get-ToolsetContent {
$toolset = Join-Path $env:INSTALLER_SCRIPT_FOLDER "toolset.json"
Get-Content $toolset -Raw | ConvertFrom-Json
@@ -69,7 +73,7 @@ function Get-ToolsetValue {
function Get-AndroidPackages {
$androidSDKManagerPath = "/usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager"
$androidPackages = & $androidSDKManagerPath --list --verbose
$androidPackages = & $androidSDKManagerPath --list --verbose 2>&1
return $androidPackages
}
+19
View File
@@ -66,3 +66,22 @@ get_toolset_value() {
local query=$1
echo "$(jq -r "$query" $toolset_path)"
}
get_github_package_download_url() {
local REPO_ORG=$1
local FILTER=$2
local VERSION=$3
local SEARCH_IN_COUNT="100"
json=$(curl -s "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
if [ -n "$VERSION" ]; then
tagName=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | egrep -v ".*-[a-z]|beta" | egrep "\w*${VERSION}" | tail -1)
else
tagName=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | egrep -v ".*-[a-z]|beta" | tail -1)
fi
downloadUrl=$(echo $json | jq -r ".[] | select(.tag_name==\"${tagName}\").assets[].browser_download_url | select(${FILTER})" | head -n 1)
echo $downloadUrl
}
@@ -1,193 +0,0 @@
#!/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
@@ -14,6 +14,11 @@ function isUbuntu20
lsb_release -d | grep -q 'Ubuntu 20'
}
function isUbuntu22
{
lsb_release -d | grep -q 'Ubuntu 22'
}
function getOSVersionLabel
{
lsb_release -cs
@@ -8,8 +8,8 @@
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") and endswith("amd64.tgz"))')
download_with_retries $URL "/tmp"
downloadUrl="https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz"
download_with_retries $downloadUrl "/tmp"
tar xzf /tmp/aliyun-cli-linux-*-amd64.tgz
mv aliyun /usr/local/bin
+1 -1
View File
@@ -102,7 +102,7 @@ filter_components_by_version $minimumBuildToolVersion "${availableBuildTools[@]}
echo "y" | $SDKMANAGER ${components[@]}
# Old skdmanager from sdk tools doesn't work with Java > 8, set version 8 explicitly
if isUbuntu20; then
if isUbuntu20 || isUbuntu22; then
sed -i "2i export JAVA_HOME=${JAVA_HOME_8_X64}" ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager
fi
+5 -7
View File
@@ -8,18 +8,16 @@
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
# Install the AWS CLI v1 Ubuntu18 and AWS CLI v2 on Ubuntu20
if isUbuntu20 ; then
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
# Install the AWS CLI v1 Ubuntu18 and AWS CLI v2 on Ubuntu20, Ubuntu22
# 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
else
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
download_with_retries "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" "/tmp" "session-manager-plugin.deb"
+5 -4
View File
@@ -4,15 +4,16 @@
## Desc: Installs CMake
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# 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 command -v cmake; then
echo "cmake is already installed"
else
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 \
downloadUrl=$(get_github_package_download_url "Kitware/CMake" "endswith(\"inux-x86_64.sh\")")
curl -sL ${downloadUrl} -o cmakeinstall.sh \
&& chmod +x cmakeinstall.sh \
&& ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \
&& rm cmakeinstall.sh
@@ -1,5 +1,8 @@
#!/bin/bash -e
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
# Set ImageVersion and ImageOS env variables
echo ImageVersion=$IMAGE_VERSION | tee -a /etc/environment
echo ImageOS=$IMAGE_OS | tee -a /etc/environment
@@ -31,4 +34,18 @@ 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
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
# Disable motd updates metadata
sed -i 's/ENABLED=1/ENABLED=0/g' /etc/default/motd-news
if [[ -f "/etc/fwupd/daemon.conf" ]]; then
sed -i 's/UpdateMotd=true/UpdateMotd=false/g' /etc/fwupd/daemon.conf
systemctl mask fwupd-refresh.timer
fi
# Disable to load providers
# https://github.com/microsoft/azure-pipelines-agent/issues/3834
if isUbuntu22; then
sed -i 's/openssl_conf = openssl_init/#openssl_conf = openssl_init/g' /etc/ssl/openssl.cnf
fi
@@ -11,6 +11,7 @@ source $HELPER_SCRIPTS/os.sh
# Ubuntu 20 doesn't support EOL versions
LATEST_DOTNET_PACKAGES=$(get_toolset_value '.dotnet.aptPackages[]')
DOTNET_VERSIONS=$(get_toolset_value '.dotnet.versions[]')
DOTNET_TOOLS=$(get_toolset_value '.dotnet.tools[].name')
# Disable telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
@@ -31,12 +32,16 @@ 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")
sdks=("${sdks[@]}" $(echo "${releases}" | jq '.releases[]' | jq '.sdk.version'))
sdks=("${sdks[@]}" $(echo "${releases}" | jq '.releases[]' | jq '.sdks[]?' | jq '.version'))
if [[ $version == "6.0" ]]; then
sdks=("${sdks[@]}" $(echo "${releases}" | jq -r 'first(.releases[].sdks[]?.version | select(contains("preview") or contains("rc") | not))'))
else
sdks=("${sdks[@]}" $(echo "${releases}" | jq -r '.releases[].sdk.version | select(contains("preview") or contains("rc") | not)'))
sdks=("${sdks[@]}" $(echo "${releases}" | jq -r '.releases[].sdks[]?.version | select(contains("preview") or contains("rc") | not)'))
fi
rm ./${version}.json
done
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -r | uniq -w 5)
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | sort -r | uniq -w 5)
extract_dotnet_sdk() {
local ARCHIVE_NAME="$1"
@@ -67,4 +72,10 @@ setEtcEnvironmentVariable DOTNET_NOLOGO 1
setEtcEnvironmentVariable DOTNET_MULTILEVEL_LOOKUP 0
prependEtcEnvironmentPath '$HOME/.dotnet/tools'
# install dotnet tools
for dotnet_tool in ${DOTNET_TOOLS[@]}; do
echo "Installing dotnet tool $dotnet_tool"
dotnet tool install $dotnet_tool --tool-path '/etc/skel/.dotnet/tools'
done
invoke_tests "DotnetSDK"
+1 -3
View File
@@ -16,9 +16,7 @@ apt-get update
apt-get install -y --no-install-recommends esl-erlang
# Install rebar3
json=$(curl -sL "https://api.github.com/repos/erlang/rebar3/releases")
rebar3Version=$(echo $json | jq -r '.[] | select(.tag_name | contains("-") | not).tag_name' | sort -V | tail -n1)
rebar3DownloadUrl=$(echo $json | jq -r ".[] | select(.tag_name==\"$rebar3Version\").assets[].browser_download_url")
rebar3DownloadUrl=$(get_github_package_download_url "erlang/rebar3" "endswith(\"rebar3\")")
download_with_retries $rebar3DownloadUrl "/tmp"
mv /tmp/rebar3 /usr/local/bin/rebar3
chmod +x /usr/local/bin/rebar3
+3 -3
View File
@@ -15,9 +15,9 @@ apt-get install -y firefox
echo 'pref("intl.locale.requested","en_US");' >> "/usr/lib/firefox/browser/defaults/preferences/syspref.js"
# Download and unpack latest release of geckodriver
URL=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.assets[].browser_download_url | select(test("linux64.tar.gz$"))')
echo "Downloading geckodriver $URL"
download_with_retries "$URL" "/tmp" geckodriver.tar.gz
downloadUrl=$(get_github_package_download_url "mozilla/geckodriver" "test(\"linux64.tar.gz$\")")
echo "Downloading geckodriver $downloadUrl"
download_with_retries "$downloadUrl" "/tmp" geckodriver.tar.gz
GECKODRIVER_DIR="/usr/local/share/gecko_driver"
GECKODRIVER_BIN="$GECKODRIVER_DIR/geckodriver"
+7 -2
View File
@@ -15,6 +15,11 @@ add-apt-repository $GIT_REPO -y
apt-get update
apt-get install git -y
git --version
# Git version 2.35.2 introduces security fix that breaks action\checkout https://github.com/actions/checkout/issues/760
cat <<EOF >> /etc/gitconfig
[safe]
directory = *
EOF
# Install git-lfs
curl -s $GIT_LFS_REPO/script.deb.sh | bash
@@ -34,8 +39,8 @@ echo "git-lfs $GIT_LFS_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
#Install hub
tmp_hub="/tmp/hub"
mkdir -p "$tmp_hub"
url=$(curl -s https://api.github.com/repos/github/hub/releases/latest | jq -r '.assets[].browser_download_url | select(contains("hub-linux-amd64"))')
download_with_retries "$url" "$tmp_hub"
downloadUrl=$(get_github_package_download_url "github/hub" "contains(\"hub-linux-amd64\")")
download_with_retries "$downloadUrl" "$tmp_hub"
tar xzf "$tmp_hub"/hub-linux-amd64-*.tgz --strip-components 1 -C "$tmp_hub"
mv "$tmp_hub"/bin/hub /usr/local/bin
@@ -9,8 +9,8 @@
source $HELPER_SCRIPTS/install.sh
# Install GitHub CLI
url=$(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r '.assets[].browser_download_url|select(contains("linux") and contains("amd64") and contains(".deb"))')
download_with_retries $url "/tmp"
downloadUrl=$(get_github_package_download_url "cli/cli" "contains(\"linux\") and contains(\"amd64\") and contains(\".deb\")")
download_with_retries $downloadUrl "/tmp"
apt install /tmp/gh_*_linux_amd64.deb
invoke_tests "CLI.Tools" "GitHub CLI"
@@ -14,12 +14,22 @@ function GetChromiumRevision {
URL="https://omahaproxy.appspot.com/deps.json?version=${CHROME_VERSION}"
REVISION=$(curl -s $URL | jq -r '.chromium_base_position')
# Some Google Chrome versions are based on Chromium revisions for which a (usually very old) Chromium release with the same number exist. So far this has heppened with 4 digits long Chromium revisions (1060, 1086).
# Use the previous Chromium release when this happens to avoid downloading and installing very old Chromium releases that would break image build because of incompatibilities.
# First reported with: https://github.com/actions/virtual-environments/issues/5256
if [ ${#REVISION} -eq 4 ]; then
CURRENT_REVISIONS=$(curl -s "https://omahaproxy.appspot.com/all.json?os=linux&channel=stable")
PREVIOUS_VERSION=$(echo "$CURRENT_REVISIONS" | jq -r '.[].versions[].previous_version')
URL="https://omahaproxy.appspot.com/deps.json?version=${PREVIOUS_VERSION}"
REVISION=$(curl -s $URL | jq -r '.chromium_base_position')
fi
# Take the first part of the revision variable to search not only for a specific version,
# but also for similar ones, so that we can get a previous one if the required revision is not found
FIRST_PART_OF_REVISION=${REVISION:0:${#REVISION}/2}
FIRST_PART_OF_PREVIOUS_REVISION=$(expr $FIRST_PART_OF_REVISION - 1)
URL="https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o?delimiter=/&prefix=Linux_x64"
VERSIONS=$((curl -s $URL/${FIRST_PART_OF_REVISION} | jq -r '.prefixes[]' && curl -s $URL/${FIRST_PART_OF_PREVIOUS_REVISION} | jq -r '.prefixes[]') | cut -d "/" -f 2 | sort --version-sort)
# Revision can include a hash instead of a number. Need to filter it out https://github.com/actions/virtual-environments/issues/5256
VERSIONS=$((curl -s $URL/${FIRST_PART_OF_REVISION} | jq -r '.prefixes[]' && curl -s $URL/${FIRST_PART_OF_PREVIOUS_REVISION} | jq -r '.prefixes[]') | grep -E "Linux_x64\/[0-9]+\/"| cut -d "/" -f 2 | sort --version-sort)
# If required Chromium revision is not found in the list
# we should have to decrement the revision number until we find one.
@@ -27,7 +37,7 @@ function GetChromiumRevision {
# https://www.chromium.org/getting-involved/download-chromium
RIGHT_REVISION=$(echo $VERSIONS | cut -f 1 -d " ")
for version in $VERSIONS; do
if [ $REVISION -lt $version ]; then
if [ $REVISION -lt $version ]; then
echo $RIGHT_REVISION
return
fi
@@ -10,7 +10,8 @@ REPO_URL="https://packages.cloud.google.com/apt"
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] $REPO_URL cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update -y
sudo apt-get install -y google-cloud-sdk
# temporary downgrade google-cloud-sdk as python component has linking bugs
sudo apt-get install -y google-cloud-sdk=369.0.0-0
# remove apt
rm /etc/apt/sources.list.d/google-cloud-sdk.list
@@ -19,4 +20,4 @@ rm /usr/share/keyrings/cloud.google.gpg /usr/share/keyrings/cloud.google.gpg~
# add repo to the apt-sources.txt
echo "google-cloud-sdk $REPO_URL" >> $HELPER_SCRIPTS/apt-sources.txt
invoke_tests "CLI.Tools" "Google Cloud SDK"
invoke_tests "CLI.Tools" "Google Cloud SDK"
+2 -5
View File
@@ -7,11 +7,8 @@ source $HELPER_SCRIPTS/etc-environment.sh
GRAALVM_ROOT=/usr/local/graalvm
export GRAALVM_11_ROOT=$GRAALVM_ROOT/graalvm-ce-java11*
json=$(curl -s "https://api.github.com/repos/graalvm/graalvm-ce-builds/releases")
latest_tag=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | tail -1)
url=$(echo $json | jq -r ".[] | select(.tag_name==\"${latest_tag}\").assets[].browser_download_url | select(contains(\"graalvm-ce-java11-linux-amd64\") and endswith(\"tar.gz\"))")
download_with_retries "$url" "/tmp" "graalvm-archive.tar.gz"
downloadUrl=$(get_github_package_download_url "graalvm/graalvm-ce-builds" "contains(\"graalvm-ce-java11-linux-amd64\") and endswith(\"tar.gz\")")
download_with_retries "$downloadUrl" "/tmp" "graalvm-archive.tar.gz"
mkdir $GRAALVM_ROOT
tar -xzf "/tmp/graalvm-archive.tar.gz" -C $GRAALVM_ROOT
+109 -35
View File
@@ -8,50 +8,124 @@ source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/etc-environment.sh
JAVA_VERSIONS_LIST=$(get_toolset_value '.java.versions | .[]')
DEFAULT_JDK_VERSION=$(get_toolset_value '.java.default')
JAVA_TOOLCACHE_PATH="$AGENT_TOOLSDIRECTORY/Java_Adopt_jdk"
createJavaEnvironmentalVariable() {
local JAVA_VERSION=$1
local VENDOR_NAME=$2
local DEFAULT=$3
# Install GPG Key for Adopt Open JDK. See https://adoptopenjdk.net/installation.html
wget -qO - "https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public" | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
case ${VENDOR_NAME} in
if isUbuntu18 ; then
# Install GPG Key for Azul Open JDK. See https://www.azul.com/downloads/azure-only/zulu/
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
apt-add-repository "deb https://repos.azul.com/azure-only/zulu/apt stable main"
fi
"Adopt" )
INSTALL_PATH_PATTERN="/usr/lib/jvm/adoptopenjdk-${JAVA_VERSION}-hotspot-amd64" ;;
apt-get update
"Temurin-Hotspot" )
INSTALL_PATH_PATTERN="/usr/lib/jvm/temurin-${JAVA_VERSION}-jdk-amd64" ;;
*)
echo "Unknown vendor"
exit 1
for JAVA_VERSION in ${JAVA_VERSIONS_LIST[@]}; do
apt-get -y install adoptopenjdk-$JAVA_VERSION-hotspot=\*
javaVersionPath="/usr/lib/jvm/adoptopenjdk-${JAVA_VERSION}-hotspot-amd64"
echo "JAVA_HOME_${JAVA_VERSION}_X64=$javaVersionPath" | tee -a /etc/environment
fullJavaVersion=$(cat "$javaVersionPath/release" | grep "^SEMANTIC" | cut -d "=" -f 2 | tr -d "\"" | tr "+" "-")
esac
# If there is no semver in java release, then extract java version from -fullversion
if [[ -z $fullJavaVersion ]]; then
fullJavaVersion=$(java -fullversion 2>&1 | tr -d "\"" | tr "+" "-" | awk '{print $4}')
if [[ ${DEFAULT} == "True" ]]; then
echo "Setting up JAVA_HOME variable to ${INSTALL_PATH_PATTERN}"
addEtcEnvironmentVariable JAVA_HOME ${INSTALL_PATH_PATTERN}
echo "Setting up default symlink"
update-java-alternatives -s ${INSTALL_PATH_PATTERN}
fi
javaToolcacheVersionPath="$JAVA_TOOLCACHE_PATH/$fullJavaVersion"
mkdir -p "$javaToolcacheVersionPath"
echo "Setting up JAVA_HOME_${JAVA_VERSION}_X64 variable to ${INSTALL_PATH_PATTERN}"
addEtcEnvironmentVariable JAVA_HOME_${JAVA_VERSION}_X64 ${INSTALL_PATH_PATTERN}
}
enableRepositories() {
# Add Adopt PPA
wget -qO - "https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public" | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
# Add Addoptium PPA
wget -qO - "https://packages.adoptium.net/artifactory/api/gpg/key/public" | apt-key add -
add-apt-repository --yes https://packages.adoptium.net/artifactory/deb/
if isUbuntu18 ; then
# Install GPG Key for Azul Open JDK. See https://www.azul.com/downloads/azure-only/zulu/
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
apt-add-repository "deb https://repos.azul.com/azure-only/zulu/apt stable main"
fi
}
installOpenJDK() {
local JAVA_VERSION=$1
local VENDOR_NAME=$2
# Install Java from PPA repositories.
if [[ ${VENDOR_NAME} == "Temurin-Hotspot" ]]; then
apt-get -y install temurin-${JAVA_VERSION}-jdk=\*
javaVersionPath="/usr/lib/jvm/temurin-${JAVA_VERSION}-jdk-amd64"
elif [[ ${VENDOR_NAME} == "Adopt" ]]; then
apt-get -y install adoptopenjdk-${JAVA_VERSION}-hotspot=\*
javaVersionPath="/usr/lib/jvm/adoptopenjdk-${JAVA_VERSION}-hotspot-amd64"
else
echo "${VENDOR_NAME} is invalid, valid names are: Temurin-Hotspot and Adopt"
exit 1
fi
JAVA_TOOLCACHE_PATH="${AGENT_TOOLSDIRECTORY}/Java_${VENDOR_NAME}_jdk"
fullJavaVersion=$(cat "${javaVersionPath}/release" | grep "^SEMANTIC" | cut -d "=" -f 2 | tr -d "\"" | tr "+" "-")
# If there is no semver in java release, then extract java version from -fullversion
[[ -z ${fullJavaVersion} ]] && fullJavaVersion=$(${javaVersionPath}/bin/java -fullversion 2>&1 | tr -d "\"" | tr "+" "-" | awk '{print $4}')
# Convert non valid semver like 11.0.14.1-9 -> 11.0.14-9
# https://github.com/adoptium/temurin-build/issues/2248
[[ ${fullJavaVersion} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ ]] && fullJavaVersion=$(echo $fullJavaVersion | sed -E 's/\.[0-9]+-/-/')
javaToolcacheVersionPath="${JAVA_TOOLCACHE_PATH}/${fullJavaVersion}"
mkdir -p "${javaToolcacheVersionPath}"
# Create a complete file
touch "$javaToolcacheVersionPath/x64.complete"
touch "${javaToolcacheVersionPath}/x64.complete"
# Create symlink for Java
ln -s $javaVersionPath "$javaToolcacheVersionPath/x64"
ln -s ${javaVersionPath} "${javaToolcacheVersionPath}/x64"
# add extra permissions to be able execute command without sudo
chmod -R 777 /usr/lib/jvm
}
# Fetch repositories data
enableRepositories
# Get all the updates from enabled repositories.
apt-get update
defaultVersion=$(get_toolset_value '.java.default')
defaultVendor=$(get_toolset_value '.java.default_vendor')
jdkVendors=($(get_toolset_value '.java.vendors[].name'))
for jdkVendor in ${jdkVendors[@]}; do
# get vendor-specific versions
jdkVersionsToInstall=($(get_toolset_value ".java.vendors[] | select (.name==\"${jdkVendor}\") | .versions[]"))
for jdkVersionToInstall in ${jdkVersionsToInstall[@]}; do
installOpenJDK ${jdkVersionToInstall} ${jdkVendor}
isDefaultVersion=False; [[ ${jdkVersionToInstall} == ${defaultVersion} ]] && isDefaultVersion=True
if [[ ${jdkVendor} == ${defaultVendor} ]]; then
createJavaEnvironmentalVariable ${jdkVersionToInstall} ${jdkVendor} ${isDefaultVersion}
fi
done
done
# Set Default Java version
update-java-alternatives -s /usr/lib/jvm/adoptopenjdk-${DEFAULT_JDK_VERSION}-hotspot-amd64
# Adopt 12 is only available for Ubuntu 18.04
if isUbuntu18; then
createJavaEnvironmentalVariable "12" "Adopt"
fi
echo "JAVA_HOME=/usr/lib/jvm/adoptopenjdk-${DEFAULT_JDK_VERSION}-hotspot-amd64" | tee -a /etc/environment
# add extra permissions to be able execute command without sudo
chmod -R 777 /usr/lib/jvm
# Install Ant
apt-get install -y --no-install-recommends ant ant-optional
echo "ANT_HOME=/usr/share/ant" | tee -a /etc/environment
@@ -67,11 +141,11 @@ ln -s /usr/share/apache-maven-${mavenVersion}/bin/mvn /usr/bin/mvn
# This script founds the latest gradle release from https://services.gradle.org/versions/all
# The release is downloaded, extracted, a symlink is created that points to it, and GRADLE_HOME is set.
gradleJson=$(curl -s https://services.gradle.org/versions/all)
gradleLatestVersion=$(echo $gradleJson | jq -r '.[] | select(.version | contains("-") | not).version' | sort -V | tail -n1)
gradleDownloadUrl=$(echo $gradleJson | jq -r ".[] | select(.version==\"$gradleLatestVersion\") | .downloadUrl")
echo "gradleUrl=$gradleDownloadUrl"
echo "gradleVersion=$gradleLatestVersion"
download_with_retries $gradleDownloadUrl "/tmp" "gradleLatest.zip"
gradleLatestVersion=$(echo ${gradleJson} | jq -r '.[] | select(.version | contains("-") | not).version' | sort -V | tail -n1)
gradleDownloadUrl=$(echo ${gradleJson} | jq -r ".[] | select(.version==\"$gradleLatestVersion\") | .downloadUrl")
echo "gradleUrl=${gradleDownloadUrl}"
echo "gradleVersion=${gradleLatestVersion}"
download_with_retries ${gradleDownloadUrl} "/tmp" "gradleLatest.zip"
unzip -qq -d /usr/share /tmp/gradleLatest.zip
ln -s /usr/share/gradle-"${gradleLatestVersion}"/bin/gradle /usr/bin/gradle
echo "GRADLE_HOME=$(find /usr/share -depth -maxdepth 1 -name "gradle*")" | tee -a /etc/environment
+2 -5
View File
@@ -7,11 +7,8 @@
source $HELPER_SCRIPTS/install.sh
KOTLIN_ROOT="/usr/share"
kotlinReleasesUrl="https://api.github.com/repos/JetBrains/kotlin/releases"
latestRelease=$(curl -s $kotlinReleasesUrl | jq -r 'map(select(.prerelease == false)) | sort_by(.target_commitish)[-1]')
URL=$(echo $latestRelease | jq -r '.assets[].browser_download_url | select(contains("kotlin-compiler"))')
download_with_retries $URL "/tmp"
downloadUrl=$(get_github_package_download_url "JetBrains/kotlin" "contains(\"kotlin-compiler\")")
download_with_retries "$downloadUrl" "/tmp"
unzip -qq /tmp/kotlin-compiler*.zip -d $KOTLIN_ROOT
rm $KOTLIN_ROOT/kotlinc/bin/*.bat
@@ -4,8 +4,11 @@
## Desc: Installs kubectl, helm, kustomize
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install KIND
URL=$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '.assets[].browser_download_url | select(contains("kind-linux-amd64"))')
URL=$(get_github_package_download_url "kubernetes-sigs/kind" "contains(\"kind-linux-amd64\")")
curl -L -o /usr/local/bin/kind $URL
chmod +x /usr/local/bin/kind
+7 -53
View File
@@ -12,62 +12,16 @@ MYSQL_ROOT_PASSWORD=root
echo "mysql-server mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
# Ubuntu's repo now contains 8.0.28 which is buggy,
# see https://bugs.mysql.com/bug.php?id=105288
export ACCEPT_EULA=Y
if isUbuntu20 ; then
mkdir -p /tmp/mysql
pushd /tmp
# Install MySQL Client
apt-get install mysql-client -y
# Mandatory dependency
apt-get install -y libmecab2 libaio1
# Install MySQL Server
apt-get install -y mysql-server
wget -q https://downloads.mysql.com/archives/get/p/23/file/mysql-server_8.0.26-1ubuntu${VERSION_ID}_amd64.deb-bundle.tar
tar -xf mysql-server_8.0.26-1ubuntu${VERSION_ID}_amd64.deb-bundle.tar -C /tmp/mysql
pushd mysql
# Remove debs with debug info
rm mysql-community-*debug*.deb
mysql_debs=(
mysql-common*
mysql-community-client-plugins*
mysql-community-client-core*
mysql-community-client*
mysql-client*
mysql-community-server-core*
mysql-community-server*
mysql-server*
libmysqlclient21*
libmysqlclient-dev*
)
for package in ${mysql_debs[@]}; do
dpkg -i $package
done
# Install the /etc/init.d/mysql script for backward compatibility with sysVinit
cp $HELPER_SCRIPTS/mysql-service-helper.sh /etc/init.d/mysql
# Fix permission
chmod 755 /etc/init.d/mysql
# Start mysql to change its settings
systemctl start mysql.service
# Enable mysql log-in without sudo by activation of the mysql_native_password plugin
mysql -s -N -h localhost -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;"
else
export ACCEPT_EULA=Y
# Install MySQL Client
apt-get install mysql-client -y
# Install MySQL Server
apt-get install -y mysql-server
#Install MySQL Dev tools
apt install libmysqlclient-dev -y
fi
#Install MySQL Dev tools
apt install libmysqlclient-dev -y
# Disable mysql.service
systemctl is-active --quiet mysql.service && systemctl stop mysql.service
+1 -2
View File
@@ -7,8 +7,7 @@
source $HELPER_SCRIPTS/install.sh
# Determine latest ORAS CLI version
ORAS_CLI_LATEST_VERSION_URL=https://api.github.com/repos/oras-project/oras/releases/latest
ORAS_CLI_DOWNLOAD_URL=$(curl -sfL $ORAS_CLI_LATEST_VERSION_URL | jq -r '.assets[].browser_download_url | select(endswith("linux_amd64.tar.gz"))')
ORAS_CLI_DOWNLOAD_URL=$(get_github_package_download_url "oras-project/oras" "endswith(\"linux_amd64.tar.gz\")")
ORAS_CLI_ARCHIVE=$(basename $ORAS_CLI_DOWNLOAD_URL)
# Install ORAS CLI
+7 -17
View File
@@ -64,9 +64,11 @@ for version in $php_versions; do
php$version-zip \
php$version-zmq
if [[ $version == "5.6" || $version == "7.0" || $version == "7.1" ]]; then
apt-get install -y --no-install-recommends php$version-mcrypt php$version-recode
fi
apt-get install -y --no-install-recommends php$version-pcov
# Disable PCOV, as Xdebug is enabled by default
# https://github.com/krakjoe/pcov#interoperability
phpdismod -v $version pcov
if [[ $version == "7.2" || $version == "7.3" ]]; then
apt-get install -y --no-install-recommends php$version-recode
@@ -75,18 +77,6 @@ for version in $php_versions; do
if [[ $version != "8.0" && $version != "8.1" ]]; then
apt-get install -y --no-install-recommends php$version-xmlrpc php$version-json
fi
if [[ $version != "5.6" && $version != "7.0" ]]; then
apt-get install -y --no-install-recommends php$version-pcov
# Disable PCOV, as Xdebug is enabled by default
# https://github.com/krakjoe/pcov#interoperability
phpdismod -v $version pcov
fi
if [[ $version = "7.0" || $version = "7.1" ]]; then
apt-get install -y --no-install-recommends php$version-sodium
fi
done
apt-get install -y --no-install-recommends php-pear
@@ -113,8 +103,8 @@ mv phpunit /usr/local/bin/phpunit
# ubuntu 20.04 libzip-dev is libzip5 based and is not compatible libzip-dev of ppa:ondrej/php
# see https://github.com/actions/virtual-environments/issues/1084
if isUbuntu20 ; then
rm /etc/apt/sources.list.d/ondrej-ubuntu-php-focal.list
if isUbuntu20 || isUbuntu22; then
rm /etc/apt/sources.list.d/ondrej-*.list
apt-get update
fi
@@ -4,5 +4,19 @@
## Desc: Installs powershellcore
################################################################################
# Install Powershell
apt-get install -y powershell
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
if isUbuntu22; then
# Install libssl1.1
download_with_retries "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb" "/tmp"
dpkg -i /tmp/libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb
# Install Powershell
download_with_retries "https://github.com/PowerShell/PowerShell/releases/download/v7.2.3/powershell-lts_7.2.3-1.deb_amd64.deb" "/tmp"
dpkg -i /tmp/powershell-lts_7.2.3-1.deb_amd64.deb
else
# Install Powershell
apt-get install -y powershell
fi
+7 -1
View File
@@ -6,6 +6,7 @@
# Source the helpers for use with the script
source $HELPER_SCRIPTS/etc-environment.sh
source $HELPER_SCRIPTS/os.sh
export RUSTUP_HOME=/etc/skel/.rustup
export CARGO_HOME=/etc/skel/.cargo
@@ -17,7 +18,12 @@ source $CARGO_HOME/env
# Install common tools
rustup component add rustfmt clippy
cargo install --locked bindgen cbindgen cargo-audit cargo-outdated
if isUbuntu22; then
cargo install bindgen cbindgen cargo-audit cargo-outdated
else
cargo install --locked bindgen cbindgen cargo-audit cargo-outdated
fi
# Cleanup Cargo cache
rm -rf ${CARGO_HOME}/registry/*
+2 -2
View File
@@ -7,8 +7,8 @@
source $HELPER_SCRIPTS/install.sh
# Install latest sbt release
sbtVersion=$(curl -s -L "https://api.github.com/repos/sbt/sbt/releases" | jq -r '.[] | select(.prerelease==false).name' | sort --unique --version-sort | grep -ve "-.*" | tail -1)
download_with_retries "https://github.com/sbt/sbt/releases/download/v${sbtVersion}/sbt-${sbtVersion}.tgz" "/tmp" "sbt.tgz"
downloadUrl=$(get_github_package_download_url "sbt/sbt" "endswith(\".tgz\")")
download_with_retries "$downloadUrl" "/tmp" "sbt.tgz"
tar zxf /tmp/sbt.tgz -C /usr/share
ln -s /usr/share/sbt/bin/sbt /usr/bin/sbt
+1 -2
View File
@@ -12,8 +12,7 @@ SELENIUM_MAJOR_VERSION=$(get_toolset_value '.selenium.version')
SELENIUM_BINARY_NAME=$(get_toolset_value '.selenium.binary_name')
SELENIUM_JAR_PATH="/usr/share/java"
SELENIUM_JAR_NAME="$SELENIUM_BINARY_NAME.jar"
json=$(curl -s "https://api.github.com/repos/SeleniumHQ/selenium/releases?per_page=100")
SELENIUM_DOWNLOAD_URL=$(echo $json | jq -r ".[] | select(.prerelease==false).assets[].browser_download_url | select(contains(\"${SELENIUM_BINARY_NAME}-${SELENIUM_MAJOR_VERSION}\") and endswith(\".jar\"))" | head -1)
SELENIUM_DOWNLOAD_URL=$(get_github_package_download_url "SeleniumHQ/selenium" "contains(\"${SELENIUM_BINARY_NAME}-${SELENIUM_MAJOR_VERSION}\") and endswith(\".jar\")")
download_with_retries $SELENIUM_DOWNLOAD_URL $SELENIUM_JAR_PATH $SELENIUM_JAR_NAME
# Create an epmty file to retrive selenium version
+1 -1
View File
@@ -6,7 +6,7 @@ source $HELPER_SCRIPTS/install.sh
YQ_BINARY=yq_linux_amd64
# As per https://github.com/mikefarah/yq#wget
YQ_URL=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r ".assets[].browser_download_url | select(endswith(\"$YQ_BINARY.tar.gz\"))")
YQ_URL=$(get_github_package_download_url "mikefarah/yq" "endswith(\"$YQ_BINARY.tar.gz\")")
echo "Downloading latest yq from $YQ_URL"
download_with_retries "$YQ_URL" "/tmp" "${YQ_BINARY}.tar.gz"
@@ -1,4 +1,6 @@
Describe "Android" {
if (Test-IsUbuntu22) { return }
$androidSdkManagerPackages = Get-AndroidPackages
[int]$platformMinVersion = Get-ToolsetValue "android.platform_min_version"
[version]$buildToolsMinVersion = Get-ToolsetValue "android.build_tools_min_version"
@@ -1,4 +1,4 @@
Describe "Firefox" {
Describe "Firefox" -Skip:(Test-IsUbuntu22) {
It "Firefox" {
"sudo -i firefox --version" | Should -ReturnZeroExitCode
}
+1 -1
View File
@@ -29,7 +29,7 @@ Describe "PHP" {
}
}
Describe "Swift" {
Describe "Swift" -Skip:(Test-IsUbuntu22) {
It "swift" {
"swift --version" | Should -ReturnZeroExitCode
}
@@ -1,4 +1,4 @@
Describe "MongoDB" {
Describe "MongoDB" -Skip:(Test-IsUbuntu22) {
It "<ToolName>" -TestCases @(
@{ ToolName = "mongo" }
@{ ToolName = "mongod" }
@@ -36,11 +36,4 @@ Describe "MySQL" {
"sudo mysql -vvv -e 'DROP DATABASE smoke_test' -uroot -proot" | Should -ReturnZeroExitCode
"sudo systemctl stop mysql" | Should -ReturnZeroExitCode
}
It "MySQL sysVinit script works" {
sudo /etc/init.d/mysql start | Out-Null
systemctl is-active mysql | Should -Be "active"
sudo /etc/init.d/mysql stop | Out-Null
systemctl is-active mysql | Should -Be "inactive"
}
}
+12 -1
View File
@@ -1,8 +1,9 @@
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
Describe "Dotnet" {
Describe "Dotnet and tools" {
BeforeAll {
$env:PATH = "/etc/skel/.dotnet/tools:$($env:PATH)"
$dotnetSDKs = dotnet --list-sdks | ConvertTo-Json
$dotnetRuntimes = dotnet --list-runtimes | ConvertTo-Json
}
@@ -28,4 +29,14 @@ Describe "Dotnet" {
}
}
}
Context "Dotnet tools" {
$dotnetTools = (Get-ToolsetContent).dotnet.tools
$testCases = $dotnetTools | ForEach-Object { @{ ToolName = $_.name; TestInstance = $_.test }}
It "<ToolName> is available" -TestCases $testCases {
"$TestInstance" | Should -ReturnZeroExitCode
}
}
}
+21 -6
View File
@@ -1,10 +1,15 @@
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1" -DisableNameChecking
Describe "Java" {
[array]$jdkVersions = (Get-ToolsetContent).java.versions | ForEach-Object { @{Version = $_} }
$defaultJavaVersion = (Get-ToolsetContent).java.default
Describe "Java" -Skip:(Test-IsUbuntu22) {
$toolsetJava = (Get-ToolsetContent).java
$defaultVersion = $toolsetJava.default
$defaultVendor = $toolsetJava.default_vendor
$javaVendors = $toolsetJava.vendors
It "Java <DefaultJavaVersion> is default" -TestCases @{ DefaultJavaVersion = $defaultJavaVersion } {
[array]$jdkVersions = ($javaVendors | Where-Object {$_.name -eq $defaultVendor}).versions | ForEach-Object { @{Version = $_} }
[array]$adoptJdkVersions = ($javaVendors | Where-Object {$_.name -eq "Adopt"}).versions | ForEach-Object { @{Version = $_} }
It "Java <DefaultJavaVersion> is default" -TestCases @{ DefaultJavaVersion = $defaultVersion } {
$actualJavaPath = Get-EnvironmentVariable "JAVA_HOME"
$expectedJavaPath = Get-EnvironmentVariable "JAVA_HOME_${DefaultJavaVersion}_X64"
@@ -42,6 +47,16 @@ Describe "Java" {
if ($Version -eq 8) {
$Version = "1.${Version}"
}
"`"$javaPath`" -version" | Should -MatchCommandOutput ([regex]::Escape("openjdk version `"${Version}."))
"`"$javaPath`" -version" | Should -MatchCommandOutput ([regex]::Escape("openjdk version `"${Version}."))
}
}
It "Java Adopt <Version>" -TestCases $adoptJdkVersions {
$javaPath = Join-Path (Get-ChildItem ${env:AGENT_TOOLSDIRECTORY}\Java_Adopt_jdk\${Version}*) "x64\bin\java"
"`"$javaPath`" -version" | Should -ReturnZeroExitCode
if ($Version -eq 8) {
$Version = "1.${Version}"
}
"`"$javaPath`" -version" | Should -MatchCommandOutput ([regex]::Escape("openjdk version `"${Version}."))
}
}
+10 -10
View File
@@ -126,7 +126,7 @@ Describe "Cmake" {
}
}
Describe "erlang" {
Describe "erlang" -Skip:(Test-IsUbuntu22) {
$testCases = @("erl -version", "erlc -v", "rebar3 -v") | ForEach-Object { @{ErlangCommand = $_} }
It "erlang <ErlangCommand>" -TestCases $testCases {
@@ -162,7 +162,7 @@ Describe "gfortran" {
}
}
Describe "Mono" {
Describe "Mono" -Skip:(Test-IsUbuntu22) {
It "mono" {
"mono --version" | Should -ReturnZeroExitCode
}
@@ -176,7 +176,7 @@ Describe "Mono" {
}
}
Describe "MSSQLCommandLineTools" {
Describe "MSSQLCommandLineTools" -Skip:(Test-IsUbuntu22) {
It "sqlcmd" {
"sqlcmd -?" | Should -ReturnZeroExitCode
}
@@ -200,7 +200,7 @@ Describe "Sbt" {
}
}
Describe "Selenium" {
Describe "Selenium" -Skip:(Test-IsUbuntu22) {
It "Selenium is installed" {
$seleniumBinaryName = (Get-ToolsetContent).selenium.binary_name
$seleniumPath = Join-Path "/usr/share/java" "$seleniumBinaryName.jar"
@@ -244,7 +244,7 @@ Describe "Heroku" {
}
}
Describe "HHVM" {
Describe "HHVM" -Skip:(Test-IsUbuntu22) {
It "hhvm" {
"hhvm --version" | Should -ReturnZeroExitCode
}
@@ -292,7 +292,7 @@ Describe "Kubernetes tools" {
}
}
Describe "Leiningen" {
Describe "Leiningen" -Skip:(Test-IsUbuntu22) {
It "leiningen" {
"lein --version" | Should -ReturnZeroExitCode
}
@@ -316,13 +316,13 @@ Describe "Pulumi" {
}
}
Describe "Phantomjs" {
Describe "Phantomjs" -Skip:(Test-IsUbuntu22) {
It "phantomjs" {
"phantomjs --version" | Should -ReturnZeroExitCode
}
}
Describe "GraalVM" -Skip:(-not (Test-IsUbuntu20)) {
Describe "GraalVM" -Skip:(Test-IsUbuntu18) {
It "graalvm" {
'$GRAALVM_11_ROOT/bin/java -version' | Should -ReturnZeroExitCode
}
@@ -332,7 +332,7 @@ Describe "GraalVM" -Skip:(-not (Test-IsUbuntu20)) {
}
}
Describe "Containers" {
Describe "Containers" -Skip:(Test-IsUbuntu22) {
$testCases = @("podman", "buildah", "skopeo") | ForEach-Object { @{ContainerCommand = $_} }
It "<ContainerCommand>" -TestCases $testCases {
@@ -391,7 +391,7 @@ Describe "yq" {
}
}
Describe "Kotlin" {
Describe "Kotlin" -Skip:(Test-IsUbuntu22) {
It "kapt" {
"kapt -version"| Should -ReturnZeroExitCode
}
+32 -15
View File
@@ -8,7 +8,6 @@
"arch": "x64",
"versions": [
"2.7.*",
"3.5.*",
"3.6.*",
"3.7.*",
"3.8.*",
@@ -22,7 +21,8 @@
"platform" : "linux",
"versions": [
"2.7",
"3.6"
"3.6",
"3.9"
]
},
{
@@ -42,11 +42,11 @@
"arch": "x64",
"platform" : "linux",
"versions": [
"1.15.*",
"1.16.*",
"1.17.*"
"1.17.*",
"1.18.*"
],
"default": "1.15.*"
"default": "1.17.*"
},
{
"name": "Ruby",
@@ -57,7 +57,8 @@
"2.5.*",
"2.6.*",
"2.7.*",
"3.0.*"
"3.0.*",
"3.1.*"
]
},
{
@@ -71,10 +72,18 @@
],
"java": {
"default": "8",
"versions": [
"8", "11", "12"
"default_vendor": "Temurin-Hotspot",
"vendors": [
{
"name": "Temurin-Hotspot",
"versions": [ "8", "11", "17" ]
},
{
"name": "Adopt",
"versions": [ "8", "11", "12" ]
}
],
"maven": "3.8.4"
"maven": "3.8.5"
},
"android": {
"platform_min_version": "23",
@@ -103,6 +112,7 @@
},
"powershellModules": [
{"name": "MarkdownPS"},
{"name": "Microsoft.Graph"},
{"name": "Pester"}
],
"azureModules": [
@@ -110,17 +120,20 @@
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"6.4.0"
"7.3.2"
],
"zip_versions": [
"3.1.0",
"4.4.0",
"5.9.0"
"5.9.0",
"6.6.0"
]
}
],
"apt": {
"common_packages": [
"autoconf",
"automake",
"build-essential",
"dbus",
"dnsutils",
@@ -143,6 +156,7 @@
"libmagickwand-dev",
"libsecret-1-dev",
"libsqlite3-dev",
"libtool",
"libunwind8",
"libxkbfile-dev",
"libxss1",
@@ -239,12 +253,16 @@
"dotnet": {
"aptPackages": [
"dotnet-sdk-3.1",
"dotnet-sdk-5.0"
"dotnet-sdk-5.0",
"dotnet-sdk-6.0"
],
"versions": [
"2.1",
"3.1",
"5.0"
"5.0",
"6.0"
],
"tools": [
{ "name": "nbgv", "test": "nbgv --version", "getversion" : "nbgv --version" }
]
},
"clang": {
@@ -267,7 +285,6 @@
},
"php": {
"versions": [
"7.1",
"7.2",
"7.3",
"7.4",
+32 -14
View File
@@ -8,7 +8,6 @@
"arch": "x64",
"versions": [
"2.7.*",
"3.5.*",
"3.6.*",
"3.7.*",
"3.8.*",
@@ -24,7 +23,8 @@
"2.7",
"3.6",
"3.7",
"3.8"
"3.8",
"3.9"
]
},
{
@@ -44,11 +44,11 @@
"arch": "x64",
"platform" : "linux",
"versions": [
"1.15.*",
"1.16.*",
"1.17.*"
"1.17.*",
"1.18.*"
],
"default": "1.15.*"
"default": "1.17.*"
},
{
"name": "Ruby",
@@ -58,7 +58,8 @@
"2.5.*",
"2.6.*",
"2.7.*",
"3.0.*"
"3.0.*",
"3.1.*"
]
},
{
@@ -72,10 +73,18 @@
],
"java": {
"default": "11",
"versions": [
"8", "11"
"default_vendor": "Temurin-Hotspot",
"vendors": [
{
"name": "Temurin-Hotspot",
"versions": [ "8", "11", "17" ]
},
{
"name": "Adopt",
"versions": [ "8", "11" ]
}
],
"maven": "3.8.4"
"maven": "3.8.5"
},
"android": {
"platform_min_version": "27",
@@ -100,6 +109,7 @@
},
"powershellModules": [
{"name": "MarkdownPS"},
{"name": "Microsoft.Graph"},
{"name": "Pester"},
{"name": "PSScriptAnalyzer"}
],
@@ -108,17 +118,20 @@
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"6.4.0"
"7.3.2"
],
"zip_versions": [
"3.1.0",
"4.4.0",
"5.9.0"
"5.9.0",
"6.6.0"
]
}
],
"apt": {
"common_packages": [
"autoconf",
"automake",
"build-essential",
"dbus",
"dnsutils",
@@ -142,6 +155,7 @@
"libmagickwand-dev",
"libsecret-1-dev",
"libsqlite3-dev",
"libtool",
"libunwind8",
"libxkbfile-dev",
"libxss1",
@@ -239,12 +253,16 @@
"dotnet": {
"aptPackages": [
"dotnet-sdk-3.1",
"dotnet-sdk-5.0"
"dotnet-sdk-5.0",
"dotnet-sdk-6.0"
],
"versions": [
"2.1",
"3.1",
"5.0"
"5.0",
"6.0"
],
"tools": [
{ "name": "nbgv", "test": "nbgv --version", "getversion" : "nbgv --version" }
]
},
"clang": {
+332
View File
@@ -0,0 +1,332 @@
{
"toolcache": [
{
"name": "Python",
"url" : "https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json",
"platform" : "linux",
"platform_version": "22.04",
"arch": "x64",
"versions": [
"3.7.*",
"3.8.*",
"3.9.*",
"3.10.*"
]
},
{
"name": "PyPy",
"arch": "x64",
"platform" : "linux",
"versions": [
"3.7",
"3.8",
"3.9"
]
},
{
"name": "node",
"url" : "https://raw.githubusercontent.com/actions/node-versions/main/versions-manifest.json",
"platform" : "linux",
"arch": "x64",
"versions": [
"14.*",
"16.*"
]
},
{
"name": "go",
"url" : "https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json",
"arch": "x64",
"platform" : "linux",
"versions": [
"1.17.*",
"1.18.*"
],
"default": "1.18.*"
},
{
"name": "Ruby",
"platform_version": "22.04",
"arch": "x64",
"versions": [
"3.1.*"
]
},
{
"name": "CodeQL",
"platform" : "linux",
"arch": "x64",
"versions": [
"*"
]
}
],
"java": {
"default": "11",
"default_vendor": "Temurin-Hotspot",
"vendors": [
{
"name": "Temurin-Hotspot",
"versions": [ "8", "11", "17" ]
}
],
"maven": "3.8.5"
},
"android": {
"platform_min_version": "27",
"build_tools_min_version": "27.0.0",
"extra_list": [
"android;m2repository",
"google;m2repository",
"google;google_play_services"
],
"addon_list": [
],
"additional_tools": [
"cmake;3.10.2.4988404",
"cmake;3.18.1"
],
"ndk": {
"default": "21",
"versions": [
"21", "22", "23"
]
}
},
"powershellModules": [
{"name": "MarkdownPS"},
{"name": "Microsoft.Graph"},
{"name": "Pester"},
{"name": "PSScriptAnalyzer"}
],
"azureModules": [
{
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"7.3.2"
],
"zip_versions": [
]
}
],
"apt": {
"common_packages": [
"autoconf",
"automake",
"build-essential",
"dbus",
"dnsutils",
"dpkg",
"fakeroot",
"fonts-noto-color-emoji",
"gnupg2",
"imagemagick",
"iproute2",
"iputils-ping",
"lib32z1",
"libc++abi-dev",
"libc++-dev",
"libcurl4",
"libgbm-dev",
"libgconf-2-4",
"libgsl-dev",
"libgtk-3-0",
"libmagic-dev",
"libmagickcore-dev",
"libmagickwand-dev",
"libsecret-1-dev",
"libsqlite3-dev",
"libtool",
"libunwind8",
"libxkbfile-dev",
"libxss1",
"libssl-dev",
"locales",
"mercurial",
"openssh-client",
"p7zip-rar",
"pkg-config",
"python-is-python3",
"rpm",
"texinfo",
"tk",
"tzdata",
"upx",
"xorriso",
"xvfb",
"xz-utils",
"zsync"
],
"cmd_packages": [
"acl",
"aria2",
"binutils",
"bison",
"brotli",
"bzip2",
"coreutils",
"curl",
"file",
"flex",
"ftp",
"haveged",
"jq",
"m4",
"mediainfo",
"netcat",
"net-tools",
"p7zip-full",
"parallel",
"pass",
"patchelf",
"pollinate",
"rsync",
"shellcheck",
"sphinxsearch",
"sqlite3",
"ssh",
"sshpass",
"subversion",
"sudo",
"swig",
"telnet",
"time",
"unzip",
"wget",
"zip"
]
},
"brew": [
{"name": "zstd"}
],
"docker": {
"images": [
"alpine:3.14",
"alpine:3.15",
"buildpack-deps:buster",
"buildpack-deps:bullseye",
"debian:10",
"debian:11",
"moby/buildkit:latest",
"node:14",
"node:16",
"node:14-alpine",
"node:16-alpine",
"ubuntu:18.04",
"ubuntu:20.04",
"ubuntu:22.04"
]
},
"pipx": [
{
"package": "yamllint",
"cmd": "yamllint"
},
{
"package": "ansible-core",
"cmd": "ansible"
}
],
"dotnet": {
"aptPackages": [
"dotnet-sdk-6.0"
],
"versions": [
"6.0"
],
"tools": [
{ "name": "nbgv", "test": "nbgv --version", "getversion" : "nbgv --version" }
]
},
"clang": {
"versions": [
"11",
"12"
],
"default_version": "11"
},
"gcc": {
"versions": [
"g++-9",
"g++-10"
]
},
"gfortran": {
"versions": [
"gfortran-9",
"gfortran-10"
]
},
"php": {
"versions": [
"8.1"
]
},
"rubygems": [
{"name": "fastlane"}
],
"selenium": {
"version": "4",
"binary_name": "selenium-server"
},
"node": {
"default": "16"
},
"node_modules": [
{
"name": "grunt",
"command": "grunt"
},
{
"name": "gulp",
"command": "gulp"
},
{
"name": "n",
"command": "n"
},
{
"name": "parcel",
"command": "parcel"
},
{
"name": "typescript",
"command": "tsc"
},
{
"name": "newman",
"command": "newman"
},
{
"name": "vercel",
"command": "vercel"
},
{
"name": "webpack",
"command": "webpack"
},
{
"name": "webpack-cli",
"command": "webpack-cli"
},
{
"name": "netlify-cli",
"command": "netlify"
},
{
"name": "lerna",
"command": "lerna"
},
{
"name": "yarn",
"command": "yarn"
}
],
"mongodb": {
"version": "5.0"
},
"postgresql": {
"version": "14"
}
}
+2 -8
View File
@@ -149,20 +149,14 @@
{
"type": "shell",
"scripts": [
"{{template_dir}}/scripts/installers/complete-snap-setup.sh"
"{{template_dir}}/scripts/installers/complete-snap-setup.sh",
"{{template_dir}}/scripts/installers/powershellcore.sh"
],
"environment_vars": [
"HELPER_SCRIPTS={{user `helper_script_folder`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts": [
"{{template_dir}}/scripts/installers/powershellcore.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts": [
+2 -8
View File
@@ -149,20 +149,14 @@
{
"type": "shell",
"scripts": [
"{{template_dir}}/scripts/installers/complete-snap-setup.sh"
"{{template_dir}}/scripts/installers/complete-snap-setup.sh",
"{{template_dir}}/scripts/installers/powershellcore.sh"
],
"environment_vars": [
"HELPER_SCRIPTS={{user `helper_script_folder`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts": [
"{{template_dir}}/scripts/installers/powershellcore.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts": [
+389
View File
@@ -0,0 +1,389 @@
variable "allowed_inbound_ip_addresses" {
default = []
}
variable "build_resource_group_name" {
type = string
default = "${env("BUILD_RESOURCE_GROUP_NAME")}"
}
variable "capture_name_prefix" {
type = string
default = "packer"
}
variable "client_id" {
type = string
default = "${env("ARM_CLIENT_ID")}"
}
variable "client_secret" {
type = string
default = "${env("ARM_CLIENT_SECRET")}"
sensitive = true
}
variable "commit_url" {
type = string
default = ""
}
variable "dockerhub_login" {
type = string
default = "${env("DOCKERHUB_LOGIN")}"
}
variable "dockerhub_password" {
type = string
default = "${env("DOCKERHUB_PASSWORD")}"
}
variable "helper_script_folder" {
type = string
default = "/imagegeneration/helpers"
}
variable "image_folder" {
type = string
default = "/imagegeneration"
}
variable "image_os" {
type = string
default = "ubuntu22"
}
variable "image_repository_path" {
type = string
default = "${env("IMAGEREPOSITORYPATH")}"
}
variable "image_version" {
type = string
default = "dev"
}
variable "imagedata_file" {
type = string
default = "/imagegeneration/imagedata.json"
}
variable "installer_script_folder" {
type = string
default = "/imagegeneration/installers"
}
variable "install_password" {
type = string
default = ""
}
variable "location" {
type = string
default = "${env("ARM_RESOURCE_LOCATION")}"
}
variable "private_virtual_network_with_public_ip" {
type = bool
default = false
}
variable "resource_group" {
type = string
default = "${env("ARM_RESOURCE_GROUP")}"
}
variable "run_validation_diskspace" {
type = bool
default = false
}
variable "storage_account" {
type = string
default = "${env("ARM_STORAGE_ACCOUNT")}"
}
variable "subscription_id" {
type = string
default = "${env("ARM_SUBSCRIPTION_ID")}"
}
variable "temp_resource_group_name" {
type = string
default = "${env("TEMP_RESOURCE_GROUP_NAME")}"
}
variable "tenant_id" {
type = string
default = "${env("ARM_TENANT_ID")}"
}
variable "virtual_network_name" {
type = string
default = "${env("VNET_NAME")}"
}
variable "virtual_network_resource_group_name" {
type = string
default = "${env("VNET_RESOURCE_GROUP")}"
}
variable "virtual_network_subnet_name" {
type = string
default = "${env("VNET_SUBNET")}"
}
variable "vm_size" {
type = string
default = "Standard_D4s_v4"
}
source "azure-arm" "build_vhd" {
allowed_inbound_ip_addresses = "${var.allowed_inbound_ip_addresses}"
build_resource_group_name = "${var.build_resource_group_name}"
capture_container_name = "images"
capture_name_prefix = "${var.capture_name_prefix}"
client_id = "${var.client_id}"
client_secret = "${var.client_secret}"
image_offer = "0001-com-ubuntu-server-jammy"
image_publisher = "canonical"
image_sku = "22_04-lts"
location = "${var.location}"
os_disk_size_gb = "86"
os_type = "Linux"
private_virtual_network_with_public_ip = "${var.private_virtual_network_with_public_ip}"
resource_group_name = "${var.resource_group}"
storage_account = "${var.storage_account}"
subscription_id = "${var.subscription_id}"
temp_resource_group_name = "${var.temp_resource_group_name}"
tenant_id = "${var.tenant_id}"
user_data_file = "${var.image_repository_path}/images/linux/scripts/base/configure-legacy-ssh.sh"
virtual_network_name = "${var.virtual_network_name}"
virtual_network_resource_group_name = "${var.virtual_network_resource_group_name}"
virtual_network_subnet_name = "${var.virtual_network_subnet_name}"
vm_size = "${var.vm_size}"
}
build {
sources = ["source.azure-arm.build_vhd"]
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["mkdir ${var.image_folder}", "chmod 777 ${var.image_folder}"]
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/scripts/base/apt-mock.sh"
}
provisioner "shell" {
environment_vars = ["DEBIAN_FRONTEND=noninteractive"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/base/repos.sh"]
}
provisioner "shell" {
environment_vars = ["DEBIAN_FRONTEND=noninteractive"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/scripts/base/apt.sh"
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/scripts/base/limits.sh"
}
provisioner "file" {
destination = "${var.helper_script_folder}"
source = "${path.root}/scripts/helpers"
}
provisioner "file" {
destination = "${var.installer_script_folder}"
source = "${path.root}/scripts/installers"
}
provisioner "file" {
destination = "${var.image_folder}"
source = "${path.root}/post-generation"
}
provisioner "file" {
destination = "${var.image_folder}"
source = "${path.root}/scripts/tests"
}
provisioner "file" {
destination = "${var.image_folder}"
source = "${path.root}/scripts/SoftwareReport"
}
provisioner "file" {
destination = "${var.installer_script_folder}/toolset.json"
source = "${path.root}/toolsets/toolset-2204.json"
}
provisioner "shell" {
environment_vars = ["IMAGE_VERSION=${var.image_version}", "IMAGEDATA_FILE=${var.imagedata_file}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/preimagedata.sh"]
}
provisioner "shell" {
environment_vars = ["IMAGE_VERSION=${var.image_version}", "IMAGE_OS=${var.image_os}", "HELPER_SCRIPTS=${var.helper_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/configure-environment.sh"]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/complete-snap-setup.sh", "${path.root}/scripts/installers/powershellcore.sh"]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/Install-PowerShellModules.ps1", "${path.root}/scripts/installers/Install-AzureModules.ps1"]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}", "DOCKERHUB_LOGIN=${var.dockerhub_login}", "DOCKERHUB_PASSWORD=${var.dockerhub_password}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/docker-compose.sh", "${path.root}/scripts/installers/docker-moby.sh"]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}", "DEBIAN_FRONTEND=noninteractive"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = [
"${path.root}/scripts/installers/azcopy.sh",
"${path.root}/scripts/installers/azure-cli.sh",
"${path.root}/scripts/installers/azure-devops-cli.sh",
"${path.root}/scripts/installers/basic.sh",
"${path.root}/scripts/installers/bicep.sh",
"${path.root}/scripts/installers/aliyun-cli.sh",
"${path.root}/scripts/installers/apache.sh",
"${path.root}/scripts/installers/aws.sh",
"${path.root}/scripts/installers/clang.sh",
"${path.root}/scripts/installers/cmake.sh",
"${path.root}/scripts/installers/codeql-bundle.sh",
"${path.root}/scripts/installers/dotnetcore-sdk.sh",
"${path.root}/scripts/installers/gcc.sh",
"${path.root}/scripts/installers/gfortran.sh",
"${path.root}/scripts/installers/git.sh",
"${path.root}/scripts/installers/github-cli.sh",
"${path.root}/scripts/installers/google-chrome.sh",
"${path.root}/scripts/installers/google-cloud-sdk.sh",
"${path.root}/scripts/installers/haskell.sh",
"${path.root}/scripts/installers/heroku.sh",
"${path.root}/scripts/installers/kubernetes-tools.sh",
"${path.root}/scripts/installers/oc.sh",
"${path.root}/scripts/installers/miniconda.sh",
"${path.root}/scripts/installers/mysql.sh",
"${path.root}/scripts/installers/sqlpackage.sh",
"${path.root}/scripts/installers/nginx.sh",
"${path.root}/scripts/installers/nvm.sh",
"${path.root}/scripts/installers/nodejs.sh",
"${path.root}/scripts/installers/bazel.sh",
"${path.root}/scripts/installers/oras-cli.sh",
"${path.root}/scripts/installers/php.sh",
"${path.root}/scripts/installers/postgresql.sh",
"${path.root}/scripts/installers/pulumi.sh",
"${path.root}/scripts/installers/ruby.sh",
"${path.root}/scripts/installers/r.sh",
"${path.root}/scripts/installers/rust.sh",
"${path.root}/scripts/installers/julia.sh",
"${path.root}/scripts/installers/sbt.sh",
"${path.root}/scripts/installers/terraform.sh",
"${path.root}/scripts/installers/packer.sh",
"${path.root}/scripts/installers/vcpkg.sh",
"${path.root}/scripts/installers/dpkg-config.sh",
"${path.root}/scripts/installers/yq.sh",
"${path.root}/scripts/installers/pypy.sh",
"${path.root}/scripts/installers/python.sh",
"${path.root}/scripts/installers/graalvm.sh"
]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/Install-Toolset.ps1", "${path.root}/scripts/installers/Configure-Toolset.ps1"]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/pipx-packages.sh"]
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "DEBIAN_FRONTEND=noninteractive", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
execute_command = "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/homebrew.sh"]
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/scripts/base/snap.sh"
}
provisioner "shell" {
execute_command = "/bin/sh -c '{{ .Vars }} {{ .Path }}'"
expect_disconnect = true
scripts = ["${path.root}/scripts/base/reboot.sh"]
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
pause_before = "1m0s"
scripts = ["${path.root}/scripts/installers/cleanup.sh"]
start_retry_timeout = "10m"
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
script = "${path.root}/scripts/base/apt-mock-remove.sh"
}
provisioner "shell" {
environment_vars = ["IMAGE_VERSION=${var.image_version}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
inline = ["pwsh -File ${var.image_folder}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory ${var.image_folder}", "pwsh -File ${var.image_folder}/tests/RunAll-Tests.ps1 -OutputDirectory ${var.image_folder}"]
}
provisioner "file" {
destination = "${path.root}/Ubuntu2204-Readme.md"
direction = "download"
source = "${var.image_folder}/Ubuntu-Readme.md"
}
provisioner "shell" {
environment_vars = ["HELPER_SCRIPT_FOLDER=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}", "IMAGE_FOLDER=${var.image_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/scripts/installers/post-deployment.sh"]
}
provisioner "shell" {
environment_vars = ["RUN_VALIDATION=${var.run_validation_diskspace}"]
scripts = ["${path.root}/scripts/installers/validate-disk-space.sh"]
}
provisioner "file" {
destination = "/tmp/"
source = "${path.root}/config/ubuntu2204.conf"
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["mkdir -p /etc/vsts", "cp /tmp/ubuntu2204.conf /etc/vsts/machine_instance.conf"]
}
provisioner "shell" {
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
inline = ["sleep 30", "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"]
}
}
+124 -116
View File
@@ -1,54 +1,54 @@
| 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) |
| [macOS-latest workflows will use macOS-11](https://github.com/actions/virtual-environments/issues/4060) |
| [[macOS] Xcode versions 13.2 & 13.3 will be removed, 13.3.1 will be set as the default one on May, 16](https://github.com/actions/virtual-environments/issues/5463) |
| [macOS 12 (Monterey) is available as a public beta in GitHub Actions](https://github.com/actions/virtual-environments/issues/5446) |
***
# macOS 10.15 info
- System Version: macOS 10.15.7 (19H1615)
- System Version: macOS 10.15.7 (19H1824)
- Kernel Version: Darwin 19.6.0
- Image Version: 20211220.1
- Image Version: 20220501.1
## Installed Software
### Language and Runtime
- .NET SDK 2.1.302 2.1.403 2.1.507 2.1.607 2.1.701 2.1.818 3.1.101 3.1.201 3.1.302 3.1.416 5.0.102 5.0.202 5.0.302 5.0.404
- .NET SDK 3.1.101 3.1.201 3.1.302 3.1.418 5.0.102 5.0.202 5.0.302 5.0.407
- Bash 3.2.57(1)-release
- Clang/LLVM 12.0.0 is default
- Clang/LLVM 13.0.0 is available on `'$(brew --prefix llvm)/bin/clang'`
- Clang/LLVM 13.0.1 is available on `'$(brew --prefix llvm)/bin/clang'`
- gcc-9 (Homebrew GCC 9.4.0) 9.4.0 - available by `gcc-9` alias
- gcc-10 (Homebrew GCC 10.3.0) 10.3.0 - available by `gcc-10` alias
- gcc-11 (Homebrew GCC 11.2.0_3) 11.2.0 - available by `gcc-11` alias
- gcc-11 (Homebrew GCC 11.3.0) 11.3.0 - available by `gcc-11` alias
- GNU Fortran (Homebrew GCC 9.4.0) 9.4.0 - available by `gfortran-9` alias
- GNU Fortran (Homebrew GCC 10.3.0) 10.3.0 - available by `gfortran-10` alias
- GNU Fortran (Homebrew GCC 11.2.0_3) 11.2.0 - available by `gfortran-11` alias
- Go 1.15.15
- julia 1.7.0
- Kotlin 1.6.10-release-923
- GNU Fortran (Homebrew GCC 11.3.0) 11.3.0 - available by `gfortran-11` alias
- Go 1.17.9
- julia 1.7.2
- Kotlin 1.6.21-release-334
- MSBuild 16.10.1.58001 (from /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll)
- Node.js v16.13.1
- Node.js v16.15.0
- NVM 0.39.1
- NVM - Cached node versions: v12.22.8 v14.18.2 v16.13.1
- NVM - Cached node versions: v12.22.12 v14.19.1 v16.15.0
- Perl 5.34.0
- PHP 8.1.1
- PHP 8.1.5
- Python 2.7.18
- Python 3.9.9
- R 4.1.2
- Ruby 2.7.5p203
- Python 3.9.12
- R 4.2.0
- Ruby 2.7.6p219
### Package Management
- Bundler version 2.2.33
- Bundler version 2.3.12
- Carthage 0.38.0
- CocoaPods 1.11.2
- Composer 2.1.14
- Homebrew 3.3.9
- Miniconda 4.10.3
- NPM 8.1.2
- CocoaPods 1.11.3
- Composer 2.3.5
- Homebrew 3.4.9
- Miniconda 4.11.0
- NPM 8.5.5
- NuGet 5.9.0.7134
- Pip 20.3.4 (python 2.7)
- Pip 21.3.1 (python 3.9)
- Pipx 0.16.4
- Pip 22.0.4 (python 3.9)
- Pipx 1.0.0
- RubyGems 3.2.33
- Vcpkg 2021 (build from master \<cf43cf71c>)
- Yarn 1.22.17
- Vcpkg 2022 (build from master \<c8a56fdc1>)
- Yarn 1.22.18
#### Environment variables
| Name | Value |
@@ -58,162 +58,169 @@
### Project Management
- Apache Ant(TM) 1.10.12
- Apache Maven 3.8.4
- Gradle 7.3.2
- Sbt 1.5.7
- Apache Maven 3.8.5
- Gradle 7.4.2
- Sbt 1.6.2
### Utilities
- 7-Zip 17.04
- aria2 1.36.0
- azcopy 10.13.0
- bazel 4.2.2
- azcopy 10.14.1
- bazel 5.1.1
- bazelisk 1.11.0
- bsdtar 3.3.2 - available by 'tar' alias
- Curl 7.80.0
- Git LFS: 3.0.2
- Git: 2.34.1
- GitHub CLI: 2.3.0
- GNU parallel 20211122
- Curl 7.83.0
- Git 2.35.1
- Git LFS: 3.1.4
- GitHub CLI: 2.9.0
- GNU parallel 20220422
- GNU Tar 1.34 - available by 'gtar' alias
- GNU Wget 1.21.2
- gpg (GnuPG) 2.3.3
- helm v3.7.2+g663a896
- GNU Wget 1.21.3
- gpg (GnuPG) 2.3.6
- helm v3.8.2+g6e3701e
- Hub CLI: 2.14.2
- jq 1.6
- mongo v5.0.4
- mongod v5.0.4
- Newman 5.3.0
- OpenSSL 1.1.1m 14 Dec 2021 `(/usr/local/opt/openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1m)`
- Packer 1.7.8
- PostgreSQL 14.1
- psql (PostgreSQL) 14.1
- mongo v5.0.7
- mongod v5.0.7
- Newman 5.3.2
- OpenSSL 1.1.1n 15 Mar 2022 `(/usr/local/opt/openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1n)`
- Packer 1.8.0
- PostgreSQL 14.2
- psql (PostgreSQL) 14.2
- Sox 14.4.2
- Subversion (SVN) 1.14.1
- Subversion (SVN) 1.14.2
- Switchaudio-osx 1.1.0
- Vagrant 2.2.19
- virtualbox 6.1.30r148432
- zstd 1.5.0
- virtualbox 6.1.34r150636
- yq (https://github.com/mikefarah/yq/) version 4.25.1
- zstd 1.5.2
### Tools
- Aliyun CLI 3.0.102
- App Center CLI 2.10.7
- AWS CLI 2.4.6
- AWS SAM CLI 1.36.0
- AWS Session Manager CLI 1.2.279.0
- Azure CLI 2.31.0
- Bicep CLI 0.4.1124
- Aliyun CLI 3.0.117
- App Center CLI 2.10.10
- AWS CLI 2.6.1
- AWS SAM CLI 1.47.0
- AWS Session Manager CLI 1.2.312.0
- Azure CLI (azure-devops) 0.25.0
- Azure CLI 2.36.0
- Bicep CLI 0.5.6
- Cabal 3.6.2.0
- Cmake 3.22.1
- Fastlane 2.199.0
- GHC 9.2.1
- GHCup 0.1.17.4
- Jazzy 0.14.1
- Stack 2.7.3
- SwiftFormat 0.49.1
- Cmake 3.23.1
- Fastlane 2.205.2
- GHC 9.2.2
- GHCup v0.1.17.7
- Jazzy 0.14.2
- Stack 2.7.5
- SwiftFormat 0.49.7
- Swig 4.0.2
- Xcode Command Line Tools 12.4.0.0.1.1610135815
### Linters
- SwiftLint 0.45.1
- SwiftLint 0.47.1
- yamllint 1.26.3
### Browsers
- Safari 15.2 (15612.3.6.1.8)
- SafariDriver 15.2 (15612.3.6.1.8)
- Google Chrome 96.0.4664.110
- ChromeDriver 96.0.4664.45
- Microsoft Edge 96.0.1054.62
- MSEdgeDriver 96.0.1054.62
- Mozilla Firefox 95.0.2
- geckodriver 0.30.0
- Selenium server 4.1.0
- Safari 15.4 (15613.1.17.1.13)
- SafariDriver 15.4 (15613.1.17.1.13)
- Google Chrome 101.0.4951.41
- ChromeDriver 101.0.4951.41
- Microsoft Edge 101.0.1210.32
- MSEdgeDriver 101.0.1210.32
- Mozilla Firefox 99.0.1
- geckodriver 0.31.0
- Selenium server 4.1.4
#### Environment variables
| Name | Value |
| --------------- | --------------------------------------------- |
| CHROMEWEBDRIVER | /usr/local/Caskroom/chromedriver/96.0.4664.45 |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/opt/geckodriver/bin |
| Name | Value |
| --------------- | ---------------------------------------------- |
| CHROMEWEBDRIVER | /usr/local/Caskroom/chromedriver/101.0.4951.41 |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/opt/geckodriver/bin |
### Java
| Version | Vendor | Environment Variable |
| ------------------- | --------------- | -------------------- |
| 8.0.312+7 (default) | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.13+8 | Eclipse Temurin | JAVA_HOME_11_X64 |
| 8.0.322+6 (default) | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.15+10 | Eclipse Temurin | JAVA_HOME_11_X64 |
| 12.0.2+10.3 | Adopt OpenJDK | JAVA_HOME_12_X64 |
| 13.0.2+8.1 | Adopt OpenJDK | JAVA_HOME_13_X64 |
| 14.0.2+12 | Adopt OpenJDK | JAVA_HOME_14_X64 |
| 17.0.1+12 | Eclipse Temurin | JAVA_HOME_17_X64 |
| 17.0.3+7 | Eclipse Temurin | JAVA_HOME_17_X64 |
### GraalVM
| Version | Environment variables |
| --------- | --------------------- |
| CE 22.1.0 | GRAALVM_11_ROOT |
### Cached Tools
#### Ruby
- 2.4.10
- 2.5.9
- 2.6.9
- 2.7.5
- 3.0.3
- 2.6.10
- 2.7.6
- 3.0.4
#### Python
- 2.7.18
- 3.5.10
- 3.6.15
- 3.7.12
- 3.7.13
- 3.8.12
- 3.9.9
- 3.10.0
- 3.9.12
- 3.10.4
#### PyPy
- 2.7.18 [PyPy 7.3.6]
- 2.7.18 [PyPy 7.3.9]
- 3.6.12 [PyPy 7.3.3]
- 3.7.12 [PyPy 7.3.7]
- 3.8.12 [PyPy 7.3.7]
- 3.7.13 [PyPy 7.3.9]
- 3.8.13 [PyPy 7.3.9]
- 3.9.12 [PyPy 7.3.9]
#### Node.js
- 12.22.8
- 14.18.2
- 16.13.1
- 12.22.12
- 14.19.1
- 16.15.0
#### Go
| Version | Architecture | Environment Variable |
| ------- | ------------ | -------------------- |
| 1.15.15 (Default) | x64 | GOROOT_1_15_X64 |
| 1.16.12 | x64 | GOROOT_1_16_X64 |
| 1.17.5 | x64 | GOROOT_1_17_X64 |
| 1.16.15 | x64 | GOROOT_1_16_X64 |
| 1.17.9 (Default) | x64 | GOROOT_1_17_X64 |
| 1.18.1 | x64 | GOROOT_1_18_X64 |
### Rust Tools
- Cargo 1.57.0
- Rust 1.57.0
- Rustdoc 1.57.0
- Cargo 1.60.0
- Rust 1.60.0
- Rustdoc 1.60.0
- Rustup 1.24.3
#### Packages
- Bindgen 0.59.2
- Cargo-audit 0.16.0
- Cargo-outdated v0.10.2
- Cbindgen 0.20.0
- Clippy 0.1.57
- Rustfmt 1.4.37-stable
- Cargo-outdated 0.11.1
- Cbindgen 0.23.0
- Clippy 0.1.60
- Rustfmt 1.4.38-stable
### PowerShell Tools
- PowerShell 7.2.1
- PowerShell 7.2.3
#### PowerShell Modules
| Module | Version |
| ---------------- | ------- |
| Az | 6.1.0 |
| Az | 7.5.0 |
| MarkdownPS | 1.9 |
| Pester | 5.3.1 |
| Pester | 5.3.3 |
| PSScriptAnalyzer | 1.20.0 |
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ----- | ------- | ------------------------------- | ------------- | ---------- |
| httpd | 2.4.52 | /usr/local/etc/httpd/httpd.conf | none | 80 |
| nginx | 1.21.4 | /usr/local/etc/nginx/nginx.conf | none | 80 |
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ----- | -------- | ------------------------------- | ------------- | ---------- |
| httpd | 2.4.53_2 | /usr/local/etc/httpd/httpd.conf | none | 80 |
| nginx | 1.21.6_1 | /usr/local/etc/nginx/nginx.conf | none | 80 |
### Xamarin
#### Visual Studio for Mac
- 8.10.16.2
- 8.10.22.11
#### Xamarin bundles
| symlink | Xamarin.Mono | Xamarin.iOS | Xamarin.Mac | Xamarin.Android |
@@ -352,10 +359,10 @@
| Package Name | Version |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Android Command Line Tools | 4.0 |
| Android Emulator | 31.1.4 |
| Android Emulator | 31.2.10 |
| 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 |
| 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) |
| Android SDK Platform-Tools | 31.0.3 |
| Android SDK Platform-Tools | 33.0.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 |
@@ -378,7 +385,8 @@
### Miscellaneous
- libXext 1.3.4
- libXft 2.3.4
- Zlib 1.2.11
- Tcl/Tk 8.6.12
- Zlib 1.2.12
+140 -123
View File
@@ -1,53 +1,54 @@
| 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) |
| [macOS-latest workflows will use macOS-11](https://github.com/actions/virtual-environments/issues/4060) |
| [[macOS] Xcode versions 13.2 & 13.3 will be removed, 13.3.1 will be set as the default one on May, 16](https://github.com/actions/virtual-environments/issues/5463) |
| [macOS 12 (Monterey) is available as a public beta in GitHub Actions](https://github.com/actions/virtual-environments/issues/5446) |
***
# macOS 11.6 info
- System Version: macOS 11.6.2 (20G314)
- System Version: macOS 11.6.5 (20G527)
- Kernel Version: Darwin 20.6.0
- Image Version: 20211219.1
- Image Version: 20220501.1
## Installed Software
### Language and Runtime
- .NET SDK 2.1.302 2.1.403 2.1.507 2.1.607 2.1.701 2.1.818 3.1.101 3.1.201 3.1.302 3.1.416 5.0.102 5.0.202 5.0.302 5.0.404
- .NET SDK 3.1.101 3.1.201 3.1.302 3.1.418 5.0.102 5.0.202 5.0.302 5.0.407
- Bash 3.2.57(1)-release
- Clang/LLVM 13.0.0 is available on `'$(brew --prefix llvm)/bin/clang'`
- Clang/LLVM 13.0.0 is default
- Clang/LLVM 13.0.1 is available on `'$(brew --prefix llvm)/bin/clang'`
- gcc-9 (Homebrew GCC 9.4.0) 9.4.0 - available by `gcc-9` alias
- gcc-10 (Homebrew GCC 10.3.0) 10.3.0 - available by `gcc-10` alias
- gcc-11 (Homebrew GCC 11.2.0_3) 11.2.0 - available by `gcc-11` alias
- gcc-11 (Homebrew GCC 11.3.0) 11.3.0 - available by `gcc-11` alias
- GNU Fortran (Homebrew GCC 9.4.0) 9.4.0 - available by `gfortran-9` alias
- GNU Fortran (Homebrew GCC 10.3.0) 10.3.0 - available by `gfortran-10` alias
- GNU Fortran (Homebrew GCC 11.2.0_3) 11.2.0 - available by `gfortran-11` alias
- Go 1.15.15
- julia 1.7.0
- Kotlin 1.6.10-release-923
- MSBuild 16.10.1.58001 (from /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll)
- Node.js v16.13.1
- GNU Fortran (Homebrew GCC 11.3.0) 11.3.0 - available by `gfortran-11` alias
- Go 1.17.9
- julia 1.7.2
- Kotlin 1.6.21-release-334
- MSBuild 16.10.1.17201 (from /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll)
- Node.js v16.15.0
- NVM 0.39.1
- NVM - Cached node versions: v12.22.8 v14.18.2 v16.13.1
- NVM - Cached node versions: v12.22.12 v14.19.1 v16.15.0
- Perl 5.34.0
- PHP 8.1.1
- PHP 8.1.5
- Python 2.7.18
- Python 3.9.9
- Ruby 2.7.5p203
- Python 3.9.12
- R 4.2.0
- Ruby 2.7.6p219
### Package Management
- Bundler version 2.2.33
- Bundler version 2.3.12
- Carthage 0.38.0
- CocoaPods 1.11.2
- Composer 2.1.14
- Homebrew 3.3.8
- Miniconda 4.10.3
- NPM 8.1.2
- CocoaPods 1.11.3
- Composer 2.3.5
- Homebrew 3.4.9
- Miniconda 4.11.0
- NPM 8.5.5
- NuGet 5.9.0.7134
- Pip 20.3.4 (python 2.7)
- Pip 21.3.1 (python 3.9)
- Pipx 0.16.4
- Pip 22.0.4 (python 3.9)
- Pipx 1.0.0
- RubyGems 3.2.33
- Vcpkg 2021 (build from master \<50fd3d995>)
- Yarn 1.22.17
- Vcpkg 2022 (build from master \<c8a56fdc1>)
- Yarn 1.22.18
#### Environment variables
| Name | Value |
@@ -57,158 +58,171 @@
### Project Management
- Apache Ant(TM) 1.10.12
- Apache Maven 3.8.4
- Gradle 7.3.2
- Sbt 1.5.7
- Apache Maven 3.8.5
- Gradle 7.4.2
- Sbt 1.6.2
### Utilities
- 7-Zip 17.04
- aria2 1.36.0
- azcopy 10.13.0
- bazel 4.2.2
- azcopy 10.14.1
- bazel 5.1.1
- bazelisk 1.11.0
- bsdtar 3.3.2 - available by 'tar' alias
- Curl 7.80.0
- Git LFS: 3.0.2
- Git: 2.34.1
- GitHub CLI: 2.3.0
- Curl 7.83.0
- Git 2.35.1
- Git LFS: 3.1.4
- GitHub CLI: 2.9.0
- GNU Tar 1.34 - available by 'gtar' alias
- GNU Wget 1.21.2
- gpg (GnuPG) 2.3.3
- helm v3.7.2+g663a896
- GNU Wget 1.21.3
- gpg (GnuPG) 2.3.6
- helm v3.8.2+g6e3701e
- Hub CLI: 2.14.2
- jq 1.6
- mongo v5.0.4
- mongod v5.0.4
- Newman 5.3.0
- OpenSSL 1.1.1m 14 Dec 2021 `(/usr/local/opt/openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1m)`
- Packer 1.7.8
- PostgreSQL 14.1
- psql (PostgreSQL) 14.1
- mongo v5.0.7
- mongod v5.0.7
- Newman 5.3.2
- OpenSSL 1.1.1n 15 Mar 2022 `(/usr/local/opt/openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1n)`
- Packer 1.8.0
- PostgreSQL 14.2
- psql (PostgreSQL) 14.2
- Sox 14.4.2
- Subversion (SVN) 1.14.1
- Subversion (SVN) 1.14.2
- Switchaudio-osx 1.1.0
- zstd 1.5.0
- yq (https://github.com/mikefarah/yq/) version 4.25.1
- zstd 1.5.2
### Tools
- Aliyun CLI 3.0.102
- App Center CLI 2.10.6
- AWS CLI 2.4.6
- AWS SAM CLI 1.36.0
- AWS Session Manager CLI 1.2.279.0
- Azure CLI 2.31.0
- Bicep CLI 0.4.1124
- Aliyun CLI 3.0.117
- App Center CLI 2.10.10
- AWS CLI 2.6.1
- AWS SAM CLI 1.47.0
- AWS Session Manager CLI 1.2.312.0
- Azure CLI (azure-devops) 0.25.0
- Azure CLI 2.36.0
- Bicep CLI 0.5.6
- Cabal 3.6.2.0
- Cmake 3.22.1
- Fastlane 2.199.0
- GHC 9.2.1
- GHCup 0.1.17.4
- Jazzy 0.14.1
- Stack 2.7.3
- SwiftFormat 0.49.1
- Cmake 3.23.1
- Fastlane 2.205.2
- GHC 9.2.2
- GHCup v0.1.17.7
- Jazzy 0.14.2
- Stack 2.7.5
- SwiftFormat 0.49.7
- Swig 4.0.2
- Xcode Command Line Tools 13.2.0.0.1.1638488800
### Linters
- SwiftLint 0.45.1
- SwiftLint 0.47.1
- yamllint 1.26.3
### Browsers
- Safari 15.2 (16612.3.6.1.8)
- SafariDriver 15.2 (16612.3.6.1.8)
- Google Chrome 96.0.4664.110
- ChromeDriver 96.0.4664.45
- Microsoft Edge 96.0.1054.62
- MSEdgeDriver 96.0.1054.62
- Mozilla Firefox 95.0.1
- geckodriver 0.30.0
- Selenium server 4.1.0
- Safari 15.4 (16613.1.17.1.13)
- SafariDriver 15.4 (16613.1.17.1.13)
- Google Chrome 101.0.4951.41
- ChromeDriver 101.0.4951.41
- Microsoft Edge 101.0.1210.32
- MSEdgeDriver 101.0.1210.32
- Mozilla Firefox 99.0.1
- geckodriver 0.31.0
- Selenium server 4.1.4
#### Environment variables
| Name | Value |
| --------------- | --------------------------------------------- |
| CHROMEWEBDRIVER | /usr/local/Caskroom/chromedriver/96.0.4664.45 |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/opt/geckodriver/bin |
| Name | Value |
| --------------- | ---------------------------------------------- |
| CHROMEWEBDRIVER | /usr/local/Caskroom/chromedriver/101.0.4951.41 |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/opt/geckodriver/bin |
### Java
| Version | Vendor | Environment Variable |
| ------------------- | --------------- | -------------------- |
| 8.0.312+7 (default) | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.13+8 | Eclipse Temurin | JAVA_HOME_11_X64 |
| 17.0.1+12 | Eclipse Temurin | JAVA_HOME_17_X64 |
| 8.0.322+6 (default) | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.15+10 | Eclipse Temurin | JAVA_HOME_11_X64 |
| 17.0.3+7 | Eclipse Temurin | JAVA_HOME_17_X64 |
### GraalVM
| Version | Environment variables |
| --------- | --------------------- |
| CE 22.1.0 | GRAALVM_11_ROOT |
### Cached Tools
#### Ruby
- 2.4.10
- 2.5.9
- 2.6.9
- 2.7.5
- 3.0.3
- 2.6.10
- 2.7.6
- 3.0.4
- 3.1.2
#### Python
- 3.7.12
- 3.7.13
- 3.8.12
- 3.9.9
- 3.10.0
- 3.9.12
- 3.10.4
#### PyPy
- 2.7.18 [PyPy 7.3.6]
- 3.7.12 [PyPy 7.3.7]
- 3.8.12 [PyPy 7.3.7]
- 2.7.18 [PyPy 7.3.9]
- 3.7.13 [PyPy 7.3.9]
- 3.8.13 [PyPy 7.3.9]
- 3.9.12 [PyPy 7.3.9]
#### Node.js
- 12.22.8
- 14.18.2
- 16.13.1
- 12.22.12
- 14.19.1
- 16.15.0
#### Go
| Version | Architecture | Environment Variable |
| ------- | ------------ | -------------------- |
| 1.15.15 (Default) | x64 | GOROOT_1_15_X64 |
| 1.16.12 | x64 | GOROOT_1_16_X64 |
| 1.17.5 | x64 | GOROOT_1_17_X64 |
| 1.16.15 | x64 | GOROOT_1_16_X64 |
| 1.17.9 (Default) | x64 | GOROOT_1_17_X64 |
| 1.18.1 | x64 | GOROOT_1_18_X64 |
### Rust Tools
- Cargo 1.57.0
- Rust 1.57.0
- Rustdoc 1.57.0
- Cargo 1.60.0
- Rust 1.60.0
- Rustdoc 1.60.0
- Rustup 1.24.3
#### Packages
- Bindgen 0.59.2
- Cargo-audit 0.16.0
- Cargo-outdated v0.10.2
- Cbindgen 0.20.0
- Clippy 0.1.57
- Rustfmt 1.4.37-stable
- Cargo-outdated 0.11.1
- Cbindgen 0.23.0
- Clippy 0.1.60
- Rustfmt 1.4.38-stable
### PowerShell Tools
- PowerShell 7.2.1
- PowerShell 7.2.3
#### PowerShell Modules
| Module | Version |
| ---------------- | ------- |
| Az | 6.1.0 |
| Az | 7.5.0 |
| MarkdownPS | 1.9 |
| Pester | 5.3.1 |
| Pester | 5.3.3 |
| PSScriptAnalyzer | 1.20.0 |
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ----- | ------- | ------------------------------- | ------------- | ---------- |
| httpd | 2.4.51 | /usr/local/etc/httpd/httpd.conf | none | 80 |
| nginx | 1.21.4 | /usr/local/etc/nginx/nginx.conf | none | 80 |
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ----- | -------- | ------------------------------- | ------------- | ---------- |
| httpd | 2.4.53_2 | /usr/local/etc/httpd/httpd.conf | none | 80 |
| nginx | 1.21.6_1 | /usr/local/etc/nginx/nginx.conf | none | 80 |
### Xamarin
#### Visual Studio for Mac
- 8.10.16.2
- 8.10.22.11
#### Xamarin bundles
| symlink | Xamarin.Mono | Xamarin.iOS | Xamarin.Mac | Xamarin.Android |
| ----------------- | ------------ | ----------- | ----------- | --------------- |
| 6_12_15 | 6.12 | 15.8 | 8.8 | 12.2 |
| 6_12_14 | 6.12 | 15.8 | 8.8 | 12.0 |
| 6_12_13 | 6.12 | 15.6 | 8.6 | 12.0 |
| 6_12_12 (default) | 6.12 | 15.4 | 8.4 | 12.0 |
| 6_12_11 | 6.12 | 15.2 | 8.2 | 12.0 |
| 6_12_10 (default) | 6.12 | 15.0 | 7.14 | 11.3 |
| 6_12_10 | 6.12 | 15.0 | 7.14 | 11.3 |
| 6_12_9 | 6.12 | 14.20 | 7.14 | 11.3 |
| 6_12_8 | 6.12 | 14.16 | 7.10 | 11.2 |
| 6_12_7 | 6.12 | 14.14 | 7.8 | 11.2 |
@@ -224,15 +238,15 @@
- NUnit 3.6.1
### Xcode
| Version | Build | Path |
| -------------- | -------- | ------------------------------ |
| 13.2.1 | 13C100 | /Applications/Xcode_13.2.1.app |
| 13.2 | 13C90 | /Applications/Xcode_13.2.app |
| 13.1 (default) | 13A1030d | /Applications/Xcode_13.1.app |
| 13.0 | 13A233 | /Applications/Xcode_13.0.app |
| 12.5.1 | 12E507 | /Applications/Xcode_12.5.1.app |
| 12.4 | 12D4e | /Applications/Xcode_12.4.app |
| 11.7 | 11E801a | /Applications/Xcode_11.7.app |
| Version | Build | Path |
| ---------------- | -------- | ------------------------------ |
| 13.2.1 (default) | 13C100 | /Applications/Xcode_13.2.1.app |
| 13.2 | 13C90 | /Applications/Xcode_13.2.app |
| 13.1 | 13A1030d | /Applications/Xcode_13.1.app |
| 13.0 | 13A233 | /Applications/Xcode_13.0.app |
| 12.5.1 | 12E507 | /Applications/Xcode_12.5.1.app |
| 12.4 | 12D4e | /Applications/Xcode_12.4.app |
| 11.7 | 11E801a | /Applications/Xcode_11.7.app |
#### Xcode Support Tools
- xcpretty 0.3.0
@@ -307,10 +321,10 @@
| Package Name | Version |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Android Command Line Tools | 4.0 |
| Android Emulator | 31.1.4 |
| Android Emulator | 31.2.10 |
| 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 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 Platform-Tools | 31.0.3 |
| Android SDK Platform-Tools | 33.0.1 |
| Android Support Repository | 47.0.0 |
| CMake | 3.10.2<br>3.18.1 |
| Google Play services | 49 |
@@ -328,7 +342,10 @@
| ANDROID_SDK_ROOT | /Users/runner/Library/Android/sdk |
### Miscellaneous
- Zlib 1.2.11
- libXext 1.3.4
- libXft 2.3.4
- Tcl/Tk 8.6.12
- Zlib 1.2.12
+297
View File
@@ -0,0 +1,297 @@
| Announcements |
|-|
| [[macOS] Xcode versions 13.2 & 13.3 will be removed, 13.3.1 will be set as the default one on May, 16](https://github.com/actions/virtual-environments/issues/5463) |
| [macOS 12 (Monterey) is available as a public beta in GitHub Actions](https://github.com/actions/virtual-environments/issues/5446) |
***
# macOS 12.3 info
- System Version: macOS 12.3.1 (21E258)
- Kernel Version: Darwin 21.4.0
- Image Version: 20220429.1
## Installed Software
### Language and Runtime
- .NET SDK 3.1.101 3.1.201 3.1.302 3.1.418 5.0.102 5.0.202 5.0.302 5.0.407
- Bash 3.2.57(1)-release
- Clang/LLVM 13.0.1 is available on `'$(brew --prefix llvm)/bin/clang'`
- Clang/LLVM 13.1.6 is default
- gcc-11 (Homebrew GCC 11.3.0) 11.3.0 - available by `gcc-11` alias
- GNU Fortran (Homebrew GCC 11.3.0) 11.3.0 - available by `gfortran-11` alias
- Go 1.17.9
- julia 1.7.2
- Kotlin 1.6.21-release-334
- MSBuild 16.10.1.17201 (from /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll)
- Node.js v16.15.0
- NVM 0.39.1
- NVM - Cached node versions: v12.22.12 v14.19.1 v16.15.0
- Perl 5.34.0
- PHP 8.1.5
- Python 2.7.18
- Python 3.9.12
- R 4.2.0
- Ruby 3.0.4p208
### Package Management
- Bundler version 2.3.12
- Carthage 0.38.0
- CocoaPods 1.11.3
- Composer 2.3.5
- Homebrew 3.4.9
- NPM 8.5.5
- NuGet 5.9.0.7134
- Pip 20.3.4 (python 2.7)
- Pip 22.0.4 (python 3.9)
- Pipx 1.0.0
- RubyGems 3.2.33
- Vcpkg 2022 (build from master \<c8a56fdc1>)
- Yarn 1.22.18
### Project Management
- Apache Ant(TM) 1.10.12
- Apache Maven 3.8.5
- Gradle 7.4.2
- Sbt 1.6.2
### Utilities
- 7-Zip 17.04
- aria2 1.36.0
- azcopy 10.14.1
- bazel 5.1.1
- bazelisk 1.11.0
- bsdtar 3.5.1 - available by 'tar' alias
- Curl 7.83.0
- Git 2.35.1
- Git LFS: 3.1.4
- GitHub CLI: 2.9.0
- GNU Tar 1.34 - available by 'gtar' alias
- GNU Wget 1.21.3
- gpg (GnuPG) 2.3.6
- Hub CLI: 2.14.2
- jq 1.6
- mongo v5.0.7
- mongod v5.0.7
- OpenSSL 1.1.1n 15 Mar 2022 `(/usr/local/opt/openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1n)`
- Packer 1.8.0
- PostgreSQL 14.2
- psql (PostgreSQL) 14.2
- Sox 14.4.2
- Subversion (SVN) 1.14.2
- Switchaudio-osx 1.1.0
- yq (https://github.com/mikefarah/yq/) version 4.25.1
- zstd 1.5.2
### Tools
- App Center CLI command
- AWS CLI 2.6.1
- AWS SAM CLI 1.47.0
- AWS Session Manager CLI 1.2.312.0
- Azure CLI (azure-devops) 0.25.0
- Azure CLI 2.36.0
- Bicep CLI 0.5.6
- Cabal 3.6.2.0
- Cmake 3.23.1
- Fastlane 2.205.2
- GHC 9.2.2
- GHCup v0.1.17.7
- Jazzy 0.14.2
- Stack 2.7.5
- Swig 4.0.2
- Xcode Command Line Tools 13.3.1.0.1.1648687083
### Linters
- SwiftLint 0.47.1
- yamllint 1.26.3
### Browsers
- Safari 15.4 (17613.1.17.1.13)
- SafariDriver 15.4 (17613.1.17.1.13)
- Google Chrome 101.0.4951.41
- ChromeDriver 101.0.4951.41
- Microsoft Edge 101.0.1210.32
- MSEdgeDriver 101.0.1210.32
- Mozilla Firefox 99.0.1
- geckodriver 0.31.0
- Selenium server 4.1.4
#### Environment variables
| Name | Value |
| --------------- | ---------------------------------------------- |
| CHROMEWEBDRIVER | /usr/local/Caskroom/chromedriver/101.0.4951.41 |
| EDGEWEBDRIVER | /usr/local/share/edge_driver |
| GECKOWEBDRIVER | /usr/local/opt/geckodriver/bin |
### Java
| Version | Vendor | Environment Variable |
| ------------------- | --------------- | -------------------- |
| 8.0.322+6 (default) | Eclipse Temurin | JAVA_HOME_8_X64 |
| 11.0.15+10 | Eclipse Temurin | JAVA_HOME_11_X64 |
| 17.0.3+7 | Eclipse Temurin | JAVA_HOME_17_X64 |
### GraalVM
| Version | Environment variables |
| --------- | --------------------- |
| CE 22.1.0 | GRAALVM_11_ROOT |
### Cached Tools
#### Ruby
- 2.7.6
- 3.0.4
- 3.1.2
#### Python
- 3.7.13
- 3.8.12
- 3.9.12
- 3.10.4
#### PyPy
- 2.7.18 [PyPy 7.3.9]
- 3.7.13 [PyPy 7.3.9]
- 3.8.13 [PyPy 7.3.9]
- 3.9.12 [PyPy 7.3.9]
#### Node.js
- 12.22.12
- 14.19.1
- 16.15.0
#### Go
| Version | Architecture | Environment Variable |
| ------- | ------------ | -------------------- |
| 1.16.15 | x64 | GOROOT_1_16_X64 |
| 1.17.9 (Default) | x64 | GOROOT_1_17_X64 |
| 1.18.1 | x64 | GOROOT_1_18_X64 |
### Rust Tools
- Cargo 1.60.0
- Rust 1.60.0
- Rustdoc 1.60.0
- Rustup 1.24.3
#### Packages
- Bindgen 0.59.2
- Cargo-audit 0.16.0
- Cargo-outdated 0.11.1
- Cbindgen 0.23.0
- Clippy 0.1.60
- Rustfmt 1.4.38-stable
### PowerShell Tools
- PowerShell 7.2.3
#### PowerShell Modules
| Module | Version |
| ---------------- | ------- |
| Az | 7.5.0 |
| MarkdownPS | 1.9 |
| Pester | 5.3.3 |
| PSScriptAnalyzer | 1.20.0 |
### Web Servers
| Name | Version | ConfigFile | ServiceStatus | ListenPort |
| ----- | -------- | ------------------------------- | ------------- | ---------- |
| httpd | 2.4.53_2 | /usr/local/etc/httpd/httpd.conf | none | 80 |
| nginx | 1.21.6_1 | /usr/local/etc/nginx/nginx.conf | none | 80 |
### Xamarin
#### Visual Studio for Mac
- 8.10.22.11
#### Xamarin bundles
| symlink | Xamarin.Mono | Xamarin.iOS | Xamarin.Mac | Xamarin.Android |
| ----------------- | ------------ | ----------- | ----------- | --------------- |
| 6_12_15 (default) | 6.12 | 15.8 | 8.8 | 12.2 |
| 6_12_14 | 6.12 | 15.8 | 8.8 | 12.0 |
| 6_12_13 | 6.12 | 15.6 | 8.6 | 12.0 |
| 6_12_12 | 6.12 | 15.4 | 8.4 | 12.0 |
| 6_12_11 | 6.12 | 15.2 | 8.2 | 12.0 |
| 6_12_10 | 6.12 | 15.0 | 7.14 | 11.3 |
#### Unit Test Framework
- NUnit 3.6.1
### Xcode
| Version | Build | Path |
| -------------- | -------- | ------------------------------ |
| 13.3.1 | 13E500a | /Applications/Xcode_13.3.1.app |
| 13.3 (default) | 13E113 | /Applications/Xcode_13.3.app |
| 13.2.1 | 13C100 | /Applications/Xcode_13.2.1.app |
| 13.2 | 13C90 | /Applications/Xcode_13.2.app |
| 13.1 | 13A1030d | /Applications/Xcode_13.1.app |
#### Xcode Support Tools
- xcpretty 0.3.0
- xcversion 2.8.0
#### Installed SDKs
| SDK | SDK Name | Xcode Version |
| ----------------------- | -------------------- | ------------- |
| macOS 12.0 | macosx12.0 | 13.1 |
| macOS 12.1 | macosx12.1 | 13.2, 13.2.1 |
| macOS 12.3 | macosx12.3 | 13.3, 13.3.1 |
| iOS 15.0 | iphoneos15.0 | 13.1 |
| iOS 15.2 | iphoneos15.2 | 13.2, 13.2.1 |
| iOS 15.4 | iphoneos15.4 | 13.3, 13.3.1 |
| Simulator - iOS 15.0 | iphonesimulator15.0 | 13.1 |
| Simulator - iOS 15.2 | iphonesimulator15.2 | 13.2, 13.2.1 |
| Simulator - iOS 15.4 | iphonesimulator15.4 | 13.3, 13.3.1 |
| tvOS 15.0 | appletvos15.0 | 13.1 |
| tvOS 15.2 | appletvos15.2 | 13.2, 13.2.1 |
| tvOS 15.4 | appletvos15.4 | 13.3, 13.3.1 |
| Simulator - tvOS 15.0 | appletvsimulator15.0 | 13.1 |
| Simulator - tvOS 15.2 | appletvsimulator15.2 | 13.2, 13.2.1 |
| Simulator - tvOS 15.4 | appletvsimulator15.4 | 13.3, 13.3.1 |
| watchOS 8.0 | watchos8.0 | 13.1 |
| watchOS 8.3 | watchos8.3 | 13.2, 13.2.1 |
| watchOS 8.5 | watchos8.5 | 13.3, 13.3.1 |
| Simulator - watchOS 8.0 | watchsimulator8.0 | 13.1 |
| Simulator - watchOS 8.3 | watchsimulator8.3 | 13.2, 13.2.1 |
| Simulator - watchOS 8.5 | watchsimulator8.5 | 13.3, 13.3.1 |
| DriverKit 21.0.1 | driverkit21.0.1 | 13.1 |
| DriverKit 21.2 | driverkit21.2 | 13.2, 13.2.1 |
| DriverKit 21.4 | driverkit21.4 | 13.3, 13.3.1 |
#### Installed Simulators
| OS | Xcode Version | Simulators |
| ----------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| iOS 15.0 | 13.1 | iPod touch (7th generation)<br>iPhone 11<br>iPhone 11 Pro<br>iPhone 11 Pro Max<br>iPhone 12<br>iPhone 12 mini<br>iPhone 12 Pro<br>iPhone 12 Pro Max<br>iPhone 13<br>iPhone 13 mini<br>iPhone 13 Pro<br>iPhone 13 Pro Max<br>iPhone 8<br>iPhone 8 Plus<br>iPhone SE (2nd generation)<br>iPad (9th generation)<br>iPad Air (4th generation)<br>iPad mini (6th generation)<br>iPad Pro (11-inch) (3rd generation)<br>iPad Pro (12.9-inch) (5th generation)<br>iPad Pro (9.7-inch) |
| iOS 15.2 | 13.2<br>13.2.1 | iPod touch (7th generation)<br>iPhone 11<br>iPhone 11 Pro<br>iPhone 11 Pro Max<br>iPhone 12<br>iPhone 12 mini<br>iPhone 12 Pro<br>iPhone 12 Pro Max<br>iPhone 13<br>iPhone 13 mini<br>iPhone 13 Pro<br>iPhone 13 Pro Max<br>iPhone 8<br>iPhone 8 Plus<br>iPhone SE (2nd generation)<br>iPad (9th generation)<br>iPad Air (4th generation)<br>iPad mini (6th generation)<br>iPad Pro (11-inch) (3rd generation)<br>iPad Pro (12.9-inch) (5th generation)<br>iPad Pro (9.7-inch) |
| iOS 15.4 | 13.3<br>13.3.1 | iPod touch (7th generation)<br>iPhone 11<br>iPhone 11 Pro<br>iPhone 11 Pro Max<br>iPhone 12<br>iPhone 12 mini<br>iPhone 12 Pro<br>iPhone 12 Pro Max<br>iPhone 13<br>iPhone 13 mini<br>iPhone 13 Pro<br>iPhone 13 Pro Max<br>iPhone 8<br>iPhone 8 Plus<br>iPhone SE (2nd generation)<br>iPhone SE (3rd generation)<br>iPad (9th generation)<br>iPad Air (4th generation)<br>iPad Air (5th generation)<br>iPad mini (6th generation)<br>iPad Pro (11-inch) (3rd generation)<br>iPad Pro (12.9-inch) (5th generation)<br>iPad Pro (9.7-inch) |
| tvOS 15.0 | 13.1 | Apple TV<br>Apple TV 4K (2nd generation)<br>Apple TV 4K (at 1080p) (2nd generation) |
| tvOS 15.2 | 13.2<br>13.2.1 | Apple TV<br>Apple TV 4K (2nd generation)<br>Apple TV 4K (at 1080p) (2nd generation) |
| tvOS 15.4 | 13.3<br>13.3.1 | Apple TV<br>Apple TV 4K (2nd generation)<br>Apple TV 4K (at 1080p) (2nd generation) |
| watchOS 8.0 | 13.1 | Apple Watch Series 5 - 40mm<br>Apple Watch Series 5 - 44mm<br>Apple Watch Series 6 - 40mm<br>Apple Watch Series 6 - 44mm<br>Apple Watch Series 7 - 41mm<br>Apple Watch Series 7 - 45mm |
| watchOS 8.3 | 13.2<br>13.2.1 | Apple Watch Series 5 - 40mm<br>Apple Watch Series 5 - 44mm<br>Apple Watch Series 6 - 40mm<br>Apple Watch Series 6 - 44mm<br>Apple Watch Series 7 - 41mm<br>Apple Watch Series 7 - 45mm |
| watchOS 8.5 | 13.3<br>13.3.1 | Apple Watch Series 5 - 40mm<br>Apple Watch Series 5 - 44mm<br>Apple Watch Series 6 - 40mm<br>Apple Watch Series 6 - 44mm<br>Apple Watch Series 7 - 41mm<br>Apple Watch Series 7 - 45mm |
### Android
| Package Name | Version |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Android Command Line Tools | 4.0 |
| Android Emulator | 31.2.10 |
| 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 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 Platform-Tools | 33.0.1 |
| Android Support Repository | 47.0.0 |
| CMake | 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 | /Users/runner/Library/Android/sdk |
| ANDROID_NDK_HOME | /Users/runner/Library/Android/sdk/ndk-bundle -> /Users/runner/Library/Android/sdk/ndk/21.4.7075529 |
| ANDROID_NDK_LATEST_HOME | /Users/runner/Library/Android/sdk/ndk/23.1.7779620 |
| ANDROID_NDK_ROOT | /Users/runner/Library/Android/sdk/ndk-bundle -> /Users/runner/Library/Android/sdk/ndk/21.4.7075529 |
| ANDROID_SDK_ROOT | /Users/runner/Library/Android/sdk |
### Miscellaneous
- libXext 1.3.4
- libXft 2.3.4
- Tcl/Tk 8.6.12
- Zlib 1.2.12
@@ -4,17 +4,8 @@ OLD_PASSWD="$2"
NEW_PASSWD="$3"
UPDATE_LOGIN_KEYCHAIN="${4:-true}"
export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/bin:/sbin
macosver="$(sw_vers | grep ProductVersion | awk {'print $2'})"
if [[ $macosver =~ 10.13.* ]]; then
sudo /usr/bin/dscl . -passwd /Users/$USERNAME "$NEW_PASSWD"
else
sudo /usr/sbin/sysadminctl -resetPasswordFor $USERNAME -newPassword "$NEW_PASSWD" -adminUser $USERNAME -adminPassword "$OLD_PASSWD"
fi
sudo /usr/bin/python /Users/$USERNAME/bootstrap/kcpassword.py "$NEW_PASSWD"
sudo /usr/sbin/sysadminctl -resetPasswordFor $USERNAME -newPassword "$NEW_PASSWD" -adminUser $USERNAME -adminPassword "$OLD_PASSWD"
sudo /usr/bin/python3 /Users/$USERNAME/bootstrap/kcpassword.py "$NEW_PASSWD"
sudo /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser "$USERNAME"
if [[ $UPDATE_LOGIN_KEYCHAIN == "true" ]]; then
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Port of Gavin Brock's Perl kcpassword generator to Python, by Tom Taylor
# <tom@tomtaylor.co.uk>.
@@ -9,7 +9,7 @@
import sys
import os
def kcpassword(passwd):
def encode_data(passwd):
# The magic 11 bytes - these are just repeated
# 0x7D 0x89 0x52 0x23 0xD2 0xBC 0xDD 0xEA 0xA3 0xB9 0x1F
key = [125,137,82,35,210,188,221,234,163,185,31]
@@ -18,7 +18,9 @@ def kcpassword(passwd):
passwd = [ord(x) for x in list(passwd)]
# pad passwd length out to an even multiple of key length
r = len(passwd) % key_len
if (r > 0):
if len(passwd) == 11:
passwd += [0]
elif (r > 0):
passwd = passwd + [0] * (key_len - r)
for n in range(0, len(passwd), len(key)):
@@ -27,14 +29,14 @@ def kcpassword(passwd):
passwd[j] = passwd[j] ^ key[ki]
ki += 1
passwd = [chr(x) for x in passwd]
return "".join(passwd)
return bytearray(passwd)
if __name__ == "__main__":
passwd = kcpassword(sys.argv[1])
runner_pwd_encoded = encode_data(sys.argv[1])
fd = os.open('/etc/kcpassword', os.O_WRONLY | os.O_CREAT, 0o600)
file = os.fdopen(fd, 'w')
file.write(passwd)
file = os.fdopen(fd, 'wb')
file.truncate(0)
file.write(runner_pwd_encoded)
file.close()
"""
@@ -0,0 +1,62 @@
#!/bin/bash -e -o pipefail
: <<-LICENSE_BLOCK
setAutoLogin (20210911) - Copyright (c) 2021 Joel Bruner (https://github.com/brunerd)
Licensed under the MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
LICENSE_BLOCK
USERNAME="${1}"
PW="${2}"
function kcpasswordEncode {
#ascii string
local thisString="${1}"
local i
#macOS cipher hex ascii representation array
local cipherHex_array=( 7D 89 52 23 D2 BC DD EA A3 B9 1F )
#converted to hex representation with spaces
local thisStringHex_array=( $(echo -n "${thisString}" | xxd -p -u | sed 's/../& /g') )
#get padding by subtraction if under 11
local r=$(( ${#thisStringHex_array[@]} % 11 ))
local padding=0
if [ ${#thisStringHex_array[@]} -eq 11 ]; then
local padding=1
elif [ $r -gt 0 ]; then
local padding=$(( 11 - $r ))
fi
#cycle through each element of the array + padding
for ((i=0; i < $(( ${#thisStringHex_array[@]} + ${padding})); i++)); do
#use modulus to loop through the cipher array elements
local charHex_cipher=${cipherHex_array[$(( $i % 11 ))]}
#get the current hex representation element
local charHex=${thisStringHex_array[$i]}
#use $(( shell Aritmethic )) to ^ XOR the two 0x## values (extra padding is 0x00)
#take decimal value and printf convert to two char hex value
#use xxd to convert hex to actual value and append to the encodedString variable
local encodedString+=$(printf "%02X" "$(( 0x${charHex_cipher} ^ 0x${charHex:-00} ))")
done
#return the string without a newline
echo -n "${encodedString}"
}
#encode password and write file
kcpasswordEncode "${PW}" | xxd -r -p > /etc/kcpassword
#ensure ownership and permissions (600)
chown root:wheel /etc/kcpassword
chmod u=rw,go= /etc/kcpassword
#turn on auto login
/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser -string "${USERNAME}"
/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUserScreenLocked -bool false
echo "Auto login enabled for '${USERNAME}'"
@@ -5,7 +5,7 @@
echo "Enabling automatic GUI login for the '$USERNAME' user.."
python $HOME/bootstrap/kcpassword.py "$PASSWORD"
python3 $HOME/bootstrap/kcpassword.py "$PASSWORD"
/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser "$USERNAME"
@@ -4,7 +4,7 @@
tee -a /usr/local/bin/change_hostname.sh > /dev/null <<\EOF
#!/bin/bash -e -o pipefail
name="Mac-$(python -c 'from time import time; print int(round(time() * 1000))')"
name="Mac-$(python3 -c 'from time import time; print(int(round(time() * 1000)))')"
scutil --set HostName "${name}.local"
scutil --set LocalHostName $name
scutil --set ComputerName "${name}.local"
@@ -12,6 +12,11 @@ sudo rm -f /var/vm/sleepimage
# Disable App Nap System Wide
defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
# Disable Keyboard Setup Assistant window
if is_Veertu; then
sudo defaults write /Library/Preferences/com.apple.keyboardtype "keyboardtype" -dict-add "3-7582-0" -int 40
fi
# Change screen resolution to the maximum supported for 4Mb video memory
if [ -d "/Library/Application Support/VMware Tools" ]; then
sudo "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1176 885
@@ -30,16 +35,68 @@ defaults write com.apple.VoiceOver4/default SCREnableAppleScript -bool YES
# Rotate the certificate before expiration to ensure your apps are installed and signed with an active certificate.
# Confirm that the correct intermediate certificate is installed by verifying the expiration date is set to 2030.
# sudo security delete-certificate -Z FF6797793A3CD798DC5B2ABEF56F73EDC9F83A64 /Library/Keychains/System.keychain
curl https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer --output $HOME/AppleWWDRCAG3.cer --silent
# Big Sur requires user interaction to add a cert https://developer.apple.com/forums/thread/671582, we need to use a workaround with SecItemAdd swift method
if is_Catalina; then
sudo security add-trusted-cert -d -r unspecified -k /Library/Keychains/System.keychain $HOME/AppleWWDRCAG3.cer
else
swiftc $HOME/image-generation/add-certificate.swift
sudo ./add-certificate $HOME/AppleWWDRCAG3.cer
rm add-certificate
if ! is_Catalina; then
swiftc "${HOME}/image-generation/add-certificate.swift"
fi
certs=(
AppleWWDRCAG3.cer
DeveloperIDG2CA.cer
)
for cert in ${certs[@]}; do
echo "Adding ${cert} certificate"
cert_path="${HOME}/${cert}"
curl "https://www.apple.com/certificateauthority/${cert}" --output ${cert_path} --silent
if is_Catalina; then
sudo security add-trusted-cert -d -r unspecified -k /Library/Keychains/System.keychain ${cert_path}
else
sudo ./add-certificate ${cert_path}
fi
rm ${cert_path}
done
rm -f ./add-certificate
# enable-automationmode-without-authentication
if is_Monterey; then
retry=10
while [ $retry -gt 0 ]; do
{
osascript <<EOF
tell application "Terminal"
activate
do script "automationmodetool enable-automationmode-without-authentication"
delay 2
tell application "System Events"
keystroke "${PASSWORD}"
keystroke return
end tell
end tell
delay 5
EOF
} && break
retry=$((retry-1))
if [ $retry -eq 0 ]; then
echo "No retry attempts left"
exit 1
fi
sleep 10
done
term_service=$(launchctl list | grep -i terminal | cut -f3)
echo "Close terminal windows: gui/501/${term_service}"
launchctl bootout gui/501/${term_service} && sleep 5
# test enable-automationmode-without-authentication
if [[ ! "$(automationmodetool)" =~ "DOES NOT REQUIRE" ]]; then
echo "Failed to enable enable-automationmode-without-authentication option"
exit 1
fi
fi
rm $HOME/AppleWWDRCAG3.cer
# Create symlink for tests running
if [ ! -d "/usr/local/bin" ];then
@@ -11,11 +11,16 @@ systemValuesArray=(
"'kTCCServiceSystemPolicyAllFiles','/usr/local/opt/runner/runprovisioner.sh',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
"'kTCCServiceAccessibility','com.apple.dt.Xcode-Helper',0,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,NULL,1551941368"
"'kTCCServiceSystemPolicyAllFiles','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
"'kTCCServiceAccessibility','/usr/libexec/sshd-keygen-wrapper',1,2,0,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,NULL,'UNUSED',NULL,0,1591112564"
"'kTCCServiceSystemPolicyAllFiles','/usr/libexec/sshd-keygen-wrapper',1,0,4,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,0,'UNUSED',NULL,0,1639660695"
"'kTCCServiceAccessibility','/usr/libexec/sshd-keygen-wrapper',1,2,4,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,0,'UNUSED',NULL,0,1644564233"
"'kTCCServiceAccessibility','com.apple.Terminal',0,2,0,1,X'fade0c000000003000000001000000060000000200000012636f6d2e6170706c652e5465726d696e616c000000000003',NULL,NULL,'UNUSED',NULL,0,1591180502"
"'kTCCServiceAccessibility','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
"'kTCCServiceMicrophone','/usr/local/opt/runner/runprovisioner.sh',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,NULL,1576661342"
"'kTCCServiceScreenCapture','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1599831148"
"'kTCCServiceAccessibility','/Library/Application Support/Veertu/Anka/addons/ankarund',1,2,4,1,X'fade0c00000000ac0000000100000006000000020000001e636f6d2e7665657274752e616e6b612e6164646f6e732e616e6b6172756e0000000000060000000f000000060000000e000000010000000a2a864886f76364060206000000000000000000060000000e000000000000000a2a864886f7636406010d0000000000000000000b000000000000000a7375626a6563742e4f550000000000010000000a545439464157503656340000',NULL,0,'UNUSED',NULL,0,1644565949"
# Allow Full Disk Access for "Microsoft Defender for macOS" to bypass installation on-flight
"'kTCCServiceSystemPolicyAllFiles','com.microsoft.wdav',0,2,4,1,NULL,NULL,NULL,'UNUSED',NULL,0,1643970979"
"'kTCCServiceSystemPolicyAllFiles','com.microsoft.wdav.epsext',0,2,4,1,NULL,NULL,NULL,'UNUSED',NULL,0,1643970979"
)
for values in "${systemValuesArray[@]}"; do
configure_system_tccdb "$values"
@@ -28,7 +33,7 @@ userValuesArray=(
"'kTCCServiceUbiquity','com.apple.CloudDocs.MobileDocumentsFileProvider',0,2,0,1,X'fade0c000000004c0000000100000006000000020000002f636f6d2e6170706c652e436c6f7564446f63732e4d6f62696c65446f63756d656e747346696c6550726f76696465720000000003',NULL,NULL,'UNUSED',NULL,0,1570793290"
"'kTCCServiceAppleEvents','/usr/local/opt/runner/runprovisioner.sh',1,2,0,1,NULL,NULL,0,'com.apple.systemevents',NULL,NULL,1574241374"
"'kTCCServiceSystemPolicyAllFiles','/usr/local/opt/runner/runprovisioner.sh',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
"'kTCCServiceAppleEvents','/usr/libexec/sshd-keygen-wrapper',1,2,0,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,0,'com.apple.systemevents',X'fade0c000000003400000001000000060000000200000016636f6d2e6170706c652e73797374656d6576656e7473000000000003',NULL,1591112538"
"'kTCCServiceAppleEvents','/usr/libexec/sshd-keygen-wrapper',1,2,3,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,0,'com.apple.systemevents',X'fade0c000000003400000001000000060000000200000016636f6d2e6170706c652e73797374656d6576656e7473000000000003',NULL,1644564201"
"'kTCCServiceAppleEvents','com.apple.Terminal',0,2,0,1,X'fade0c000000003000000001000000060000000200000012636f6d2e6170706c652e5465726d696e616c000000000003',NULL,0,'com.apple.systemevents',X'fade0c000000003400000001000000060000000200000016636f6d2e6170706c652e73797374656d6576656e7473000000000003',NULL,1591180478"
"'kTCCServiceAppleEvents','/usr/libexec/sshd-keygen-wrapper',1,2,0,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,0,'com.apple.finder',X'fade0c000000002c00000001000000060000000200000010636f6d2e6170706c652e66696e64657200000003',NULL,1591357685"
"'kTCCServiceAppleEvents','/bin/bash',1,2,0,1,NULL,NULL,0,'com.apple.systemevents',NULL,NULL,1591532620"
@@ -38,6 +43,8 @@ userValuesArray=(
"'kTCCServiceUbiquity','/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/Versions/A/Support/photolibraryd',1,2,5,1,NULL,NULL,NULL,'UNUSED',NULL,0,1619461750"
"'kTCCServiceUbiquity','com.apple.PassKitCore',0,2,5,1,NULL,NULL,NULL,'UNUSED',NULL,0,1619516250"
"'kTCCServiceAppleEvents','/Library/Application Support/Veertu/Anka/addons/ankarund',1,2,3,1,X'fade0c00000000ac0000000100000006000000020000001e636f6d2e7665657274752e616e6b612e6164646f6e732e616e6b6172756e0000000000060000000f000000060000000e000000010000000a2a864886f76364060206000000000000000000060000000e000000000000000a2a864886f7636406010d0000000000000000000b000000000000000a7375626a6563742e4f550000000000010000000a545439464157503656340000',NULL,0,'com.apple.finder',X'fade0c000000002c00000001000000060000000200000010636f6d2e6170706c652e66696e64657200000003',NULL,1629294900"
"'kTCCServiceAppleEvents','/Library/Application Support/Veertu/Anka/addons/ankarund',1,2,3,1,X'fade0c00000000ac0000000100000006000000020000001e636f6d2e7665657274752e616e6b612e6164646f6e732e616e6b6172756e0000000000060000000f000000060000000e000000010000000a2a864886f76364060206000000000000000000060000000e000000000000000a2a864886f7636406010d0000000000000000000b000000000000000a7375626a6563742e4f550000000000010000000a545439464157503656340000',NULL,0,'com.apple.systemevents',X'fade0c000000003400000001000000060000000200000016636f6d2e6170706c652e73797374656d6576656e7473000000000003',NULL,164456761"
"'kTCCServiceAppleEvents','/usr/libexec/sshd-keygen-wrapper',1,2,3,1,X'fade0c000000003c0000000100000006000000020000001d636f6d2e6170706c652e737368642d6b657967656e2d7772617070657200000000000003',NULL,0,'com.apple.Terminal',X'fade0c000000003000000001000000060000000200000012636f6d2e6170706c652e5465726d696e616c000000000003',NULL,1650386089"
)
for values in "${userValuesArray[@]}"; do
configure_user_tccdb "$values"
@@ -3,7 +3,7 @@
source ~/utils/utils.sh
# Close all finder windows because they can interfere with UI tests
osascript -e 'tell application "Finder" to close windows'
close_finder_window
if is_Catalina; then
# Ignore available updates to prevent system pop-ups
@@ -19,5 +19,16 @@ done
# Invoke bazel to download bazel version via bazelisk
bazel
# Install Azure DevOps extension for Azure Command Line Interface
az extension add -n azure-devops
# Workaround https://github.com/actions/virtual-environments/issues/4931
# by making Tcl/Tk paths the same on macOS 10.15 and macOS 11
if is_BigSur; then
version=$(brew info tcl-tk --json | jq -r '.[].installed[].version')
ln -s /usr/local/Cellar/tcl-tk/$version/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
ln -s /usr/local/Cellar/tcl-tk/$version/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
fi
# Invoke tests for all basic tools
invoke_tests "BasicTools"
+1 -1
View File
@@ -11,7 +11,7 @@ source ~/utils/utils.sh
export DOTNET_CLI_TELEMETRY_OPTOUT=1
# Download installer from dot.net and keep it locally
DOTNET_INSTALL_SCRIPT="https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh"
DOTNET_INSTALL_SCRIPT="https://dot.net/v1/dotnet-install.sh"
curl -L -o "dotnet-install.sh" "$DOTNET_INSTALL_SCRIPT"
chmod +x ./dotnet-install.sh
+2
View File
@@ -4,6 +4,8 @@ source ~/utils/utils.sh
echo Installing Git...
brew_smart_install "git"
git config --global --add safe.directory "*"
echo Installing Git LFS
brew_smart_install "git-lfs"
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
echo Installing GraalVM...
brew install --cask graalvm/tap/graalvm-ce-java11
exportPath=$(echo /Library/Java/JavaVirtualMachines/graalvm-ce-java*/Contents/Home/bin)
echo "Setting up GRAALVM_11_ROOT variable to ${exportPath}"
echo "export GRAALVM_11_ROOT=${exportPath}" >> "${HOME}/.bashrc"
# GraalVM not being signed and notarized yet on macOS Catalina
if is_Catalina; then
quarantinePath=$(echo /Library/Java/JavaVirtualMachines/graalvm-ce-java*)
sudo xattr -rd com.apple.quarantine $quarantinePath
fi
# Install Native Image
$exportPath/gu install native-image
invoke_tests "Common" "GraalVM"
+3
View File
@@ -5,6 +5,9 @@ curl -sL https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
chmod +x $MINICONDA_INSTALLER
sudo $MINICONDA_INSTALLER -b -p /usr/local/miniconda
# Chmod with full permissions recursively to avoid permissions restrictions
sudo chmod -R 777 /usr/local/miniconda
sudo ln -s /usr/local/miniconda/bin/conda /usr/local/bin/conda
if [ -d "$HOME/.conda" ]; then
+2 -1
View File
@@ -5,7 +5,8 @@
###########################################################################
source ~/utils/utils.sh
VERSION=$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r '.tag_name')
[ -n "$API_PAT" ] && authString=(-H "Authorization: token ${API_PAT}")
VERSION=$(curl "${authString[@]}" -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r '.tag_name')
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION/install.sh | bash
if [ $? -eq 0 ]; then
@@ -0,0 +1,31 @@
#!/bin/bash -e -o pipefail
retry=10
while [ $retry -gt 0 ]; do
openwindows=$(osascript -e 'tell application "System Events" to get every window of (every process whose class of windows contains window)') && break
retry=$((retry-1))
if [ $retry -eq 0 ]; then
echo "No retry attempts left"
exit 1
fi
sleep 30
done
IFS=',' read -r -a windowslist <<< "$openwindows"
if [ -n "${openwindows}" ]; then
echo "Found opened window:"
fi
for window in "${windowslist[@]}"; do
if [[ $window =~ "NotificationCenter" ]]; then
echo "[Warning] $window"
else
echo " - ${window}" | xargs
scripterror=true
fi
done
if [ "${scripterror}" = true ]; then
exit 1
fi
+1 -2
View File
@@ -2,8 +2,7 @@
source ~/utils/utils.sh
echo Installing PowerShell...
psRelease=$(curl -s "https://api.github.com/repos/PowerShell/PowerShell/releases/latest")
psDownloadUrl=$(echo $psRelease | jq -r '.assets[].browser_download_url | select(contains("osx-x64.pkg"))' | head -n 1)
psDownloadUrl=$(get_github_package_download_url "PowerShell/PowerShell" "contains(\"osx-x64.pkg\")" "latest" "$API_PAT")
download_with_retries $psDownloadUrl "/tmp" "powershell.pkg"
# Work around the issue on macOS Big Sur 11.5 or higher for possible error message ("can't be opened because Apple cannot check it for malicious software") when installing the package
+5
View File
@@ -12,6 +12,11 @@ pip install --upgrade pip
echo "Install Python2 certificates"
bash -c "/Applications/Python\ 2.7/Install\ Certificates.command"
# Close Finder window
if is_Veertu; then
close_finder_window
fi
# Explicitly overwrite symlinks created by Python2 such as /usr/local/bin/2to3 since they conflict with symlinks from Python3
# https://github.com/actions/virtual-environments/issues/2322
echo "Brew Installing Python 3"
+2 -1
View File
@@ -10,7 +10,8 @@ echo "GEM_PATH=$GEM_PATH" >> "$HOME/.bashrc"
echo 'export PATH="$GEM_PATH:/usr/local/opt/ruby@'${DEFAULT_RUBY_VERSION}'/bin:$PATH"' >> "$HOME/.bashrc"
echo "Install Ruby from toolset..."
PACKAGE_TAR_NAMES=$(curl -s "https://api.github.com/repos/ruby/ruby-builder/releases/latest" | jq -r '.assets[].name')
[ -n "$API_PAT" ] && authString=(-H "Authorization: token ${API_PAT}")
PACKAGE_TAR_NAMES=$(curl "${authString[@]}" -s "https://api.github.com/repos/ruby/ruby-builder/releases/latest" | jq -r '.assets[].name')
TOOLSET_VERSIONS=$(get_toolset_value '.toolcache[] | select(.name | contains("Ruby")) | .versions[]')
RUBY_PATH="$AGENT_TOOLSDIRECTORY/Ruby"
+11 -12
View File
@@ -2,24 +2,23 @@
source ~/utils/utils.sh
echo "Get the latest Stack version..."
StackRelease=$(curl -s "https://api.github.com/repos/commercialhaskell/stack/releases/latest")
DownloadUrl=$(echo $StackRelease | jq -r '.assets[].browser_download_url | select(contains("osx-x86_64.tar.gz"))' | head -n 1)
StackVersion=$(echo $StackRelease | jq -r '.name' | cut -c2-)
StackArchive="/tmp/stack.tar.gz"
stackDownloadUrl=$(get_github_package_download_url "commercialhaskell/stack" "contains(\"osx-x86_64.tar.gz\")" "latest" "$API_PAT")
stackVersion=$(echo $stackDownloadUrl | cut -d "/" -f8 | tr -d "v")
stackArchive="/tmp/stack.tar.gz"
echo "Download stack version $StackVersion..."
download_with_retries $DownloadUrl "/tmp" "stack.tar.gz"
echo "Download stack version $stackVersion..."
download_with_retries $stackDownloadUrl "/tmp" "stack.tar.gz"
StackToolcachePath="$AGENT_TOOLSDIRECTORY/stack/$StackVersion"
DestinationPath="$StackToolcachePath/x64"
stackToolcachePath="$AGENT_TOOLSDIRECTORY/stack/$stackVersion"
destinationPath="$stackToolcachePath/x64"
mkdir -p $DestinationPath
mkdir -p $destinationPath
echo "Unzip stack archive..."
tar -xzf $StackArchive -C $DestinationPath --strip 1
tar -xzf $stackArchive -C $destinationPath --strip 1
touch $StackToolcachePath/x64.complete
touch $stackToolcachePath/x64.complete
echo "export PATH="\$PATH":$DestinationPath" >> "$HOME/.bashrc"
echo "export PATH="\$PATH":$destinationPath" >> "$HOME/.bashrc"
invoke_tests "Common" "Stack"
+6 -4
View File
@@ -2,9 +2,11 @@
source ~/utils/utils.sh
echo "Install SwiftLint"
swiftlintUrl=$(curl -s "https://api.github.com/repos/realm/SwiftLint/releases/latest" | jq -r '.assets[].browser_download_url | select(contains("SwiftLint.pkg"))')
download_with_retries $swiftlintUrl "/tmp" "SwiftLint.pkg"
sudo installer -pkg /tmp/SwiftLint.pkg -target /
rm -rf /tmp/SwiftLint.pkg
swiftlintUrl=$(get_github_package_download_url "realm/SwiftLint" "contains(\"portable_swiftlint.zip\")" "latest" "$API_PAT")
download_with_retries $swiftlintUrl "/tmp" "portable_swiftlint.zip"
unzip -q "/tmp/portable_swiftlint.zip" -d /usr/local/bin
# Remove the LICENSE file that comes along with the binary and the downloaded archive
rm -rf "/usr/local/bin/LICENSE"
rm -rf "/tmp/portable_swiftlint.zip"
invoke_tests "Linters" "SwiftLint"
+35
View File
@@ -71,6 +71,14 @@ is_Less_Monterey() {
fi
}
is_Veertu() {
if [ -d "/Library/Application Support/Veertu" ]; then
true
else
false
fi
}
get_toolset_path() {
echo "$HOME/image-generation/toolset.json"
}
@@ -171,3 +179,30 @@ configure_user_tccdb () {
local sqlQuery="INSERT OR IGNORE INTO access VALUES($values);"
sqlite3 "$dbPath" "$sqlQuery"
}
get_github_package_download_url() {
local REPO_ORG=$1
local FILTER=$2
local VERSION=$3
local API_PAT=$4
local SEARCH_IN_COUNT="100"
[ -n "$API_PAT" ] && authString=(-H "Authorization: token ${API_PAT}")
json=$(curl "${authString[@]}" -s "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
if [[ "$VERSION" == "latest" ]]; then
tagName=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | egrep -v ".*-[a-z]" | tail -1)
else
tagName=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | egrep -v ".*-[a-z]" | egrep "\w*${VERSION}" | tail -1)
fi
downloadUrl=$(echo $json | jq -r ".[] | select(.tag_name==\"${tagName}\").assets[].browser_download_url | select(${FILTER})" | head -n 1)
echo $downloadUrl
}
# Close all finder windows because they can interfere with UI tests
close_finder_window() {
osascript -e 'tell application "Finder" to close windows'
}
@@ -266,8 +266,8 @@ function Get-CurlVersion {
}
function Get-GitVersion {
$gitVersion = Run-Command "git --version" | Take-Part -Part 2
return "Git: $gitVersion"
$gitVersion = Run-Command "git --version" | Take-Part -Part -1
return "Git $gitVersion"
}
function Get-GitLFSVersion {
@@ -422,6 +422,11 @@ function Get-AzureCLIVersion {
return "Azure CLI $azureCLIVersion"
}
function Get-AzureDevopsVersion {
$azdevopsVersion = (az version | ConvertFrom-Json).extensions.'azure-devops'
return "Azure CLI (azure-devops) $azdevopsVersion"
}
function Get-AWSCLIVersion {
$awsVersion = Run-Command "aws --version" | Take-Part -Part 0 | Take-Part -Delimiter "/" -Part 1
return "AWS CLI $awsVersion"
@@ -443,7 +448,7 @@ function Get-AliyunCLIVersion {
}
function Get-GHCupVersion {
$ghcUpVersion = Run-Command "ghcup --version" | Take-Part -Part 5
$ghcUpVersion = (Run-Command "ghcup --version" | Take-Part -Part 5).Replace('v','')
return "GHCup $ghcUpVersion"
}
@@ -532,6 +537,21 @@ function Get-LibXextVersion {
return "libXext $libXextVersion"
}
function Get-TclTkVersion {
$tcltkVersion = (brew info tcl-tk)[0] | Take-Part -Part 2
return "Tcl/Tk $tcltkVersion"
}
function Get-YqVersion {
$yqVersion = Run-Command "yq --version"
return "$yqVersion"
}
function Get-ImageMagickVersion {
$imagemagickVersion = Run-Command "magick --version" | Select-Object -First 1 | Take-Part -Part 1,2
return "$imagemagickVersion"
}
function Build-PackageManagementEnvironmentTable {
return @(
@{
@@ -549,3 +569,18 @@ function Build-PackageManagementEnvironmentTable {
}
}
}
function Get-GraalVMVersion {
$version = & "$env:GRAALVM_11_ROOT\java" --version | Select-String -Pattern "GraalVM" | Take-Part -Part 5,6
return $version
}
function Build-GraalVMTable {
$version = Get-GraalVMVersion
$envVariables = "GRAALVM_11_ROOT"
return [PSCustomObject] @{
"Version" = $version
"Environment variables" = $envVariables
}
}
@@ -48,14 +48,9 @@ $languageAndRuntimeList = @(
(Get-ClangLLVMVersion)
(Get-GccVersion)
(Get-FortranVersion)
(Get-RVersion)
)
if ($os.IsCatalina) {
$languageAndRuntimeList += @(
(Get-RVersion)
)
}
# To sort GCC and Gfortran correctly, we need to use natural sort https://gist.github.com/markwragg/e2a9dc05f3464103d6998298fb575d4e#file-sort-natural-ps1
$toNatural = { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
$markdown += New-MDList -Style Unordered -Lines ($languageAndRuntimeList | Sort-Object $toNatural)
@@ -127,7 +122,9 @@ $utilitiesList = @(
(Get-GnuTarVersion),
(Get-GPGVersion),
(Get-SwitchAudioOsxVersion),
(Get-SoxVersion)
(Get-SoxVersion),
(Get-YqVersion),
(Get-ImageMagickVersion)
)
if ($os.IsLessThanMonterey) {
@@ -160,6 +157,7 @@ $toolsList = @(
(Get-CmakeVersion),
(Get-AppCenterCLIVersion),
(Get-AzureCLIVersion),
(Get-AzureDevopsVersion),
(Get-AWSCLIVersion),
(Get-AWSSAMCLIVersion),
(Get-AWSSessionManagerCLIVersion)
@@ -178,15 +176,10 @@ $toolsList += @(
(Get-GHCupVersion),
(Get-GHCVersion),
(Get-CabalVersion),
(Get-StackVersion)
(Get-StackVersion),
(Get-SwiftFormatVersion)
)
if($os.IsLessThanMonterey) {
$toolsList += @(
(Get-SwiftFormatVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
# Linters
@@ -208,6 +201,10 @@ $markdown += New-MDHeader "Java" -Level 3
$markdown += Get-JavaVersions | New-MDTable
$markdown += New-MDNewLine
$markdown += New-MDHeader "GraalVM" -Level 3
$markdown += Build-GraalVMTable | New-MDTable
$markdown += New-MDNewLine
# Toolcache
$markdown += Build-ToolcacheSection
$markdown += New-MDNewLine
@@ -289,7 +286,8 @@ $markdown += New-MDHeader "Miscellaneous" -Level 3
$markdown += New-MDList -Style Unordered -Lines (@(
(Get-ZlibVersion),
(Get-LibXextVersion),
(Get-LibXftVersion)
(Get-LibXftVersion),
(Get-TclTkVersion)
) | Sort-Object
)
+22 -5
View File
@@ -11,6 +11,7 @@
"output_folder": null,
"vm_username": null,
"vm_password": null,
"github_api_pat": null,
"xcode_install_user": null,
"xcode_install_password": null,
"image_os": "macos1015"
@@ -30,7 +31,8 @@
"vm_name": "{{user `build_id`}}",
"ssh_username": "{{user `vm_username`}}",
"ssh_password": "{{user `vm_password`}}",
"CPUs": "10",
"CPUs": "5",
"cpu_cores": "5",
"RAM": "24576",
"NestedHV": "true",
"shutdown_timeout": "15m"
@@ -86,6 +88,15 @@
"source": "./toolsets/toolset-10.15.json",
"destination": "~/image-generation/toolset.json"
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"pause_before": "30s",
"scripts": [
"./provision/core/xcode-clt.sh",
"./provision/core/homebrew.sh"
]
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
@@ -127,8 +138,7 @@
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"pause_before": "30s",
"scripts": [
"./provision/core/xcode-clt.sh",
"./provision/core/homebrew.sh",
"./provision/core/open_windows_check.sh",
"./provision/core/powershell.sh",
"./provision/core/dotnet.sh",
"./provision/core/python.sh",
@@ -138,6 +148,9 @@
"./provision/core/rubygem.sh",
"./provision/core/git.sh",
"./provision/core/node.sh"
],
"environment_vars": [
"API_PAT={{user `github_api_pat`}}"
]
},
{
@@ -190,13 +203,17 @@
"./provision/core/xcode-postbuild.sh",
"./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
"./provision/core/bicep.sh",
"./provision/core/graalvm.sh"
],
"environment_vars": [
"API_PAT={{user `github_api_pat`}}"
]
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
"scripts": [
"scripts": [
"./provision/core/toolset.ps1",
"./provision/core/configure-toolset.ps1"
]
+21 -4
View File
@@ -11,6 +11,7 @@
"output_folder": null,
"vm_username": null,
"vm_password": null,
"github_api_pat": null,
"xcode_install_user": null,
"xcode_install_password": null,
"image_os": "macos11"
@@ -30,7 +31,8 @@
"vm_name": "{{user `build_id`}}",
"ssh_username": "{{user `vm_username`}}",
"ssh_password": "{{user `vm_password`}}",
"CPUs": "10",
"CPUs": "5",
"cpu_cores": "5",
"RAM": "24576",
"NestedHV": "true",
"shutdown_timeout": "15m"
@@ -91,10 +93,19 @@
"source": "./toolsets/toolset-11.json",
"destination": "~/image-generation/toolset.json"
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"scripts": [
"./provision/core/xcode-clt.sh",
"./provision/core/homebrew.sh"
]
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
"scripts": [
"./provision/core/xcode-clt.sh",
"./provision/configuration/add-network-interface-detection.sh",
"./provision/configuration/autologin.sh",
"./provision/configuration/disable-auto-updates.sh",
@@ -114,7 +125,6 @@
"scripts": [
"./provision/configuration/preimagedata.sh",
"./provision/configuration/configure-ssh.sh",
"./provision/core/xcode-clt.sh",
"./provision/configuration/configure-machine.sh"
],
"environment_vars": [
@@ -133,7 +143,7 @@
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"pause_before": "30s",
"scripts": [
"./provision/core/homebrew.sh",
"./provision/core/open_windows_check.sh",
"./provision/core/powershell.sh",
"./provision/core/dotnet.sh",
"./provision/core/python.sh",
@@ -143,6 +153,9 @@
"./provision/core/rubygem.sh",
"./provision/core/git.sh",
"./provision/core/node.sh"
],
"environment_vars": [
"API_PAT={{user `github_api_pat`}}"
]
},
{
@@ -193,7 +206,11 @@
"./provision/core/firefox.sh",
"./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
"./provision/core/bicep.sh",
"./provision/core/graalvm.sh"
],
"environment_vars": [
"API_PAT={{user `github_api_pat`}}"
]
},
{
+11 -4
View File
@@ -96,6 +96,13 @@ build {
destination = "image-generation/toolset.json"
source = "./toolsets/toolset-11.json"
}
provisioner "shell" {
scripts = [
"./provision/core/xcode-clt.sh",
"./provision/core/homebrew.sh"
]
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
}
provisioner "shell" {
scripts = [
"./provision/configuration/configure-tccdb-macos11.sh",
@@ -117,7 +124,6 @@ build {
scripts = [
"./provision/configuration/preimagedata.sh",
"./provision/configuration/configure-ssh.sh",
"./provision/core/xcode-clt.sh",
"./provision/configuration/configure-machine.sh"
]
environment_vars = [
@@ -134,7 +140,7 @@ build {
provisioner "shell" {
pause_before = "30s"
scripts = [
"./provision/core/homebrew.sh",
"./provision/core/open_windows_check.sh",
"./provision/core/powershell.sh",
"./provision/core/dotnet.sh",
"./provision/core/python.sh",
@@ -191,7 +197,8 @@ build {
"./provision/core/firefox.sh",
"./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
"./provision/core/bicep.sh",
"./provision/core/graalvm.sh"
]
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
}
@@ -205,7 +212,7 @@ build {
}
provisioner "shell" {
inline = [
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName UUID=${build.PackerRunUUID}",
"pwsh -File \"$HOME/image-generation/software-report/SoftwareReport.Generator.ps1\" -OutputDirectory \"$HOME/image-generation/output/software-report\" -ImageName ${var.build_id}",
"pwsh -File \"$HOME/image-generation/tests/RunAll-Tests.ps1\""
]
execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
+23 -6
View File
@@ -11,6 +11,7 @@
"output_folder": null,
"vm_username": null,
"vm_password": null,
"github_api_pat": null,
"xcode_install_user": null,
"xcode_install_password": null,
"image_os": "macos12"
@@ -30,7 +31,8 @@
"vm_name": "{{user `build_id`}}",
"ssh_username": "{{user `vm_username`}}",
"ssh_password": "{{user `vm_password`}}",
"CPUs": "10",
"CPUs": "5",
"cpu_cores": "5",
"RAM": "24576",
"NestedHV": "true",
"shutdown_timeout": "15m"
@@ -91,6 +93,14 @@
"source": "./toolsets/toolset-12.json",
"destination": "~/image-generation/toolset.json"
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"scripts": [
"./provision/core/xcode-clt.sh",
"./provision/core/homebrew.sh"
]
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
@@ -114,12 +124,12 @@
"scripts": [
"./provision/configuration/preimagedata.sh",
"./provision/configuration/configure-ssh.sh",
"./provision/core/xcode-clt.sh",
"./provision/configuration/configure-machine.sh"
],
"environment_vars": [
"IMAGE_VERSION={{user `build_id`}}",
"IMAGE_OS={{user `image_os`}}"
"IMAGE_OS={{user `image_os`}}",
"PASSWORD={{user `vm_password`}}"
]
},
{
@@ -133,7 +143,7 @@
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}",
"pause_before": "30s",
"scripts": [
"./provision/core/homebrew.sh",
"./provision/core/open_windows_check.sh",
"./provision/core/powershell.sh",
"./provision/core/dotnet.sh",
"./provision/core/python.sh",
@@ -143,6 +153,9 @@
"./provision/core/rubygem.sh",
"./provision/core/git.sh",
"./provision/core/node.sh"
],
"environment_vars": [
"API_PAT={{user `github_api_pat`}}"
]
},
{
@@ -192,13 +205,17 @@
"./provision/core/firefox.sh",
"./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
"./provision/core/bicep.sh",
"./provision/core/graalvm.sh"
],
"environment_vars": [
"API_PAT={{user `github_api_pat`}}"
]
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}",
"scripts": [
"scripts": [
"./provision/core/toolset.ps1",
"./provision/core/configure-toolset.ps1"
]

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