Skip to content
Merged
Show file tree
Hide file tree
Changes from 118 commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
3204954
add ubuntu 20 yml
Apr 28, 2020
849c1d3
add ubuntu 20.04
Apr 28, 2020
f064e45
add toolcache
Apr 28, 2020
ad0e9c9
add config
Apr 28, 2020
dffcf20
install ansible from oficial canonical repo
Apr 28, 2020
34aa7da
remove azure-cli
Apr 28, 2020
58f2403
remove azure-devops-cli
Apr 28, 2020
e369274
libcurl3 -> libcurl4
Apr 28, 2020
9ac1714
libcurl4
Apr 28, 2020
1bdbaef
install python2
Apr 28, 2020
e7d965f
install clang9 directly from apt-get
Apr 28, 2020
3581ff6
remove swift
Apr 28, 2020
bdf5714
fix libcurl in the right place
Apr 28, 2020
a453a74
remove docker-moby
Apr 28, 2020
3a7e2d7
remove dotnetcore-sdk
Apr 28, 2020
85096b6
remove haskell
Apr 28, 2020
d4cd970
remove azul jdk
Apr 28, 2020
306e34a
remove leingen
Apr 28, 2020
d64ce16
remove php
Apr 28, 2020
4e24f49
remove sbt
Apr 28, 2020
8bdf486
fix lsb release
Apr 28, 2020
69ed53c
remove mongodb
Apr 28, 2020
415ba01
remove >> for go installation
Apr 28, 2020
878bfee
install only python3
Apr 28, 2020
8a18322
remove pip version
Apr 28, 2020
5f75178
remove add-apt-repository -y ppa:apt-fast/stable
Apr 28, 2020
feda609
remove android
Apr 28, 2020
63109f3
remove powershell
Apr 28, 2020
2134f8d
remove python from tests
Apr 28, 2020
9677fa1
add java back
Apr 30, 2020
4fb3c0c
change heroku installation
Apr 30, 2020
3a3593c
get back leingen
Apr 30, 2020
5246913
get back android
Apr 30, 2020
43ebcb5
remove set -e from java installation
Apr 30, 2020
a851280
get back apt-fast
Apr 30, 2020
49977ca
remove git-lfs install from packagecloud
Apr 30, 2020
8ebf329
add pip installation for python2
Apr 30, 2020
0b384fd
get back set -e to java-tools.sh
Apr 30, 2020
8905e40
change ansible installation
Apr 30, 2020
4675006
add pip to python
Apr 30, 2020
955d3ec
Revert "install clang9 directly from apt-get"
May 5, 2020
1c2a8e5
Revert "change heroku installation"
May 5, 2020
ccce02a
Revert "remove php"
May 5, 2020
2d7e561
change CRLF to LF for php installation
May 5, 2020
888bdc9
get back heroku to template
May 5, 2020
088d235
get back haskell
May 6, 2020
af4f831
get back dotnet
May 13, 2020
47c2715
install pwsh via snap
May 13, 2020
de9a3b1
remove netcore 3.0 & 2.2
May 13, 2020
34562cc
add azpowershell
May 13, 2020
81d0914
Upgrade to Az 3.8
bergmeister Apr 27, 2020
0e51e3b
Update Validate-AzureModules.ps1
bergmeister Apr 27, 2020
9a7638d
Fix formatting in doc-string for Rust for Windows-image.
josteink Apr 27, 2020
6b6f0a8
added workaround for default DNS
Darleev May 1, 2020
a50d804
revert changes
Darleev May 5, 2020
bfea4a2
Don\'t create backup sed file (#792)
Apr 29, 2020
158df86
Updated README with new rules of tool installation. (#793)
AlenaSviridenko Apr 29, 2020
aa32530
Add Python toolcache installation from Github releases for Ubuntu (#704)
vsafonkin Apr 29, 2020
e7d77a0
Software list: "do not change" label. (#796)
Darleev Apr 29, 2020
33e02ac
Fail fast in image generation if not enough disk space for customers …
nikita-bykov Apr 30, 2020
1f5269c
Add FS-iSCSITarget-Server (#805)
al-cheb Apr 30, 2020
8170b9f
Updating readme file for win19 version 20200426.1
459680 Apr 30, 2020
333388e
Add Python tools installation from Github releases for Windows (#705)
vmapetr Apr 30, 2020
8b24f3b
Updating readme file for macOS version 20200425.1 (#801)
miketimofeev Apr 30, 2020
0dc9c1c
Updating readme file for win16 version 20200426.1
459680 Apr 30, 2020
1fe0306
change min free space to 18000Mb (#814)
miketimofeev Apr 30, 2020
3bb0609
Added java 13 package in VM (#795)
sima-zhu May 1, 2020
ca83dc0
Fix documentation for containertools
phozzy May 4, 2020
ef9b137
pre-create .composer folder to preserve permission
Darleev May 4, 2020
afba40e
added workaround for default DNS (#819)
Darleev May 5, 2020
b88f41a
Fix minor glitch in installer message
jthelin May 1, 2020
2cb2272
workaround reverted
Darleev May 5, 2020
62f34bb
Improve Windows provisioners stability (#733)
vmapetr May 5, 2020
1038b79
Improve Windows Visual Studio provisioners (#758)
vmapetr May 5, 2020
2bf89b3
Improve Windows browsers provisioners stability (#725)
vmapetr May 6, 2020
54b3031
Add retry logic for javatools (#802)
vsafonkin May 6, 2020
fe503a6
Add retry logic for Selenium server download (#807)
vsafonkin May 6, 2020
e132f30
Fix kubectl installation (#799)
vsafonkin May 6, 2020
05d8b9e
Disable crash reporting (#826)
al-cheb May 6, 2020
2249d5d
Fix maven environment variable (#831)
vsafonkin May 6, 2020
aa47c9f
Updating readme file for macOS version 20200430.1 (#846)
al-cheb May 7, 2020
339c075
Add nodejs toolcache for windows (#840)
dmitry-shibanov May 8, 2020
dcc9da4
Add nodejs tool cache for linux. (#839)
dmitry-shibanov May 9, 2020
dd3624c
Hide packages that are no longer required (#854)
al-cheb May 11, 2020
675f4fd
added SSDT workload to VS 2019 (#844)
Darleev May 11, 2020
27a633c
Install Go to hostedtoolcache directory on Ubuntu image (#848)
vsafonkin May 11, 2020
9f6e449
Install Go to hostedtoolcache directory on Windows image (#849)
vsafonkin May 11, 2020
9f61a1e
Updating readme file for win19 version 20200430.2
459680 May 11, 2020
72cc0c5
Updating readme file for ubuntu16 version 20200430.2
459680 May 11, 2020
05c180a
Install Windows 10 SDK (10.0.14393.795) via standalone installer (#862)
miketimofeev May 12, 2020
16ef4ef
Add msys2 installation and validation (#632)
vsafonkin May 12, 2020
66535aa
SQL Server Data-Tier Application Framework latest upgrade. (#863)
Darleev May 12, 2020
d8e24ea
Fix the cleanup script. (#856)
simpleprovider May 12, 2020
dbb4db9
Update Haskell tool Stack (#860)
Ailrun May 12, 2020
e83e55c
Updating readme file for win16 version 20200505.1
459680 May 12, 2020
c8a21ac
Updating readme file for ubuntu18 version 20200430.1
459680 May 12, 2020
4bdbc8d
Switch Expand-Archive to 7zip on Windows image generation (#861)
dibir-magomedsaygitov May 13, 2020
6a2a378
[Ubuntu] Add Azcopy10 (#871)
May 14, 2020
61b400d
Merge from master
May 14, 2020
8755db4
add condition to ansible
May 14, 2020
df85366
deprecated software Ubuntu 20.04
May 14, 2020
d5fe506
install powershell Ubuntu 20.04
May 14, 2020
0b54223
use function in ansible
May 14, 2020
99579f6
move preparemetadata.sh to installers folder
May 14, 2020
2ab2f90
update preimagedata.sh ubuntu20
May 14, 2020
f0c9dba
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 14, 2020
0905e9c
add confition for dotnetsdk
May 14, 2020
c459330
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 14, 2020
f33c14d
scripts/installers/2004/android.sh
May 14, 2020
8bd6aaf
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 14, 2020
8218e54
python.sh ubuntu 20.04
May 14, 2020
fa5384c
simplify conditions
May 14, 2020
5775db2
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 14, 2020
4d479b7
remove toolcache.json
May 14, 2020
c0eda0e
get back note in readme
May 14, 2020
046c778
remove workaround for git-lfs
May 14, 2020
f480fa5
Az 3.8.0 Ubuntu 20.04
May 14, 2020
f753957
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 14, 2020
e9b6008
fix kubernetes-tools in template
May 14, 2020
7355052
add helpers script to os.sh
May 14, 2020
9fe9aba
remove old android, old cabal
May 14, 2020
635726f
remove platform tools
May 14, 2020
2369a76
remove java7 for ubuntu20
May 14, 2020
5308769
stay only go 1.14 Ubuntu 20.04
May 15, 2020
aa819b9
add helper to python.sh
May 15, 2020
5f2e516
add os.sh helper to azpwsh and java
May 15, 2020
6fc4a4c
remove apis from documented
May 15, 2020
ba25404
remove addons google-api
May 15, 2020
dba9085
Install Az latest module
May 15, 2020
c11c0cc
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 15, 2020
cb6898f
get back swift
May 21, 2020
aada5b1
set java 11 as default
May 21, 2020
d5d92a5
change offer and sku
May 21, 2020
612dc1e
Revert "change offer and sku"
May 21, 2020
faf999d
Unite mercurial scripts
May 21, 2020
fdc606c
combine basic scripts for ubuntu 18 & 20
May 21, 2020
42fdcf5
add os.sh to basic.sh
May 21, 2020
c9a23bd
Revert "set java 11 as default"
May 21, 2020
c036e27
set Java11 by default, set Java8 for Androidsdk
May 21, 2020
ea95548
rework php script
May 22, 2020
eff796a
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/mike…
May 22, 2020
2c0b456
remove rid of php.sh files
May 22, 2020
7d11631
move installation to for loop
May 22, 2020
2a6153d
Merge branch 'master' of https://github.com/miketimofeev/virtual-envi…
May 22, 2020
faaa629
add disk space validation
May 22, 2020
659c715
Merge branch 'master' of github.com:miketimofeev/virtual-environments…
May 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions images.CI/azure-pipelines/ubuntu2004.yml
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
2 changes: 2 additions & 0 deletions images/linux/config/ubuntu2004.conf
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"
11 changes: 8 additions & 3 deletions images/linux/scripts/helpers/os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@

function isUbuntu16
{
lsb_release -d|grep 'Ubuntu 16' > /dev/null
lsb_release -d | grep -q 'Ubuntu 16'
Comment thread
alepauly marked this conversation as resolved.
}

function isUbuntu18
{
lsb_release -d|grep 'Ubuntu 18' > /dev/null
lsb_release -d | grep -q 'Ubuntu 18'
}

function isUbuntu20
{
lsb_release -d | grep -q 'Ubuntu 20'
}

function getOSVersionLabel
{
isUbuntu16 && echo xenial || echo bionic
lsb_release -cs
}
13 changes: 0 additions & 13 deletions images/linux/scripts/installers/1804/preparemetadata.sh

This file was deleted.

128 changes: 128 additions & 0 deletions images/linux/scripts/installers/2004/android.sh
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" \
Comment thread
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" \
Comment thread
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" \
Comment thread
miketimofeev marked this conversation as resolved.
Outdated
"cmake;3.6.4111459" \
Comment thread
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)"
173 changes: 173 additions & 0 deletions images/linux/scripts/installers/2004/basic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
#!/bin/bash
################################################################################
## File: basic.sh
Comment thread
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"
24 changes: 24 additions & 0 deletions images/linux/scripts/installers/2004/containers.sh
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)"
Loading