Commit Graph

29 Commits

Author SHA1 Message Date
Mikhail Koliada
14b3afe238 [Ubuntu] put Microsoft repo higher for dotnet (#6084) 2022-08-16 11:03:03 +02:00
Nikolay Frolov
02547255ff [Ubuntu] Add .NET SDK 6.0 (#4958) 2022-01-29 19:28:21 +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
Sergey Dolin
a9d832d671 [ubuntu] installing the latest .NET sdk patch version for every feature version (#3550)
* installing the latest patch version for every feature version

* simplify versions computing

* fix space

Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
2021-06-10 11:17:30 +03:00
Aleksandr Chebotov
8472c0699b Remove warmup deprecation for Ubuntu images (#3076) 2021-04-02 11:17:15 +03:00
Mikhail Timofeev
dd506183e2 [Ubuntu] Set user-related environmental variables and PATH via post deployment script (#3030)
* Move home directory vars to post-deploy scripts

* Remove "export" word

* Move home directory vars to post-deploy scripts

* Remove "export" word

* add variables via post-deployment file

* remove quotes around PATH

* remove quotes

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

* rename variable

* get rid of extra variable
2021-03-26 18:33:51 +03:00
Mikhail Timofeev
593aa6b100 Revert $BASH_ENV (#2982) 2021-03-18 21:58:04 +03:00
Mikhail Timofeev
e7e66bec69 [Ubuntu] Add a file with global user-related variables and point BASH_ENV variable to it (#2826)
* Add global vars to profile.d

* set BASH_ENV var

* fix comment

* remove extra quotes
2021-03-03 17:45:01 +03:00
Darii Nurgaleev
7c6117e6ec [Ubuntu] Get toolset value function. (#2435)
* [macOS] Fail Pester tests on error

* return it back

* [Ubuntu] add get_toolset_values function

* added fix

* fix all nitpicks

* try to get rid brackets

* removed brackets.

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

* fixed dotnet tests, added codeql to toolset

* changed codeql version to wildcard

* removed unused import and a test call

* tmp

* lowercase file name

* removed sourcing invoke-tests

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-30 13:50:21 +03:00
Leonid Lapshin
ba0809214b [ubuntu] Changed dotnet core sdk unpacking stage (#2297)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-28 11:26:28 +03:00
Leonid Lapshin
55d0c3bed6 [ubuntu] Improve dotnet SDKs installation (#2078)
* download dotnet sdk with retries

* url file doesnt exists

* changed background processes to gnu parallel

* moved scriptblock to function

* fixed path

* changed rsync to mv

* typo

* rsync with remove-source-files option

* minor function changes

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2020-12-01 10:26:50 +03:00
Dibir Magomedsaygitov
7f98841545 small rework 2020-11-05 19:35:43 +03:00
Dibir Magomedsaygitov
46520bfdb3 install dotnet-core 5.0 on ubuntu 2020-11-05 19:14:50 +03:00
Sergey Dolin
1d4f281899 Add -e to .sh scripts 2020-10-12 15:47:09 +05:00
Vladimir Safonkin
7b3bfbdf61 [Ubuntu] Remove docs logic from Ubuntu provisioner (#1603)
* Remove docs logic on Ubuntu

* Cleanup templates

* Fix oras-cli.sh

* Remove announcements.md
2020-09-17 14:15:31 +03:00
Darii Nurgaleev
5cf25b5baa added DOTNET_MULTILEVEL_LOOKUP (#1417) 2020-08-15 15:28:58 +03:00
Mikhail Timofeev
0647236ac1 Rename IsIntalled -> IsPackageInstalled 2020-07-09 15:14:28 +03:00
Mikhail Timofeev
a7ee8ab672 move IsInstalled and apt-fast 2020-07-08 22:28:23 +03:00
Mikhail Timofeev
cebf52206b remove source apt.sh 2020-07-08 15:34:53 +03:00
Mikhail Timofeev
9ff56b175e Remove DotNET 2.2 from Ubuntu images (#1016) 2020-06-18 15:50:56 +03:00
Sergey Dolin
c6a872a71e Return back dotnent 3.1.102 (#778)
Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
2020-06-02 15:52:30 +03:00
Eric J. Smith
ea645ec9af Skip first time welcome message in .NET Core
Since .NET Core 3.1.300, there is a new environment variable named `DOTNET_NOLOGO` that specifies whether .NET Core welcome and telemetry messages are displayed on first run.

https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet
2020-05-28 10:15:39 -05:00
Mikhail Timofeev
021e7bc68b Add Ubuntu 20 image (#883)
* add ubuntu 20 yml

* add ubuntu 20.04

* add toolcache

* add config

* install ansible from oficial canonical repo

* remove azure-cli

* remove azure-devops-cli

* libcurl3 -> libcurl4

* libcurl4

* install python2

* install clang9 directly from apt-get

* remove swift

* fix libcurl in the right place

* remove docker-moby

* remove dotnetcore-sdk

* remove haskell

* remove azul jdk

* remove leingen

* remove php

* remove sbt

* fix lsb release

* remove mongodb

* remove >> for go installation

* install only python3

* remove pip version

* remove add-apt-repository -y ppa:apt-fast/stable

* remove android

* remove powershell

* remove python from tests

* add java back

* change heroku installation

* get back leingen

* get back android

* remove set -e from java installation

* get back apt-fast

* remove git-lfs install from packagecloud

* add pip installation for python2

* get back set -e to java-tools.sh

* change ansible installation

* add pip to python

* Revert "install clang9 directly from apt-get"

This reverts commit e7d965f5b4.

* Revert "change heroku installation"

This reverts commit 4fb3c0c3eb.

* Revert "remove php"

This reverts commit d64ce162b8.

* change CRLF to LF for php installation

* get back heroku to template

* get back haskell

* get back dotnet

* install pwsh via snap

* remove netcore 3.0 & 2.2

* add azpowershell

* Upgrade to Az 3.8

* Update Validate-AzureModules.ps1

* Fix formatting in doc-string for Rust for Windows-image.

Ensure output in ` images/win/Windows2019-Readme.md` looks proper.

[Live in master right now](https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md#rust-64-bit), it looks kinda bad.

* added workaround for default DNS

* revert changes

* Don\'t create backup sed file (#792)

Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>

* Updated README with new rules of tool installation. (#793)

* Update README with new rules of tool installation.

* fixed typo

* fix notes

* another minor fix

* fixed articles

* fixed license line

* Add Python toolcache installation from Github releases for Ubuntu (#704)

Change logic to install Python to Ubuntu images to use GitHub releases from https://github.com/actions/python-versions

* Software list: "do not change" label. (#796)

* added_advises

* change place for hided stirng.

* changed to more direct message.

* Fail fast in image generation if not enough disk space for customers (#767)

* added checking free disk space
Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>

* Add FS-iSCSITarget-Server (#805)

* Updating readme file for win19 version 20200426.1

* Add Python tools installation from Github releases for Windows (#705)

* Add Toolset provision for Windows
Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>

* Updating readme file for macOS version 20200425.1 (#801)

* Updating readme file for win16 version 20200426.1

* change min free space to 18000Mb (#814)

* Added java 13 package in VM (#795)

* Added java 13 package in VM

* Fixed var name

* Make changes from 11 to 13

* added java 13 for validate-javatool

* Fix documentation for containertools

* pre-create .composer folder to preserve permission

* Fix minor glitch in installer message

echo "cmake is already installed"

* added workaround for default DNS (#819)

* workaround reverted

* Improve Windows provisioners stability (#733)

* Improve Install-CloudFoundryCli.ps1

* Improve Install-Go.ps1

* Improve Install-Kind.ps1

* Improve Install-MysqlCli.ps1

* Improve Install-Rust.ps1

* Improve Install-SQLPowerShellTools.ps1

* Improve Update-AndroidSDK.ps1

* Fix issue with resolve

* Improve Windows Visual Studio provisioners (#758)

* Add retries to DotnetSDK provisioner

* Improve VS provisioners

* Fixes in syntax

* Fixes in syntax

* Rename Install-VS function

* Remove bootstrapperName parameter from Install-VisualStudio

* Small fix

* Improve Windows browsers provisioners stability (#725)

* Improve Chrome provisioner

* Improve Edge provisioner

* Improve Firefox provisioner

* Resolve conflicts in Install-Chrome.ps1

* Add retry logic for javatools (#802)

* Add retry logic for javatools

* Add retry logic for Selenium server download (#807)

* Add retry logic for selenium

* Refactoring

* Add retries for Selenium release info

* Minor fix

* Fix kubectl installation (#799)

* Fix kubectl installation

* Fix kubectl installation

* Add --client flag

* Fix for ubuntu 16.04

* Move kubectl apt packages installation to basic.sh

* Combined separated scripts for kubectl installation to one

* Minor fix

* Remove apt-transport-https package from basic.sh

* Delete helm init

* Disable crash reporting (#826)

* disable jit debugger

* override settings asfter vs installation

* Fix maven environment variable (#831)

* Updating readme file for macOS version 20200430.1 (#846)

* Add nodejs toolcache for windows (#840)

* add installation of nodejs

Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>

* Add nodejs tool cache for linux. (#839)

* add nodejs

* 4 node versions

Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>

* Hide packages that are no longer required (#854)

* Updating readme file for macOS version 20200430.1

* hide AutomaticRemove info

* added SSDT workload to VS 2019 (#844)

* Install Go to hostedtoolcache directory on Ubuntu image (#848)

* Move go location to the toolcache

* Install Go to hostedtoolcache directory on Windows image (#849)

* Move installed go versions to toolcache directory

* Updating readme file for win19 version 20200430.2

* Updating readme file for ubuntu16 version 20200430.2

* Install Windows 10 SDK (10.0.14393.795) via standalone installer (#862)

* add win10 sdk 10.0.14393

* markdown changes

* Add msys2 installation and validation (#632)

* SQL Server Data-Tier Application Framework latest upgrade. (#863)

* DACFx_latest_version_install

* Fix the cleanup script. (#856)

* Fix the cleanup script.The result is not returned to the variable because of the output redirect

* Added the cancel timeout.

* Update Haskell tool Stack (#860)

* Update Haskell tool Stack

* Update haskell script to install stack from get.haskellstack.org

* Updating readme file for win16 version 20200505.1

* Updating readme file for ubuntu18 version 20200430.1

* Switch Expand-Archive to 7zip on Windows image generation (#861)

* switch expand-archive to 7zip on windows

* [Ubuntu] Add Azcopy10 (#871)

* Add azcopy10

* Add spaces after azcopy

* add condition to ansible

* deprecated software Ubuntu 20.04

* install powershell Ubuntu 20.04

* use function in ansible

* move preparemetadata.sh to installers folder

* update preimagedata.sh ubuntu20

* add confition for dotnetsdk

* scripts/installers/2004/android.sh

* python.sh ubuntu 20.04

* simplify conditions

* remove toolcache.json

* get back note in readme

* remove workaround for git-lfs

* Az 3.8.0 Ubuntu 20.04

* fix kubernetes-tools in template

* add helpers script to os.sh

* remove old android, old cabal

* remove platform tools

* remove java7 for ubuntu20

* stay only go 1.14 Ubuntu 20.04

* add helper to python.sh

* add os.sh helper to azpwsh and java

* remove apis from documented

* remove addons google-api

* Install Az latest module

* get back swift

* set java 11 as default

* change offer and sku

* Revert "change offer and sku"

This reverts commit d5d92a553a.

* Unite mercurial scripts

* combine basic scripts for ubuntu 18 & 20

* add os.sh to basic.sh

* Revert "set java 11 as default"

This reverts commit aada5b12b0.

* set Java11 by default, set Java8 for Androidsdk

* rework php script

* remove rid of php.sh files

* move installation to for loop

* add disk space validation

Co-authored-by: Christoph Bergmeister [MVP] <c.bergmeister@gmail.com>
Co-authored-by: Jostein Kjønigsen <jostein@kjonigsen.net>
Co-authored-by: Darii Nurgaleev <Darleev@github.com>
Co-authored-by: Sergey Dolin <v-sedoli@microsoft.com>
Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Vladimir Safonkin <vsafonkin@gmail.com>
Co-authored-by: Dariy Nurgaleev <50947177+Darleev@users.noreply.github.com>
Co-authored-by: Nikita Bykov <49442273+nikita-bykov@users.noreply.github.com>
Co-authored-by: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com>
Co-authored-by: Image generation service account <no-reply@microsoft.com>
Co-authored-by: Maksim Petrov <47208721+vmapetr@users.noreply.github.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: phozzy <arthur.fayzullin@gmail.com>
Co-authored-by: Jorgen Thelin <jthelin@microsoft.com>
Co-authored-by: Dmitry Shibanov <shibanov-1997@inbox.ru>
Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
Co-authored-by: cage200 <patruadrian@yahoo.com>
Co-authored-by: Junyoung Clare Jang <jjc9310@gmail.com>
Co-authored-by: Dibir Magomedsaygitov <61747324+dibir-magomedsaygitov@users.noreply.github.com>
Co-authored-by: Aleksandr Chebotov <v-aleche@microsoft.com>
2020-05-26 18:45:48 +03:00
Sergey Dolin
bb9538cc9b Migrate /etc/environment modifications to helpers (#660)
* migrate rust

* Migrate PHP composer

* Migrate dotnet core sdk

* rename `var_*` to `variable_*`

* rename *etcEnvironmentVar functions to *etcEnvironmentVariable

* add AppendEtcEnvironmentVariable  and PrependEtcEnvironmentVariable

* rename addEtcEnvironmentPathElement to prependEtcEnvironmentPath

* Remove updatepath.sh

Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
2020-04-14 11:23:44 +03:00
Andy Mishechkin
41119a9d50 Merge branch 'master' into v-andmis/ubuntu/131_remove_duplicate_repos_dotnetcore 2020-02-26 10:55:34 +04:00
root
ce04359372 dotnetcore-sdk.sh - excess debug string has been removed 2020-02-21 13:38:05 +04:00
root
6da930087b dotnetcore-sdk.sh has been refactored for using in both Ubuntu 16/18 deployments 2020-02-21 13:38:05 +04:00