diff --git a/README.md b/README.md index 503240c52..1bc4ff854 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ This image adds a TeamCity agent suitable for Java and .NET development. - Check the docker images by running ```docker-compose up``` in the directories like [checks/windows-local](checks/windows-local) or [checks/linux-local](checks/linux-local). - Push all repo changes. +### To build custom TeamCity Agent, it is possible to leverage Dockerfiles we have provided +- Please refer to the documentation regarding [custom TeamCity Agent Images for more information](custom/README.md). + ### To build Docker images that were not provided in docker repositories, you could generate them by yourself - Ensure [Docker](https://www.docker.com/get-started) installed. diff --git a/configs/common.config b/configs/common.config index c4ec3eea5..c15b869ea 100644 --- a/configs/common.config +++ b/configs/common.config @@ -16,15 +16,6 @@ agentCommentHeader=This is an official [JetBrains TeamCity](https://www.jetbrain proxyUrl= powerShellComponentName=[PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - # Matches .NET Runtime 6.0.21 - https://dotnet.microsoft.com/en-us/download/dotnet/6.0 dotnetComponentVersion=6.0.413 -dotnetComponentName=.NET SDK v.${dotnetComponentVersion} - -# .NET 3.1.32 - https://dotnet.microsoft.com/en-us/download/dotnet/3.1 -dotnetComponentVersion_31=3.1.32 -dotnetComponentName_31=.NET Runtime v.${dotnetComponentVersion_31} - -# .NET 5.0.17 - https://dotnet.microsoft.com/en-us/download/dotnet/5.0 -dotnetComponentVersion_50=5.0.17 -dotnetComponentName_50=.NET Runtime v.${dotnetComponentVersion_50} \ No newline at end of file +dotnetComponentName=.NET SDK v.${dotnetComponentVersion} (LTS) diff --git a/configs/linux.config b/configs/linux.config index 3c1c7bfd2..158318a96 100644 --- a/configs/linux.config +++ b/configs/linux.config @@ -13,21 +13,9 @@ jdkServerLinuxComponentName=JDK Amazon Corretto x64 v.17.0.7.7.1 Checksum (MD5) feb7eab99c647a0b4347be9f0a3276de](https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -289,7 +281,7 @@ Installed components: - [JDK Amazon Corretto x64 v.17.0.7.7.1 Checksum (MD5) feb7eab99c647a0b4347be9f0a3276de](https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -325,9 +317,7 @@ Installed components: - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Mercurial x64 v.5.9.1](https://www.mercurial-scm.org/release/windows/mercurial-5.9.1-x64.msi) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) 424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -362,9 +352,7 @@ Installed components: - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Mercurial x64 v.5.9.1](https://www.mercurial-scm.org/release/windows/mercurial-5.9.1-x64.msi) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) 424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -402,9 +390,7 @@ Installed components: - [Docker v.5:20.10.12](https://github.com/docker/cli/releases/tag/v20.10.12) - [Docker Compose v.1.28.5](https://github.com/docker/compose/releases/tag/1.28.5) - [Containerd.io v1.4.12-1](https://ubuntu.pkgs.org/20.04/docker-ce-stable-amd64/containerd.io_1.4.12-1_amd64.deb.html) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 56c5e045844f5474a9a12b42e4a22c851985fac5690e227ce62b529d644c4faeaafdfe255de2f1e86a90c0c114e7de66ce4de1692fbf66357ac4d35341f933c3](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-linux-x64.tar.gz) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) 4390ba65e592c4f770b247f11228bbd2ed70aab30fbe6613c2bf7ec0c7c54d09b5a47ff160d4424dacc59661613fd4c9460d62f141a64def02a7228dd160f916](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-x64.tar.gz) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) f47eec03d2b6777e78e2a993306727fa6871cf7f6e295ed70f684745a9f9fc960f0068750007519733426db52afa10e0bcd1c58879019d5d8f1f5f295868e4f3](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-linux-x64.tar.gz) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) ee0a77d54e6d4917be7310ff0abb3bad5525bfb4beb1db0c215e65f64eb46511f5f12d6c7ff465a1d4ab38577e6a1950fde479ee94839c50e627020328a702de](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-x64.tar.gz) - Perforce Helix Core client (p4) [2022.2-2468771](https://www.perforce.com/products/helix-core) Container platform: linux @@ -442,9 +428,7 @@ Installed components: - [Docker v.5:20.10.12](https://github.com/docker/cli/releases/tag/v20.10.12) - [Docker Compose v.1.28.5](https://github.com/docker/compose/releases/tag/1.28.5) - [Containerd.io v1.4.12-1](https://ubuntu.pkgs.org/20.04/docker-ce-stable-amd64/containerd.io_1.4.12-1_amd64.deb.html) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 56c5e045844f5474a9a12b42e4a22c851985fac5690e227ce62b529d644c4faeaafdfe255de2f1e86a90c0c114e7de66ce4de1692fbf66357ac4d35341f933c3](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-linux-x64.tar.gz) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) 4390ba65e592c4f770b247f11228bbd2ed70aab30fbe6613c2bf7ec0c7c54d09b5a47ff160d4424dacc59661613fd4c9460d62f141a64def02a7228dd160f916](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-x64.tar.gz) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) f47eec03d2b6777e78e2a993306727fa6871cf7f6e295ed70f684745a9f9fc960f0068750007519733426db52afa10e0bcd1c58879019d5d8f1f5f295868e4f3](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-linux-x64.tar.gz) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) ee0a77d54e6d4917be7310ff0abb3bad5525bfb4beb1db0c215e65f64eb46511f5f12d6c7ff465a1d4ab38577e6a1950fde479ee94839c50e627020328a702de](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-x64.tar.gz) - Perforce Helix Core client (p4) [2022.2-2468771](https://www.perforce.com/products/helix-core) Container platform: linux @@ -482,9 +466,7 @@ Installed components: - [Docker v.5:20.10.12](https://github.com/docker/cli/releases/tag/v20.10.12) - [Containerd.io v1.4.12-1](https://ubuntu.pkgs.org/20.04/docker-ce-stable-amd64/containerd.io_1.4.12-1_amd64.deb.html) - [Docker Compose v.1.28.5](https://github.com/docker/compose/releases/tag/1.28.5) -- [.NET SDK v.6.0.413 arm64 Checksum (SHA512) 7f05a9774d79e694da5a6115d9916abf87a65e40bd6bdaa5dca1f705795436bc8e764242f7045207386a86732ef5519f60bdb516a3860e4860bca7ee91a21759](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-arm64.tar.gz) -- [.NET Runtime v.3.1.32 arm64 Checksum (SHA512) ff311df0db488f3b5cc03c7f6724f8442de7e60fa0a503ec8f536361ce7a357ad26d09d2499d68c50ebdfa751a5520bba4aaa77a38b191c892d5a018561ce422](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-linux-arm64.tar.gz) -- [.NET Runtime v.5.0.17 arm65 Checksum (SHA512) 99cb11871924d3abedcc9c8079c54bc0c550203c7cbe4e349ed70d4355f40e4620b68d90b797e6461d898c06bed6953580e2cd4ad01483e5de107ca5a3409610](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-linux-arm64.tar.gz) +- [.NET SDK v.6.0.413 (LTS) ARM64 Checksum (SHA512) 7f05a9774d79e694da5a6115d9916abf87a65e40bd6bdaa5dca1f705795436bc8e764242f7045207386a86732ef5519f60bdb516a3860e4860bca7ee91a21759](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-arm64.tar.gz) Container platform: linux @@ -521,9 +503,7 @@ Installed components: - [Docker v.5:20.10.12](https://github.com/docker/cli/releases/tag/v20.10.12) - [Containerd.io v1.4.12-1](https://ubuntu.pkgs.org/20.04/docker-ce-stable-amd64/containerd.io_1.4.12-1_amd64.deb.html) - [Docker Compose v.1.28.5](https://github.com/docker/compose/releases/tag/1.28.5) -- [.NET SDK v.6.0.413 arm64 Checksum (SHA512) 7f05a9774d79e694da5a6115d9916abf87a65e40bd6bdaa5dca1f705795436bc8e764242f7045207386a86732ef5519f60bdb516a3860e4860bca7ee91a21759](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-arm64.tar.gz) -- [.NET Runtime v.3.1.32 arm64 Checksum (SHA512) ff311df0db488f3b5cc03c7f6724f8442de7e60fa0a503ec8f536361ce7a357ad26d09d2499d68c50ebdfa751a5520bba4aaa77a38b191c892d5a018561ce422](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-linux-arm64.tar.gz) -- [.NET Runtime v.5.0.17 arm65 Checksum (SHA512) 99cb11871924d3abedcc9c8079c54bc0c550203c7cbe4e349ed70d4355f40e4620b68d90b797e6461d898c06bed6953580e2cd4ad01483e5de107ca5a3409610](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-linux-arm64.tar.gz) +- [.NET SDK v.6.0.413 (LTS) ARM64 Checksum (SHA512) 7f05a9774d79e694da5a6115d9916abf87a65e40bd6bdaa5dca1f705795436bc8e764242f7045207386a86732ef5519f60bdb516a3860e4860bca7ee91a21759](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-linux-arm64.tar.gz) Container platform: linux @@ -552,7 +532,7 @@ The docker image is not available and may be created manually. Installed components: -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) Container platform: windows @@ -584,7 +564,7 @@ Installed components: - [JDK Amazon Corretto x64 v.17.0.7.7.1 Checksum (MD5) feb7eab99c647a0b4347be9f0a3276de](https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -616,7 +596,7 @@ Installed components: - [JDK Amazon Corretto x64 v.17.0.7.7.1 Checksum (MD5) feb7eab99c647a0b4347be9f0a3276de](https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -649,9 +629,7 @@ Installed components: - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Mercurial x64 v.5.9.1](https://www.mercurial-scm.org/release/windows/mercurial-5.9.1-x64.msi) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) 424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -682,9 +660,7 @@ Installed components: - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Mercurial x64 v.5.9.1](https://www.mercurial-scm.org/release/windows/mercurial-5.9.1-x64.msi) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) 424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows @@ -716,9 +692,7 @@ Installed components: - [Git x64 v.2.42.0 Checksum (SHA256) b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1](https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip) - [PowerShell](https://github.com/PowerShell/PowerShell#get-powershell) - [Mercurial x64 v.5.9.1](https://www.mercurial-scm.org/release/windows/mercurial-5.9.1-x64.msi) -- [.NET Runtime v.3.1.32 x86 Checksum (SHA512) 72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b](https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip) -- [.NET Runtime v.5.0.17 x86 Checksum (SHA512) 424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782](https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip) -- [.NET SDK v.6.0.413 x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) +- [.NET SDK v.6.0.413 (LTS) x86 Checksum (SHA512) a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e](https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip) Container platform: windows diff --git a/context/generated/windows/Agent/windowsservercore/1803/Dockerfile b/context/generated/windows/Agent/windowsservercore/1803/Dockerfile index 2cc1d9bfd..52cfb7221 100644 --- a/context/generated/windows/Agent/windowsservercore/1803/Dockerfile +++ b/context/generated/windows/Agent/windowsservercore/1803/Dockerfile @@ -1,10 +1,6 @@ # Default arguments ARG dotnetWindowsComponent='https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip' -ARG dotnetWindowsComponent_31='https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip' -ARG dotnetWindowsComponent_50='https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip' ARG dotnetWindowsComponentSHA512='a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e' -ARG dotnetWindowsComponentSHA512_31='72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b' -ARG dotnetWindowsComponentSHA512_50='424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782' ARG gitWindowsComponent='https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip' ARG gitWindowsComponentSHA256='b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1' ARG jdkWindowsComponent='https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip' @@ -17,10 +13,6 @@ ARG windowsservercoreImage='mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsse # ARG windowsservercoreImage # ARG dotnetWindowsComponent # ARG dotnetWindowsComponentSHA512 -# ARG dotnetWindowsComponent_31 -# ARG dotnetWindowsComponentSHA512_31 -# ARG dotnetWindowsComponent_50 -# ARG dotnetWindowsComponentSHA512_50 # ARG jdkWindowsComponent # ARG jdkWindowsComponentMD5SUM # ARG gitWindowsComponent @@ -43,10 +35,6 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref ARG dotnetWindowsComponent ARG dotnetWindowsComponentSHA512 -ARG dotnetWindowsComponent_31 -ARG dotnetWindowsComponentSHA512_31 -ARG dotnetWindowsComponent_50 -ARG dotnetWindowsComponentSHA512_50 ARG jdkWindowsComponent ARG jdkWindowsComponentMD5SUM ARG gitWindowsComponent @@ -56,14 +44,8 @@ ARG mercurialWindowsComponent RUN [Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls' ; \ $code = Get-Content -Path "scripts/Web.cs" -Raw ; \ Add-Type -IgnoreWarnings -TypeDefinition "$code" -Language CSharp ; \ - $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip', $Env:dotnetWindowsComponent_31 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_31, 'dotnet_31.zip', $Env:dotnetWindowsComponent_50 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_50, 'dotnet_50.zip') ; \ + $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip') ; \ Remove-Item -Force -Recurse $Env:ProgramFiles\dotnet; \ -# .NET 3.1 - Expand-Archive dotnet_31.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_31.zip; \ -# .NET 5.0 - Expand-Archive dotnet_50.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_50.zip; \ # .NET 6.0 Expand-Archive dotnet.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ Remove-Item -Force dotnet.zip; \ diff --git a/context/generated/windows/Agent/windowsservercore/1809/Dockerfile b/context/generated/windows/Agent/windowsservercore/1809/Dockerfile index b71c1c2f6..76c95fe9e 100644 --- a/context/generated/windows/Agent/windowsservercore/1809/Dockerfile +++ b/context/generated/windows/Agent/windowsservercore/1809/Dockerfile @@ -1,10 +1,6 @@ # Default arguments ARG dotnetWindowsComponent='https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip' -ARG dotnetWindowsComponent_31='https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip' -ARG dotnetWindowsComponent_50='https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip' ARG dotnetWindowsComponentSHA512='a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e' -ARG dotnetWindowsComponentSHA512_31='72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b' -ARG dotnetWindowsComponentSHA512_50='424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782' ARG gitWindowsComponent='https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip' ARG gitWindowsComponentSHA256='b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1' ARG jdkWindowsComponent='https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip' @@ -17,10 +13,6 @@ ARG windowsservercoreImage='mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsse # ARG windowsservercoreImage # ARG dotnetWindowsComponent # ARG dotnetWindowsComponentSHA512 -# ARG dotnetWindowsComponent_31 -# ARG dotnetWindowsComponentSHA512_31 -# ARG dotnetWindowsComponent_50 -# ARG dotnetWindowsComponentSHA512_50 # ARG jdkWindowsComponent # ARG jdkWindowsComponentMD5SUM # ARG gitWindowsComponent @@ -43,10 +35,6 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref ARG dotnetWindowsComponent ARG dotnetWindowsComponentSHA512 -ARG dotnetWindowsComponent_31 -ARG dotnetWindowsComponentSHA512_31 -ARG dotnetWindowsComponent_50 -ARG dotnetWindowsComponentSHA512_50 ARG jdkWindowsComponent ARG jdkWindowsComponentMD5SUM ARG gitWindowsComponent @@ -56,14 +44,8 @@ ARG mercurialWindowsComponent RUN [Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls' ; \ $code = Get-Content -Path "scripts/Web.cs" -Raw ; \ Add-Type -IgnoreWarnings -TypeDefinition "$code" -Language CSharp ; \ - $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip', $Env:dotnetWindowsComponent_31 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_31, 'dotnet_31.zip', $Env:dotnetWindowsComponent_50 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_50, 'dotnet_50.zip') ; \ + $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip') ; \ Remove-Item -Force -Recurse $Env:ProgramFiles\dotnet; \ -# .NET 3.1 - Expand-Archive dotnet_31.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_31.zip; \ -# .NET 5.0 - Expand-Archive dotnet_50.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_50.zip; \ # .NET 6.0 Expand-Archive dotnet.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ Remove-Item -Force dotnet.zip; \ diff --git a/context/generated/windows/Agent/windowsservercore/1903/Dockerfile b/context/generated/windows/Agent/windowsservercore/1903/Dockerfile index acfaec55c..d55c5644c 100644 --- a/context/generated/windows/Agent/windowsservercore/1903/Dockerfile +++ b/context/generated/windows/Agent/windowsservercore/1903/Dockerfile @@ -1,10 +1,6 @@ # Default arguments ARG dotnetWindowsComponent='https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip' -ARG dotnetWindowsComponent_31='https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip' -ARG dotnetWindowsComponent_50='https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip' ARG dotnetWindowsComponentSHA512='a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e' -ARG dotnetWindowsComponentSHA512_31='72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b' -ARG dotnetWindowsComponentSHA512_50='424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782' ARG gitWindowsComponent='https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip' ARG gitWindowsComponentSHA256='b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1' ARG jdkWindowsComponent='https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip' @@ -17,10 +13,6 @@ ARG windowsservercoreImage='mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsse # ARG windowsservercoreImage # ARG dotnetWindowsComponent # ARG dotnetWindowsComponentSHA512 -# ARG dotnetWindowsComponent_31 -# ARG dotnetWindowsComponentSHA512_31 -# ARG dotnetWindowsComponent_50 -# ARG dotnetWindowsComponentSHA512_50 # ARG jdkWindowsComponent # ARG jdkWindowsComponentMD5SUM # ARG gitWindowsComponent @@ -43,10 +35,6 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref ARG dotnetWindowsComponent ARG dotnetWindowsComponentSHA512 -ARG dotnetWindowsComponent_31 -ARG dotnetWindowsComponentSHA512_31 -ARG dotnetWindowsComponent_50 -ARG dotnetWindowsComponentSHA512_50 ARG jdkWindowsComponent ARG jdkWindowsComponentMD5SUM ARG gitWindowsComponent @@ -56,14 +44,8 @@ ARG mercurialWindowsComponent RUN [Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls' ; \ $code = Get-Content -Path "scripts/Web.cs" -Raw ; \ Add-Type -IgnoreWarnings -TypeDefinition "$code" -Language CSharp ; \ - $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip', $Env:dotnetWindowsComponent_31 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_31, 'dotnet_31.zip', $Env:dotnetWindowsComponent_50 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_50, 'dotnet_50.zip') ; \ + $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip') ; \ Remove-Item -Force -Recurse $Env:ProgramFiles\dotnet; \ -# .NET 3.1 - Expand-Archive dotnet_31.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_31.zip; \ -# .NET 5.0 - Expand-Archive dotnet_50.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_50.zip; \ # .NET 6.0 Expand-Archive dotnet.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ Remove-Item -Force dotnet.zip; \ diff --git a/context/generated/windows/Agent/windowsservercore/1909/Dockerfile b/context/generated/windows/Agent/windowsservercore/1909/Dockerfile index 7b767b508..9c4da7edd 100644 --- a/context/generated/windows/Agent/windowsservercore/1909/Dockerfile +++ b/context/generated/windows/Agent/windowsservercore/1909/Dockerfile @@ -1,10 +1,6 @@ # Default arguments ARG dotnetWindowsComponent='https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip' -ARG dotnetWindowsComponent_31='https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip' -ARG dotnetWindowsComponent_50='https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip' ARG dotnetWindowsComponentSHA512='a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e' -ARG dotnetWindowsComponentSHA512_31='72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b' -ARG dotnetWindowsComponentSHA512_50='424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782' ARG gitWindowsComponent='https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip' ARG gitWindowsComponentSHA256='b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1' ARG jdkWindowsComponent='https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip' @@ -17,10 +13,6 @@ ARG windowsservercoreImage='mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsse # ARG windowsservercoreImage # ARG dotnetWindowsComponent # ARG dotnetWindowsComponentSHA512 -# ARG dotnetWindowsComponent_31 -# ARG dotnetWindowsComponentSHA512_31 -# ARG dotnetWindowsComponent_50 -# ARG dotnetWindowsComponentSHA512_50 # ARG jdkWindowsComponent # ARG jdkWindowsComponentMD5SUM # ARG gitWindowsComponent @@ -43,10 +35,6 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref ARG dotnetWindowsComponent ARG dotnetWindowsComponentSHA512 -ARG dotnetWindowsComponent_31 -ARG dotnetWindowsComponentSHA512_31 -ARG dotnetWindowsComponent_50 -ARG dotnetWindowsComponentSHA512_50 ARG jdkWindowsComponent ARG jdkWindowsComponentMD5SUM ARG gitWindowsComponent @@ -56,14 +44,8 @@ ARG mercurialWindowsComponent RUN [Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls' ; \ $code = Get-Content -Path "scripts/Web.cs" -Raw ; \ Add-Type -IgnoreWarnings -TypeDefinition "$code" -Language CSharp ; \ - $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip', $Env:dotnetWindowsComponent_31 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_31, 'dotnet_31.zip', $Env:dotnetWindowsComponent_50 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_50, 'dotnet_50.zip') ; \ + $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip') ; \ Remove-Item -Force -Recurse $Env:ProgramFiles\dotnet; \ -# .NET 3.1 - Expand-Archive dotnet_31.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_31.zip; \ -# .NET 5.0 - Expand-Archive dotnet_50.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_50.zip; \ # .NET 6.0 Expand-Archive dotnet.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ Remove-Item -Force dotnet.zip; \ diff --git a/context/generated/windows/Agent/windowsservercore/2004/Dockerfile b/context/generated/windows/Agent/windowsservercore/2004/Dockerfile index b661dc0d6..ec27eef10 100644 --- a/context/generated/windows/Agent/windowsservercore/2004/Dockerfile +++ b/context/generated/windows/Agent/windowsservercore/2004/Dockerfile @@ -1,10 +1,6 @@ # Default arguments ARG dotnetWindowsComponent='https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.413/dotnet-sdk-6.0.413-win-x64.zip' -ARG dotnetWindowsComponent_31='https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.zip' -ARG dotnetWindowsComponent_50='https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.zip' ARG dotnetWindowsComponentSHA512='a9e1bbb52484ad0667b258451ebb6b47ce6c7b788c015aee8a86c5e0c4dcf4ee8c82d796921869d64c92bb2afef2c7ceea09cfe255d8519d48f2471a098c361e' -ARG dotnetWindowsComponentSHA512_31='72a3feb6784c5c69cb464ad4a8678e719615bd1e4e9a7c3cf5c1f67a4f01e08c073424532772f1e320d05f63c01079c6a089be45f4777abe035f14ffbf06f38b' -ARG dotnetWindowsComponentSHA512_50='424df2b535f73c40aea164623a8a8f549bd18f89406eb2cb84289cb4cfceb3450db7762c5582756263d79ed628a574730e708d87dc906fd2c00d29f64942c782' ARG gitWindowsComponent='https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/MinGit-2.42.0-64-bit.zip' ARG gitWindowsComponentSHA256='b945e6df773fd8013f12e26b65b6815122be62a241d3ef4b9ed2d5ae67ae0aa1' ARG jdkWindowsComponent='https://corretto.aws/downloads/resources/17.0.7.7.1/amazon-corretto-17.0.7.7.1-windows-x64-jdk.zip' @@ -17,10 +13,6 @@ ARG windowsservercoreImage='mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsse # ARG windowsservercoreImage # ARG dotnetWindowsComponent # ARG dotnetWindowsComponentSHA512 -# ARG dotnetWindowsComponent_31 -# ARG dotnetWindowsComponentSHA512_31 -# ARG dotnetWindowsComponent_50 -# ARG dotnetWindowsComponentSHA512_50 # ARG jdkWindowsComponent # ARG jdkWindowsComponentMD5SUM # ARG gitWindowsComponent @@ -43,10 +35,6 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref ARG dotnetWindowsComponent ARG dotnetWindowsComponentSHA512 -ARG dotnetWindowsComponent_31 -ARG dotnetWindowsComponentSHA512_31 -ARG dotnetWindowsComponent_50 -ARG dotnetWindowsComponentSHA512_50 ARG jdkWindowsComponent ARG jdkWindowsComponentMD5SUM ARG gitWindowsComponent @@ -56,14 +44,8 @@ ARG mercurialWindowsComponent RUN [Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls' ; \ $code = Get-Content -Path "scripts/Web.cs" -Raw ; \ Add-Type -IgnoreWarnings -TypeDefinition "$code" -Language CSharp ; \ - $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip', $Env:dotnetWindowsComponent_31 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_31, 'dotnet_31.zip', $Env:dotnetWindowsComponent_50 + '#SHA512#' + $Env:dotnetWindowsComponentSHA512_50, 'dotnet_50.zip') ; \ + $downloadScript = [Scripts.Web]::DownloadFiles($Env:jdkWindowsComponent + '#MD5#' + $Env:jdkWindowsComponentMD5SUM, 'jdk.zip', $Env:gitWindowsComponent + '#SHA256#' + $Env:gitWindowsComponentSHA256, 'git.zip', $Env:mercurialWindowsComponent, 'hg.msi', $Env:dotnetWindowsComponent + '#SHA512#' + $Env:dotnetWindowsComponentSHA512, 'dotnet.zip') ; \ Remove-Item -Force -Recurse $Env:ProgramFiles\dotnet; \ -# .NET 3.1 - Expand-Archive dotnet_31.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_31.zip; \ -# .NET 5.0 - Expand-Archive dotnet_50.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ - Remove-Item -Force dotnet_50.zip; \ # .NET 6.0 Expand-Archive dotnet.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ Remove-Item -Force dotnet.zip; \ diff --git a/custom/README.md b/custom/README.md new file mode 100644 index 000000000..5539c2569 --- /dev/null +++ b/custom/README.md @@ -0,0 +1,74 @@ +# Custom TeamCity Agent Images + +The folder includes Dockerfiles that you can utilize to create custom TeamCity Agent images. + +# 1. .NET SDK + +| OS | Arch | .NET SDK | Dockerfile | `dotnetSdkVersion` | `dotnetSdkChecksum` | +|---------|---------|-------------------------------------------------------------------------|------------------------------------------------------------|--------------------|------------------------------------------------------------------------------------------------------------------------------------| +| Linux | `AMD64` | [.NET Core 3.1](https://dotnet.microsoft.com/en-us/download/dotnet/3.1) | [link](linux/agent/amd/custom.dotnet.sdk.amd.Dockerfile) | `3.1.426` | `6c3f9541557feb5d5b93f5c10b28264878948e8540f2b8bb7fb966c32bd38191e6b310dcb5f87a4a8f7c67a7046fa932cde3cce9dc8341c1365ae6c9fcc481ec` | +| Linux | `ARM64` | [.NET Core 3.1](https://dotnet.microsoft.com/en-us/download/dotnet/3.1) | [link](linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile) | `3.1.426` | `ff311df0db488f3b5cc03c7f6724f8442de7e60fa0a503ec8f536361ce7a357ad26d09d2499d68c50ebdfa751a5520bba4aaa77a38b191c892d5a018561ce422` | +| Windows | `AMD64` | [.NET Core 3.1](https://dotnet.microsoft.com/en-us/download/dotnet/3.1) | [link](windows/agent/custom.dotnet.sdk.win.amd.Dockerfile) | `3.1.426` | `ca5c60898318d2cf9786013edd45508f44fba45c2a8814752ba53094ca7b78b3d94874e765655e310b4efd2b604d42807ef6e16c6281d877495d513bfb5c1261` | +| Linux | `AMD64` | [.NET 5.0](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) | [link](linux/agent/amd/custom.dotnet.sdk.amd.Dockerfile) | `5.0.408` | `a9c4784930a977abbc42aff1337dda06ec588c1ec4769a59f9fcab4d5df4fc9efe65f8e61e5433db078f67a94ea2dfe870c32c482a50d4c16283ffacacff4261` | +| Linux | `ARM64` | [.NET 5.0](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) | [link](linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile) | `5.0.408` | `50f23d7aca91051d8b7c37f1a76b1eb51e6fe73e017d98558d757a6b9699e4237d401ce81515c1601b8c21eb62fee4e0b4f0bbed8967eefa3ceba75fc242f01b` | +| Windows | `AMD64` | [.NET 5.0](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) | [link](windows/agent/custom.dotnet.sdk.win.amd.Dockerfile) | `5.0.408` | `3845485401695b325d9afee67e33c6b3a45902476e408dd74ebc8815ad2c4f4b5d70a6b993e87ff587d0d9b0e5a3d66eaf3dd6bf715b0012ffee70501a716485` | +| Linux | `AMD64` | [.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) | [link](linux/agent/amd/custom.dotnet.sdk.amd.Dockerfile) | `7.0.401` | `2544f58c7409b1fd8fe2c7f600f6d2b6a1929318071f16789bd6abf6deea00bd496dd6ba7f2573bbf17c891c4f56a372a073e57712acfd3e80ea3eb1b3f9c3d0` | +| Linux | `ARM64` | [.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) | [link](linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile) | `7.0.401` | `7c6ba2047998c906353f8e8d7fa73589867f46cbc2d4ece6cc7ee4ca3402b6a18717089b98002c7d15e16ca6fd5b11e42037b5fb0e25aff39075d67d8be49e25` | +| Windows | `AMD64` | [.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) | [link](windows/agent/custom.dotnet.sdk.win.amd.Dockerfile) | `7.0.401` | `02a4ecc05d0b9dfa0c9e32f8a3d288f329e7338b2430fcbc1276ae356f9d8e14920f91382f3f141842bf1e6e6cd331e532b301edc71c26de9d9e5ad2371afbe0` | + + +The .NET SDK version bundled within TeamCity Docker Images is aligned with [Microsoft's Long Term Support (LTS) release](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) +at the moment of a TeamCity release. Since it is sometimes necessary to use STS (which can be newer than LTS) or +older versions, we provide examples of building images with custom .NET SDK versions inside. + +The folder contains Dockerfiles that simplify this process, allowing you to easily replace any .NET SDK version within the image with a pre-defined one. These Dockerfiles can also be used as templates for installing any custom .NET version. + +## 1.1. Building Images + +The table above references multiple versions of .NET framework. To build a custom image, specify the required SDK version (`dotnetSdkVersion`) and a checksum for it (`dotnetSdkChecksum`): +``` +docker build \ + --build-arg teamCityAgentImage= \ + --build-arg dotnetSdkVersion= \ + --build-arg dotnetSdkChecksum= \ + -f "linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile" -t teamcity-agent:custom-dotnet-version . +``` + +Example for Linux: +``` +# 1. Build Image +docker build \ + --build-arg teamCityAgentImage=jetbrains/teamcity-agent:2023.05.4-linux-arm64 \ + --build-arg dotnetSdkVersion=7.0.401 \ + --build-arg dotnetSdkChecksum=7c6ba2047998c906353f8e8d7fa73589867f46cbc2d4ece6cc7ee4ca3402b6a18717089b98002c7d15e16ca6fd5b11e42037b5fb0e25aff39075d67d8be49e25 \ + -f "linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile" -t teamcity-agent:linux-arm-dotnet-7-0 . + +# 2. Verify .NET SDK version within the new image +docker exec dotnet --version +7.0.401 + +``` + +Example for Windows: +``` +# 1. Build Image +docker build ` + --build-arg teamCityAgentImage=jetbrains/teamcity-agent:2023.05.4-windowsservercore ` + --build-arg dotnetSdkVersion=7.0.401 ` + --build-arg dotnetSdkChecksum=02a4ecc05d0b9dfa0c9e32f8a3d288f329e7338b2430fcbc1276ae356f9d8e14920f91382f3f141842bf1e6e6cd331e532b301edc71c26de9d9e5ad2371afbe0 ` + -f "windows/agent/cusotm.dotnet.sdk.win.amd.Dockerfile" -t teamcity-agent:windows-custom-dotnet-7 . + +# 2. Verify .NET SDK version within the new image +docker run teamcity-agent:windows-custom-dotnet-7 dotnet --version +7.0.401 +``` + +# 1.2 .NET End of Support Dates + +In the [.NET and .NET Core Support Policy](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) article, Microsoft states the following end of support dates for .NET: +* **.NET Core 3.1** - December 13th, 2022; +* **.NET 5.0** - May 10th, 2022; +* **.NET 6** (LTS) - November 12, 2024; +* **.NET 7.0** (STS) - May 14, 2024; + +We strongly encourage replacing your current .NET versions to newer ones if the support for your current version is nearing its end. diff --git a/custom/linux/agent/amd/custom.dotnet.sdk.amd.Dockerfile b/custom/linux/agent/amd/custom.dotnet.sdk.amd.Dockerfile new file mode 100644 index 000000000..6e58c6c30 --- /dev/null +++ b/custom/linux/agent/amd/custom.dotnet.sdk.amd.Dockerfile @@ -0,0 +1,35 @@ +# +# Dockerfile containing manifest of TeamCity Linux Agent (AMD) with custom .NET SDKs +# See: https://dotnet.microsoft.com/download/dotnet/ +# +# @param teamCityAgentImage target TeamCity Agent image, e.g. 'jetbrains/teamcity-agent:2023.05.4' +# @param dotnetSdkVersion target .NET SDK version, e.g. '7.0.401' +# @param dotnetSdkChecksum checksum of .NET SDK's archive obtained from "dotnetcli.azureedge.net/dotnet/Sdk" +# + +ARG teamCityAgentImage + +FROM ${teamCityAgentImage} +USER root + +ARG dotnetSdkVersion +ARG dotnetSdkChecksum + +RUN rm -rf /usr/share/dotnet && \ + mkdir -p /usr/share/dotnet && \ + echo "Downloading .NET SDK [$dotnetSdkVersion] ..." && \ + curl -SL https://dotnetcli.azureedge.net/dotnet/Sdk/${dotnetSdkVersion}/dotnet-sdk-${dotnetSdkVersion}-linux-x64.tar.gz \ + --output /tmp/dotnet.tar.gz && \ + echo "Downloaded .NET SDK $dotnetSdkVersion (Linux AMD64) checksum: $(sha512sum tmp/dotnet.tar.gz)" && \ + echo "$dotnetSdkChecksum */tmp/dotnet.tar.gz" | sha512sum -c - && \ + tar -zxf /tmp/dotnet.tar.gz -C /usr/share/dotnet && \ + rm /tmp/dotnet.tar.gz && \ + find /usr/share/dotnet -name "*.lzma" -type f -delete && \ + ln -sf /usr/share/dotnet/dotnet /usr/bin/dotnet && \ + dotnet help && \ + dotnet --info && \ + chown -R buildagent:buildagent /services + +VOLUME /var/lib/docker +USER buildagent + diff --git a/custom/linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile b/custom/linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile new file mode 100644 index 000000000..a38660bc7 --- /dev/null +++ b/custom/linux/agent/arm/custom.dotnet.sdk.arm.Dockerfile @@ -0,0 +1,33 @@ +# +# Dockerfile containing manifest of TeamCity Linux Agent (ARM) with custom .NET SDKs +# See: https://dotnet.microsoft.com/download/dotnet/ +# +# @param teamCityAgentImage target TeamCity Agent image, e.g. 'jetbrains/teamcity-agent:2023.05.4' +# @param dotnetSdkVersion target .NET SDK version, e.g. '7.0.401' +# @param dotnetSdkChecksum checksum of .NET SDK's archive obtained from "dotnetcli.azureedge.net/dotnet/Sdk" +# + +ARG teamCityAgentImage +FROM ${teamCityAgentImage} +USER root + +ARG dotnetSdkVersion +ARG dotnetSdkChecksum +RUN rm -rf /usr/share/dotnet && \ + mkdir -p /usr/share/dotnet && \ + echo "Downloading .NET SDK [$dotnetSdkVersion] ..." && \ + curl -SL https://dotnetcli.azureedge.net/dotnet/Sdk/${dotnetSdkVersion}/dotnet-sdk-${dotnetSdkVersion}-linux-arm64.tar.gz \ + --output /tmp/dotnet.tar.gz && \ + echo "Downloaded .NET SDK $dotnetSdkVersion (Linux ARM64) checksum: '$(sha512sum /tmp/dotnet.tar.gz)'" && \ + echo "${dotnetSdkChecksum} /tmp/dotnet.tar.gz" | sha512sum -c - && \ + tar -zxf /tmp/dotnet.tar.gz -C /usr/share/dotnet && \ + rm /tmp/dotnet.tar.gz && \ + find /usr/share/dotnet -name "*.lzma" -type f -delete && \ + ln -sf /usr/share/dotnet/dotnet /usr/bin/dotnet && \ + dotnet help && \ + dotnet --info && \ + chown -R buildagent:buildagent /services && \ + usermod -aG docker buildagent + +VOLUME /var/lib/docker +USER buildagent diff --git a/custom/windows/agent/custom.dotnet.sdk.win.amd.Dockerfile b/custom/windows/agent/custom.dotnet.sdk.win.amd.Dockerfile new file mode 100644 index 000000000..6749fc913 --- /dev/null +++ b/custom/windows/agent/custom.dotnet.sdk.win.amd.Dockerfile @@ -0,0 +1,37 @@ +# +# Dockerfile containing manifest of TeamCity Windows Agent (AMD) with custom .NET SDKs +# See: https://dotnet.microsoft.com/download/dotnet/ +# +# @param teamCityAgentImage target TeamCity Agent image, e.g. 'jetbrains/teamcity-agent:2023.05.4' +# @param dotnetSdkVersion target .NET SDK version, e.g. '7.0.401' +# @param dotnetSdkChecksum checksum of .NET SDK's archive obtained from "dotnetcli.azureedge.net/dotnet/Sdk" +# + +ARG teamCityAgentImage + +FROM ${teamCityAgentImage} + +ARG dotnetSdkVersion +ARG dotnetSdkChecksum + +# PowerShell +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Modify .NET & other paths +USER ContainerAdministrator +RUN setx /M PATH ('{0};{1}\bin;C:\Program Files\Git\cmd;C:\Program Files\Mercurial' -f $env:PATH, $env:JAVA_HOME) + +RUN [Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls' ; \ + $code = Get-Content -Path "scripts/Web.cs" -Raw ; \ + Add-Type -IgnoreWarnings -TypeDefinition "$code" -Language CSharp ; \ + $url = 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/' + $Env:dotnetSdkVersion + '/dotnet-sdk-' + $Env:dotnetSdkVersion + '-win-x64.zip'; \ + $downloadScript = [Scripts.Web]::DownloadFiles($url + '#SHA512#' + $Env:dotnetSdkChecksum, 'dotnet.zip') ; \ + # Remove to successfully expand archive + Remove-Item -Force -Recurse $Env:ProgramFiles\dotnet; \ + # 2. Extract .NET version + Expand-Archive dotnet.zip -Force -DestinationPath $Env:ProgramFiles\dotnet; \ + Remove-Item -Force dotnet.zip; \ + Get-ChildItem -Path $Env:ProgramFiles\dotnet -Include *.lzma -File -Recurse | foreach { $_.Delete()}; + +# Switch back to regular user +USER ContainerUser