-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add Ubuntu 20 image #883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AlenaSviridenko
merged 146 commits into
actions:master
from
miketimofeev:v-mitim/add_ubuntu_20_to_ci
May 26, 2020
Merged
Add Ubuntu 20 image #883
Changes from 118 commits
Commits
Show all changes
146 commits
Select commit
Hold shift + click to select a range
3204954
add ubuntu 20 yml
849c1d3
add ubuntu 20.04
f064e45
add toolcache
ad0e9c9
add config
dffcf20
install ansible from oficial canonical repo
34aa7da
remove azure-cli
58f2403
remove azure-devops-cli
e369274
libcurl3 -> libcurl4
9ac1714
libcurl4
1bdbaef
install python2
e7d965f
install clang9 directly from apt-get
3581ff6
remove swift
bdf5714
fix libcurl in the right place
a453a74
remove docker-moby
3a7e2d7
remove dotnetcore-sdk
85096b6
remove haskell
d4cd970
remove azul jdk
306e34a
remove leingen
d64ce16
remove php
4e24f49
remove sbt
8bdf486
fix lsb release
69ed53c
remove mongodb
415ba01
remove >> for go installation
878bfee
install only python3
8a18322
remove pip version
5f75178
remove add-apt-repository -y ppa:apt-fast/stable
feda609
remove android
63109f3
remove powershell
2134f8d
remove python from tests
9677fa1
add java back
4fb3c0c
change heroku installation
3a3593c
get back leingen
5246913
get back android
43ebcb5
remove set -e from java installation
a851280
get back apt-fast
49977ca
remove git-lfs install from packagecloud
8ebf329
add pip installation for python2
0b384fd
get back set -e to java-tools.sh
8905e40
change ansible installation
4675006
add pip to python
955d3ec
Revert "install clang9 directly from apt-get"
1c2a8e5
Revert "change heroku installation"
ccce02a
Revert "remove php"
2d7e561
change CRLF to LF for php installation
888bdc9
get back heroku to template
088d235
get back haskell
af4f831
get back dotnet
47c2715
install pwsh via snap
de9a3b1
remove netcore 3.0 & 2.2
34562cc
add azpowershell
81d0914
Upgrade to Az 3.8
bergmeister 0e51e3b
Update Validate-AzureModules.ps1
bergmeister 9a7638d
Fix formatting in doc-string for Rust for Windows-image.
josteink 6b6f0a8
added workaround for default DNS
Darleev a50d804
revert changes
Darleev bfea4a2
Don\'t create backup sed file (#792)
158df86
Updated README with new rules of tool installation. (#793)
AlenaSviridenko aa32530
Add Python toolcache installation from Github releases for Ubuntu (#704)
vsafonkin e7d77a0
Software list: "do not change" label. (#796)
Darleev 33e02ac
Fail fast in image generation if not enough disk space for customers …
nikita-bykov 1f5269c
Add FS-iSCSITarget-Server (#805)
al-cheb 8170b9f
Updating readme file for win19 version 20200426.1
459680 333388e
Add Python tools installation from Github releases for Windows (#705)
vmapetr 8b24f3b
Updating readme file for macOS version 20200425.1 (#801)
miketimofeev 0dc9c1c
Updating readme file for win16 version 20200426.1
459680 1fe0306
change min free space to 18000Mb (#814)
miketimofeev 3bb0609
Added java 13 package in VM (#795)
sima-zhu ca83dc0
Fix documentation for containertools
phozzy ef9b137
pre-create .composer folder to preserve permission
Darleev afba40e
added workaround for default DNS (#819)
Darleev b88f41a
Fix minor glitch in installer message
jthelin 2cb2272
workaround reverted
Darleev 62f34bb
Improve Windows provisioners stability (#733)
vmapetr 1038b79
Improve Windows Visual Studio provisioners (#758)
vmapetr 2bf89b3
Improve Windows browsers provisioners stability (#725)
vmapetr 54b3031
Add retry logic for javatools (#802)
vsafonkin fe503a6
Add retry logic for Selenium server download (#807)
vsafonkin e132f30
Fix kubectl installation (#799)
vsafonkin 05d8b9e
Disable crash reporting (#826)
al-cheb 2249d5d
Fix maven environment variable (#831)
vsafonkin aa47c9f
Updating readme file for macOS version 20200430.1 (#846)
al-cheb 339c075
Add nodejs toolcache for windows (#840)
dmitry-shibanov dcc9da4
Add nodejs tool cache for linux. (#839)
dmitry-shibanov dd3624c
Hide packages that are no longer required (#854)
al-cheb 675f4fd
added SSDT workload to VS 2019 (#844)
Darleev 27a633c
Install Go to hostedtoolcache directory on Ubuntu image (#848)
vsafonkin 9f6e449
Install Go to hostedtoolcache directory on Windows image (#849)
vsafonkin 9f61a1e
Updating readme file for win19 version 20200430.2
459680 72cc0c5
Updating readme file for ubuntu16 version 20200430.2
459680 05c180a
Install Windows 10 SDK (10.0.14393.795) via standalone installer (#862)
miketimofeev 16ef4ef
Add msys2 installation and validation (#632)
vsafonkin 66535aa
SQL Server Data-Tier Application Framework latest upgrade. (#863)
Darleev d8e24ea
Fix the cleanup script. (#856)
simpleprovider dbb4db9
Update Haskell tool Stack (#860)
Ailrun e83e55c
Updating readme file for win16 version 20200505.1
459680 c8a21ac
Updating readme file for ubuntu18 version 20200430.1
459680 4bdbc8d
Switch Expand-Archive to 7zip on Windows image generation (#861)
dibir-magomedsaygitov 6a2a378
[Ubuntu] Add Azcopy10 (#871)
61b400d
Merge from master
8755db4
add condition to ansible
df85366
deprecated software Ubuntu 20.04
d5fe506
install powershell Ubuntu 20.04
0b54223
use function in ansible
99579f6
move preparemetadata.sh to installers folder
2ab2f90
update preimagedata.sh ubuntu20
f0c9dba
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
0905e9c
add confition for dotnetsdk
c459330
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
f33c14d
scripts/installers/2004/android.sh
8bd6aaf
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
8218e54
python.sh ubuntu 20.04
fa5384c
simplify conditions
5775db2
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
4d479b7
remove toolcache.json
c0eda0e
get back note in readme
046c778
remove workaround for git-lfs
f480fa5
Az 3.8.0 Ubuntu 20.04
f753957
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
e9b6008
fix kubernetes-tools in template
7355052
add helpers script to os.sh
9fe9aba
remove old android, old cabal
635726f
remove platform tools
2369a76
remove java7 for ubuntu20
5308769
stay only go 1.14 Ubuntu 20.04
aa819b9
add helper to python.sh
5f2e516
add os.sh helper to azpwsh and java
6fc4a4c
remove apis from documented
ba25404
remove addons google-api
dba9085
Install Az latest module
c11c0cc
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
cb6898f
get back swift
aada5b1
set java 11 as default
d5d92a5
change offer and sku
612dc1e
Revert "change offer and sku"
faf999d
Unite mercurial scripts
fdc606c
combine basic scripts for ubuntu 18 & 20
42fdcf5
add os.sh to basic.sh
c9a23bd
Revert "set java 11 as default"
c036e27
set Java11 by default, set Java8 for Androidsdk
ea95548
rework php script
eff796a
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
2c0b456
remove rid of php.sh files
7d11631
move installation to for loop
2a6153d
Merge branch 'master' of https://github.com/miketimofeev/virtual-envi…
faaa629
add disk space validation
659c715
Merge branch 'master' of github.com:miketimofeev/virtual-environments…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| schedules: | ||
| - cron: "0 0 * * *" | ||
| displayName: Daily | ||
| branches: | ||
| include: | ||
| - master | ||
| always: true | ||
|
|
||
| trigger: none | ||
| pr: | ||
| autoCancel: true | ||
| branches: | ||
| include: | ||
| - master | ||
|
|
||
| jobs: | ||
| - template: image-generation.yml | ||
| parameters: | ||
| image_type: ubuntu2004 | ||
| image_readme_name: Ubuntu2004-README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Name of pool supported by this image | ||
| POOL_NAME="Ubuntu 2004" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| #!/bin/bash | ||
| ################################################################################ | ||
| ## File: android.sh | ||
| ## Desc: Installs Android SDK | ||
| ################################################################################ | ||
|
|
||
| set -e | ||
|
|
||
| # Source the helpers for use with the script | ||
| source $HELPER_SCRIPTS/document.sh | ||
| source $HELPER_SCRIPTS/apt.sh | ||
|
|
||
| # Set env variable for SDK Root (https://developer.android.com/studio/command-line/variables) | ||
| ANDROID_ROOT=/usr/local/lib/android | ||
| ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk | ||
| echo "ANDROID_SDK_ROOT=${ANDROID_SDK_ROOT}" | tee -a /etc/environment | ||
|
|
||
| # ANDROID_HOME is deprecated, but older versions of Gradle rely on it | ||
| echo "ANDROID_HOME=${ANDROID_SDK_ROOT}" | tee -a /etc/environment | ||
|
|
||
| # Create android sdk directory | ||
| mkdir -p ${ANDROID_SDK_ROOT} | ||
|
|
||
| # Download the latest command line tools so that we can accept all of the licenses. | ||
| # See https://developer.android.com/studio/#command-tools | ||
| wget -O android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | ||
| unzip android-sdk.zip -d ${ANDROID_SDK_ROOT} | ||
| rm -f android-sdk.zip | ||
|
|
||
| # Add required permissions | ||
| chmod -R a+X ${ANDROID_SDK_ROOT} | ||
|
|
||
| # Check sdk manager installation | ||
| /usr/local/lib/android/sdk/tools/bin/sdkmanager --list 1>/dev/null | ||
| if [ $? -eq 0 ] | ||
| then | ||
| echo "Android SDK manager was installed" | ||
| else | ||
| echo "Android SDK manager was not installed" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Install the following SDKs and build tools, passing in "y" to accept licenses. | ||
| echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \ | ||
| "ndk-bundle" \ | ||
| "platform-tools" \ | ||
| "platforms;android-29" \ | ||
| "platforms;android-28" \ | ||
| "platforms;android-27" \ | ||
| "platforms;android-26" \ | ||
| "platforms;android-25" \ | ||
| "platforms;android-24" \ | ||
| "build-tools;29.0.3" \ | ||
|
miketimofeev marked this conversation as resolved.
|
||
| "build-tools;29.0.2" \ | ||
| "build-tools;29.0.0" \ | ||
| "build-tools;28.0.3" \ | ||
| "build-tools;28.0.2" \ | ||
| "build-tools;28.0.1" \ | ||
| "build-tools;28.0.0" \ | ||
| "build-tools;27.0.3" \ | ||
| "build-tools;27.0.2" \ | ||
| "build-tools;27.0.1" \ | ||
| "build-tools;27.0.0" \ | ||
| "build-tools;26.0.3" \ | ||
| "build-tools;26.0.2" \ | ||
| "build-tools;26.0.1" \ | ||
| "build-tools;26.0.0" \ | ||
| "build-tools;25.0.3" \ | ||
| "build-tools;25.0.2" \ | ||
| "build-tools;25.0.1" \ | ||
| "build-tools;25.0.0" \ | ||
| "build-tools;24.0.3" \ | ||
| "build-tools;24.0.2" \ | ||
| "build-tools;24.0.1" \ | ||
| "build-tools;24.0.0" \ | ||
|
miketimofeev marked this conversation as resolved.
Outdated
|
||
| "extras;android;m2repository" \ | ||
| "extras;google;m2repository" \ | ||
| "extras;google;google_play_services" \ | ||
| "add-ons;addon-google_apis-google-24" \ | ||
| "add-ons;addon-google_apis-google-23" \ | ||
| "add-ons;addon-google_apis-google-22" \ | ||
| "add-ons;addon-google_apis-google-21" \ | ||
|
miketimofeev marked this conversation as resolved.
Outdated
|
||
| "cmake;3.6.4111459" \ | ||
|
miketimofeev marked this conversation as resolved.
Outdated
|
||
| "cmake;3.10.2.4988404" \ | ||
| "patcher;v4" | ||
|
|
||
| # Document what was added to the image | ||
| echo "Lastly, document what was added to the metadata file" | ||
| DocumentInstalledItem "Google Repository $(cat ${ANDROID_SDK_ROOT}/extras/google/m2repository/source.properties 2>&1 | grep Pkg.Revision | cut -d '=' -f 2)" | ||
| DocumentInstalledItem "Google Play services $(cat ${ANDROID_SDK_ROOT}/extras/google/google_play_services/source.properties 2>&1 | grep Pkg.Revision | cut -d '=' -f 2)" | ||
| DocumentInstalledItem "Google APIs 24" | ||
| DocumentInstalledItem "Google APIs 23" | ||
| DocumentInstalledItem "Google APIs 22" | ||
| DocumentInstalledItem "Google APIs 21" | ||
| DocumentInstalledItem "CMake $(ls ${ANDROID_SDK_ROOT}/cmake 2>&1)" | ||
| DocumentInstalledItem "Android Support Repository 47.0.0" | ||
| DocumentInstalledItem "Android SDK Platform-Tools $(cat ${ANDROID_SDK_ROOT}/platform-tools/source.properties 2>&1 | grep Pkg.Revision | cut -d '=' -f 2)" | ||
| DocumentInstalledItem "Android SDK Platform 29" | ||
| DocumentInstalledItem "Android SDK Platform 28" | ||
| DocumentInstalledItem "Android SDK Platform 27" | ||
| DocumentInstalledItem "Android SDK Platform 26" | ||
| DocumentInstalledItem "Android SDK Platform 25" | ||
| DocumentInstalledItem "Android SDK Platform 24" | ||
| DocumentInstalledItem "Android SDK Patch Applier v4" | ||
| DocumentInstalledItem "Android SDK Build-Tools 29.0.3" | ||
| DocumentInstalledItem "Android SDK Build-Tools 29.0.2" | ||
| DocumentInstalledItem "Android SDK Build-Tools 29.0.0" | ||
| DocumentInstalledItem "Android SDK Build-Tools 28.0.3" | ||
| DocumentInstalledItem "Android SDK Build-Tools 28.0.2" | ||
| DocumentInstalledItem "Android SDK Build-Tools 28.0.1" | ||
| DocumentInstalledItem "Android SDK Build-Tools 28.0.0" | ||
| DocumentInstalledItem "Android SDK Build-Tools 27.0.3" | ||
| DocumentInstalledItem "Android SDK Build-Tools 27.0.2" | ||
| DocumentInstalledItem "Android SDK Build-Tools 27.0.1" | ||
| DocumentInstalledItem "Android SDK Build-Tools 27.0.0" | ||
| DocumentInstalledItem "Android SDK Build-Tools 26.0.3" | ||
| DocumentInstalledItem "Android SDK Build-Tools 26.0.2" | ||
| DocumentInstalledItem "Android SDK Build-Tools 26.0.1" | ||
| DocumentInstalledItem "Android SDK Build-Tools 26.0.0" | ||
| DocumentInstalledItem "Android SDK Build-Tools 25.0.3" | ||
| DocumentInstalledItem "Android SDK Build-Tools 25.0.2" | ||
| DocumentInstalledItem "Android SDK Build-Tools 25.0.1" | ||
| DocumentInstalledItem "Android SDK Build-Tools 25.0.0" | ||
| DocumentInstalledItem "Android SDK Build-Tools 24.0.3" | ||
| DocumentInstalledItem "Android SDK Build-Tools 24.0.2" | ||
| DocumentInstalledItem "Android SDK Build-Tools 24.0.1" | ||
| DocumentInstalledItem "Android SDK Build-Tools 24.0.0" | ||
| DocumentInstalledItem "Android NDK $(cat ${ANDROID_SDK_ROOT}/ndk-bundle/source.properties 2>&1 | grep Pkg.Revision | cut -d ' ' -f 3)" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,173 @@ | ||
| #!/bin/bash | ||
| ################################################################################ | ||
| ## File: basic.sh | ||
|
miketimofeev marked this conversation as resolved.
|
||
| ## Desc: Installs basic command line utilities and dev packages | ||
| ################################################################################ | ||
|
|
||
| # Source the helpers for use with the script | ||
| source $HELPER_SCRIPTS/document.sh | ||
| source $HELPER_SCRIPTS/apt.sh | ||
|
|
||
| set -e | ||
|
|
||
| echo "Install python2" | ||
| apt-get install -y --no-install-recommends python-is-python2 | ||
|
|
||
| echo "Install dnsutils" | ||
| apt-get install -y --no-install-recommends dnsutils | ||
|
|
||
| echo "Install file" | ||
| apt-get install -y --no-install-recommends file | ||
|
|
||
| echo "Install ftp" | ||
| apt-get install -y --no-install-recommends ftp | ||
|
|
||
| echo "Install iproute2" | ||
| apt-get install -y --no-install-recommends iproute2 | ||
|
|
||
| echo "Install iputils-ping" | ||
| apt-get install -y --no-install-recommends iputils-ping | ||
|
|
||
| echo "Install jq" | ||
| apt-get install -y --no-install-recommends jq | ||
|
|
||
| echo "Install libcurl4" | ||
| apt-get install -y --no-install-recommends libcurl4 | ||
|
|
||
| echo "Install libunwind8" | ||
| apt-get install -y --no-install-recommends libunwind8 | ||
|
|
||
| echo "Install locales" | ||
| apt-get install -y --no-install-recommends locales | ||
|
|
||
| echo "Install netcat" | ||
| apt-get install -y --no-install-recommends netcat | ||
|
|
||
| echo "Install openssh-client" | ||
| apt-get install -y --no-install-recommends openssh-client | ||
|
|
||
| echo "Install rsync" | ||
| apt-get install -y --no-install-recommends rsync | ||
|
|
||
| echo "Install shellcheck" | ||
| apt-get install -y --no-install-recommends shellcheck | ||
|
|
||
| echo "Install sudo" | ||
| apt-get install -y --no-install-recommends sudo | ||
|
|
||
| echo "Install telnet" | ||
| apt-get install -y --no-install-recommends telnet | ||
|
|
||
| echo "Install time" | ||
| apt-get install -y --no-install-recommends time | ||
|
|
||
| echo "Install tzdata" | ||
| apt-get install -y --no-install-recommends tzdata | ||
|
|
||
| echo "Install unzip" | ||
| apt-get install -y --no-install-recommends unzip | ||
|
|
||
| echo "Install upx" | ||
| apt-get install -y --no-install-recommends upx | ||
|
|
||
| echo "Install wget" | ||
| apt-get install -y --no-install-recommends wget | ||
|
|
||
| echo "Install zip" | ||
| apt-get install -y --no-install-recommends zip | ||
|
|
||
| echo "Install zstd" | ||
| apt-get install -y --no-install-recommends zstd | ||
|
|
||
| echo "Install libxkbfile" | ||
| apt-get install -y --no-install-recommends libxkbfile-dev | ||
|
|
||
| echo "Install pkg-config" | ||
| apt-get install -y --no-install-recommends pkg-config | ||
|
|
||
| echo "Install libsecret-1-dev" | ||
| apt-get install -y --no-install-recommends libsecret-1-dev | ||
|
|
||
| echo "Install libxss1" | ||
| apt-get install -y --no-install-recommends libxss1 | ||
|
|
||
| echo "Install libgconf-2-4" | ||
| apt-get install -y --no-install-recommends libgconf-2-4 | ||
|
|
||
| echo "Install dbus" | ||
| apt-get install -y --no-install-recommends dbus | ||
|
|
||
| echo "Install xvfb" | ||
| apt-get install -y --no-install-recommends xvfb | ||
|
|
||
| echo "Install libgbm-dev" | ||
| apt-get install -y --no-install-recommends libgbm-dev | ||
|
|
||
| echo "Install libgtk" | ||
| apt-get install -y --no-install-recommends libgtk-3-0 | ||
|
|
||
| echo "Install tk" | ||
| apt install -y tk | ||
|
|
||
| echo "Install fakeroot" | ||
| apt-get install -y --no-install-recommends fakeroot | ||
|
|
||
| echo "Install dpkg" | ||
| apt-get install -y --no-install-recommends dpkg | ||
|
|
||
| echo "Install rpm" | ||
| apt-get install -y --no-install-recommends rpm | ||
|
|
||
| echo "Install xz-utils" | ||
| apt-get install -y --no-install-recommends xz-utils | ||
|
|
||
| echo "Install xorriso" | ||
| apt-get install -y --no-install-recommends xorriso | ||
|
|
||
| echo "Install zsync" | ||
| apt-get install -y --no-install-recommends zsync | ||
|
|
||
| echo "Install curl" | ||
| apt-get install -y --no-install-recommends curl | ||
|
|
||
| echo "Install parallel" | ||
| apt-get install -y --no-install-recommends parallel | ||
|
|
||
| # Run tests to determine that the software installed as expected | ||
| echo "Testing to make sure that script performed as expected, and basic scenarios work" | ||
| for cmd in curl file ftp jq netcat ssh parallel rsync shellcheck sudo telnet time unzip wget zip; do | ||
| if ! command -v $cmd; then | ||
| echo "$cmd was not installed" | ||
| exit 1 | ||
| fi | ||
| done | ||
|
|
||
| # Document what was added to the image | ||
| echo "Lastly, documenting what we added to the metadata file" | ||
| DocumentInstalledItem "Basic CLI:" | ||
| DocumentInstalledItemIndent "curl" | ||
| DocumentInstalledItemIndent "dnsutils" | ||
| DocumentInstalledItemIndent "file" | ||
| DocumentInstalledItemIndent "ftp" | ||
| DocumentInstalledItemIndent "iproute2" | ||
| DocumentInstalledItemIndent "iputils-ping" | ||
| DocumentInstalledItemIndent "jq" | ||
| DocumentInstalledItemIndent "libcurl3" | ||
| DocumentInstalledItemIndent "libgbm-dev" | ||
| DocumentInstalledItemIndent "libicu55" | ||
| DocumentInstalledItemIndent "libunwind8" | ||
| DocumentInstalledItemIndent "locales" | ||
| DocumentInstalledItemIndent "netcat" | ||
| DocumentInstalledItemIndent "openssh-client" | ||
| DocumentInstalledItemIndent "parallel" | ||
| DocumentInstalledItemIndent "rsync" | ||
| DocumentInstalledItemIndent "shellcheck" | ||
| DocumentInstalledItemIndent "sudo" | ||
| DocumentInstalledItemIndent "telnet" | ||
| DocumentInstalledItemIndent "time" | ||
| DocumentInstalledItemIndent "tzdata" | ||
| DocumentInstalledItemIndent "unzip" | ||
| DocumentInstalledItemIndent "upx" | ||
| DocumentInstalledItemIndent "wget" | ||
| DocumentInstalledItemIndent "zip" | ||
| DocumentInstalledItemIndent "zstd" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/bin/bash | ||
| ################################################################################ | ||
| ## File: containers.sh | ||
| ## Desc: Installs container tools: podman, buildah and skopeo onto the image | ||
| ################################################################################ | ||
|
|
||
| source $HELPER_SCRIPTS/apt.sh | ||
| source $HELPER_SCRIPTS/document.sh | ||
|
|
||
| source /etc/os-release | ||
| sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" | ||
| wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key | ||
| apt-key add - < Release.key | ||
| apt-get update -qq | ||
| apt-get -qq -y install podman buildah skopeo | ||
| mkdir -p /etc/containers | ||
| echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | tee /etc/containers/registries.conf | ||
|
|
||
| ## Add version information to the metadata file | ||
| echo "Documenting container tools version" | ||
| PODMAN_VERSION='podman --version' | ||
| BUILDAH_VERSION='buildah --version' | ||
| SKOPEO_VERSION='skopeo --version' | ||
| DocumentInstalledItem "Podman ($PODMAN_VERSION)\nBuildah ($BUILDAH_VERSION)\nSkopeo ($SKOPEO_VERSION)" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.