Commit Graph

826 Commits

Author SHA1 Message Date
Aleksandr Chebotov 82d552ac56 [Ubuntu] Install latest Android cmdline-tools (#5639)
* [Ubuntu] Install latest Android cmdline-tools

* Move yq installation
2022-05-31 11:05:22 +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](https://github.com/jpsim/SourceKitten/blob/f7cf1e3b6328f21e344e83450ae1298af69de281/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 3c0d3f8709 Fix software report for cargo audit (#5624) 2022-05-27 11:14:16 +03: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
Shohei Maeda f8f8c93509 [Ubuntu] Use new Hashicorp Releases API (#5587) 2022-05-23 16:47:07 +03:00
Mikhail Koliada e4d58452f4 [Ubuntu] Rework podman and tools installation (#5580) 2022-05-20 16:40:31 +03:00
Mikhail Timofeev dc7d03e49d [Ubuntu] Make software and release URLs using variables instead of hardcode (#5572)
* Make urls using variables instead of hardcode

* Simplify versions retrieval
2022-05-19 21:47:48 +02:00
Aleksandr Chebotov 536cfa24b0 [Ubuntu] Revert powershell fix for Ubuntu 22.04 (#5567)
* Revert powershell fix for Ubuntu 22.04

* Move libssl1.1 dependency

* fix typo

* remove comment
2022-05-18 15:39:37 +03:00
Dusko Dobranic bc7bb8bf96 [Ubuntu] Fix cargo outdated version in report (#5550) 2022-05-16 20:41:45 +03:00
Aleksandr Chebotov 17d10f6889 Add amazon-ecr-credential-helper (#5544) 2022-05-16 18:49:51 +03:00
Rob Herley 1bd639f31d add ecdsa & ed25519 gh host keys (#5520) 2022-05-12 11:53:25 +03: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
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
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
Aleksandr Chebotov 9d80842cc3 [Ubuntu] Add Ubuntu Server 22.04 LTS template (#5454) 2022-05-02 11:46:10 +03: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
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 01f34021dc [Ubuntu] Remove hard-coded composer version (#5399) 2022-04-13 13:04:04 +03:00
Mikhail Koliada 11d669e34b [Ubuntu] remove php 7.1 from Bionic Beaver (#5390) 2022-04-12 21:29:43 +03:00
Aleksandr Chebotov f5ca411fa7 [Ubuntu] Use OpenSSL package version in output (#5384) 2022-04-12 11:03:33 +03:00
Aleksandr Chebotov 710d5de922 [Ubuntu] Fix composer version (#5335) 2022-04-04 12:26:27 +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
Mikhail Timofeev 0448e95fef Fix issues with release version and apply pattern (#5265) 2022-03-24 11:44:59 +03:00
Igor Boskovic 837669d1ac [Ubuntu] Fix issues with aliyun-cli URL #3468 (#5272) 2022-03-23 23:16:32 +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
Maksim Shilov 4d4f454424 [All OS] Output full version of git to software report (#5097) 2022-02-18 10:23:34 +03:00
Kévin Dunglas db5ec5cf33 feat: explain how to start PostgreSQL (#4909) 2022-02-16 10:55:13 +03:00
Dibir Magomedsaygitov 404da76e17 [Ubuntu] Implement helper to get GitHub package download URL (#4947) 2022-02-08 19:41:23 +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
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
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
Mikhail Koliada 1048793daa [Ubuntu] Add Eclipse Temurin (Adoptium) to Java installer (#4868) 2022-01-12 22:05:33 +03:00
Mikhail Koliada 29dbc46881 [Ubuntu] restart snapd during images generation (#4814) 2021-12-29 13:01:38 +03:00
Aleksandr Chebotov 92eeb55189 [Ubuntu] Add verbosity during software report generation (#4811)
* Add verbosity during software report generation

* Fix Get-CpanVersion

* set default ValidateExitCode value to $true

* update java test

* use lower-case for parameters
2021-12-28 11:16:20 +03:00
Mikhail Timofeev 20705eae35 Change capitalization for Readme name in CI ymls (#4796) 2021-12-22 21:24:04 +03:00
Mikhail Timofeev 986530d6bb Skip linter-check for readmes (#4794)
* Exclude readmes from the linter
* Add env variable with exclusion to the linter yml
* Rename Ubuntu readmes to correspond with the other images
* Remove trailing space in ubuntu software generator
* Rename Ubuntu1804-README.md to Ubuntu1804-Readme.md
* Rename Ubuntu2004-README.md to Ubuntu2004-Readme.md
2021-12-22 17:34:53 +03:00
Mikhail Koliada 5aca2192f7 [Ubuntu] get rid of homebrew post-gen script (#4634) 2021-12-22 10:41:15 +03:00
Mikhail Koliada 6e09f7e132 [Ubuntu] Do not use apt-fast (#4784) 2021-12-21 19:12:15 +03:00
Mikhail Koliada d2c5a46fcf [Ubuntu] put snapd auto refresh on hold (#4768) 2021-12-19 17:19:29 +03:00
Mikhail Koliada 459c5d1a21 [Ubuntu] list mysql-core dependencies explicitly (#4767) 2021-12-18 20:28:48 +03:00
Mikhail Timofeev 36f279b623 Cleanup /root/.cache directory (#4761) 2021-12-17 11:40:04 +03:00
Mikhail Koliada 73d58cc851 [Ubuntu] enable -e bash mode in mysql helper (#4752) 2021-12-16 14:56:33 +03:00