Commit Graph

82 Commits

Author SHA1 Message Date
Mikhail Timofeev
11cfd9eac0 Add mono package to ubuntu 22 (#5950) 2022-07-25 12:26:39 +03:00
Mikhail Timofeev
893e347c8e Remove ndk-bundle from ubuntu (#5926) 2022-07-19 13:06:31 +03:00
Mikhail Koliada
82c8123cac [Ubuntu] Add Microsoft Edge Web Driver (#5878)
* [Ubuntu] Add Edge Web Driver

* take part 0 in sw report
2022-07-09 08:49:21 +02:00
Mikhail Koliada
e91961e2f2 [Ubuntu] Add Microsoft Edge (#5874)
trailing whitespace
2022-07-08 08:49:17 +03:00
Bryan Ricker
1938bdf841 [Ubuntu] add out-of-the-box SourceKitten support (#5634)
[SourceKitten](https://github.com/jpsim/SourceKitten), a popular Swift
library for interacting with SourceKit, needs to know (or be told) the
location of the sourcekitd framework. SourceKitten is somewhat
[ubiquitous](https://github.com/jpsim/SourceKitten#projects-built-with-sourcekitten);
most Swift projects I've seen or worked on used SourceKitten in some
way.

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

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

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

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

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

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

This is not a good workaround for the following reasons:

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

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

Alternative:

- Don't symlink, add `LINUX_SOURCEKIT_LIB_PATH` to `/etc/environment`.
2022-05-31 08:50:57 +02:00
Mikhail Timofeev
c61cbbf296 [Ubuntu] Add java dependent tools back to ubuntu 22 (#5618)
* Get back kotlin and selenium

* Get back leiningen and android tools
2022-05-27 09:46:59 +03:00
Mikhail Timofeev
eabc37ce41 Add java tools installation to Ubuntu22 (#5612) 2022-05-25 23:11:06 +03:00
Mikhail Timofeev
4393b58dce Get back container tools on Ubuntu 18&20 (#5611) 2022-05-25 19:25:12 +03:00
juliancarrivick
64e497aba9 Add clang-tidy to Ubuntu images (#5541) 2022-05-23 16:50:28 +03:00
Mikhail Koliada
e4d58452f4 [Ubuntu] Rework podman and tools installation (#5580) 2022-05-20 16:40:31 +03:00
Aleksandr Chebotov
17d10f6889 Add amazon-ecr-credential-helper (#5544) 2022-05-16 18:49:51 +03:00
Aleksandr Chebotov
9d80842cc3 [Ubuntu] Add Ubuntu Server 22.04 LTS template (#5454) 2022-05-02 11:46:10 +03:00
Aleksandr Chebotov
01f34021dc [Ubuntu] Remove hard-coded composer version (#5399) 2022-04-13 13:04: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
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
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
Mikhail Koliada
1048793daa [Ubuntu] Add Eclipse Temurin (Adoptium) to Java installer (#4868) 2022-01-12 22:05:33 +03:00
Aleksandr Chebotov
92eeb55189 [Ubuntu] Add verbosity during software report generation (#4811)
* Add verbosity during software report generation

* Fix Get-CpanVersion

* set default ValidateExitCode value to $true

* update java test

* use lower-case for parameters
2021-12-28 11:16:20 +03:00
Mikhail Koliada
9ec86a6e3e [Ubuntu] install mysql init script for sysVinit compatibility (#4736) 2021-12-14 21:46:30 +03:00
Mikhail Koliada
4d7a8a0e35 [Ubuntu] do not install mysql 8.x on 18.04 (#4685) 2021-12-08 16:02:06 +03:00
Mikhail Koliada
77f9a979a8 [Ubuntu] Downgrade mysql to 8.0.26 (#4674) 2021-12-07 23:38:14 +03:00
Mikhail Koliada
af645a7b5e [Ubuntu] get rid of post-gen rust script (#4575) 2021-11-26 12:39:13 +03:00
Maksim Shilov
1b583e05e5 [Ubuntu] Pin PostgreSQL version installed in the toolset (#4510)
* Pin PostgreSQL version installed in the toolset

* Source the helpers and resolving comments
2021-11-16 11:48:38 +03:00
Maksim Shilov
41c947a8f0 [Ubuntu] Pin MongoDB to the specific version defined in the toolset (#4447) 2021-11-10 19:30:25 +03:00
Nikolay Frolov
5f33b32a1e [Linux] Rework NodeJS install (#4378) 2021-10-30 14:56:36 +03:00
Dibir Magomedsaygitov
d502c64087 [Ubuntu] Rework Selenium installation (#4308) 2021-10-29 16:55:01 +03:00
Mikhail Timofeev
2e47a52b7e [Ubuntu] Avoid installing preview android platform versions (#4371) 2021-10-29 01:15:55 +03:00
Dibir Magomedsaygitov
2d46e3f4d9 [Ubuntu] Remove Ubuntu16 related code from the VE repository (#4336) 2021-10-26 15:30:59 +03:00
Mikhail Timofeev
b665bad57b Install compose v1 and v2 alongside (#4203) 2021-10-01 12:33:34 +03:00
Nikita Bykov
ef2db470d9 [Ubuntu] Add android NDK r23 (#4073) 2021-09-20 13:35:44 +03:00
Julian Ospald
ee69b89103 Use ghcup to install GHC on linux and remove docs and profiling libs (#4043) 2021-09-10 16:17:15 +03:00
Ryan
8f1e4ff32f [Ubuntu] add aria2 to toolset (#3916)
aria2 is already installed as part of 133db65488/images/linux/scripts/base/apt.sh (L29)
This change will add aria2 to the list of apt packages in generated README
2021-08-18 13:35:29 +03:00
mikhailshaganov
966395f4bd [Ubuntu] Add kotlin (#3755) 2021-07-22 11:31:30 +03:00
Yann Jouanique
5161c257a2 [ubuntu] Install yq (#3646) 2021-07-15 12:21:48 +03:00
Hai Cao
7fe7393aa2 [Ubuntu] Add SqlPackage (#3700)
* [Ubuntu] Add SqlPackage

* Address comments
2021-07-12 10:59:56 +03:00
Mikhail Timofeev
f1ab1bd12f [Ubuntu] Switch android tools installation to use sdkmanager from command-line tools (#3650)
* Switch android tools installation to cmdline-tools
* Replace deprecated sdkmanger from sdk-tools to the one from cmdline tools
* Remove patcherv4 from toolsets as it's included in m2repository extras

* Add tests to make sure both sdkmanagers exist

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

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

* Modify software report to output any version

* Change regex pattern to output the group
* Currently the function returns 4. instead of 4.0, this change fixes it
2021-07-07 15:16:46 +03:00
Mikhail Timofeev
20804bc30f Remove bicep from software docs and tests for ub16 (#3656) 2021-06-28 10:58:28 +03:00
Marcus Felling
dd399bcab4 [Ubuntu] Adding Bicep CLI (#3639)
* Add Bicep CLI to Ubuntu images

* Use helper download_with_retries

* remove bicep from deprecated 16.04 image

* formatting

Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
2021-06-24 11:13:00 +03:00
Mikhail Timofeev
4416d54d30 [Ubuntu] Remove php installation, tests and software docs for Ubuntu 16 (#3541)
* Remove php installation, tests and software docs for Ubuntu 16

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

* Add a comment about openssl installation on Ubuntu 16
2021-06-10 22:33:08 +03:00
Mikhail Timofeev
952ee3e740 [ubuntu] Move aws-sam-cli installation to the aws.sh script (#3401) 2021-05-17 21:55:32 +03:00
Dibir Magomedsaygitov
19537cbf0b [Ubuntu] Fix GRADLE_HOME environment variable (#3225)
* fix gradle_home env var

* add gradle test and minor rework

* debug
2021-04-21 18:20:20 +03:00
Mikhail Timofeev
a06f07dfb4 [Ubuntu] Add msbuild to software report (#3210) 2021-04-19 16:17:48 +03:00
Aleksandr Chebotov
b04de88f6e [Ubuntu] Install zstd homebrew (#3181)
* install zstd using brew

* fix typo

* remove Run-Command

* replace to Take-OutputPart

* create zstd symlinks
2021-04-14 19:34:49 +03:00
Aleksandr Chebotov
487339fb77 [ubuntu] provide package name (#3172) 2021-04-13 17:13:46 +03:00
Nikita Bykov
acdde71580 [Ubuntu] Fix Chromium installation (#3136)
* fix chromium installation

* fix chromium

* added symlink

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-04-09 14:50:48 +03:00
Nikita Bykov
b7f276c003 [Ubuntu] Rework Сhromium installation to avoid using snap (#3029)
* rework chromium installation

* added GetChromiumRevision function

* changed getting chrome version

* fixed GetChromiumRevision function

* fixed CHROME_VERSION variable

* move chromium installation to google-chrome.sh

* added -qq for unzip

* added comments to GetChromiumRevision function

* updated tests and sofware report

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
2021-04-02 19:21:33 +03:00
hackercat
be806579bb [Ubuntu] Fix Erlang version in software report
SoftwareReport collects wrong version for Erlang, it reports Eshell
version rather than Erlang itself.
reference: https://stackoverflow.com/questions/9560815/how-to-get-erlangs-release-version-number-from-a-shell
2nd answer

`erl` doesn't have `-v` flag, only `-version`
`erlc` `-v` flag is for verbose output
`rebar3` reports it's version with flag `-v`
Change `erl -v` to `erl -version` as it gets stuck in certain scenarios
like using Docker as packer builder.
reference: http://erlang.org/doc/man/erl.html
2021-03-31 12:38:11 +03:00
Aleksandr Chebotov
436d9baa95 [Ubuntu] use pipx to install ansible (#3015)
* use pipx to install ansible

* update info
2021-03-25 12:40:36 +03:00
Aleksandr Chebotov
dee50eebff add acl package to Ubuntu 20 (#3006) 2021-03-23 10:48:35 +03:00
Aleksandr Chebotov
40f571a753 [Ubuntu] Add net-tools (#2838)
* add net-tools

* fix output
2021-03-04 18:30:40 +03:00