mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-11 20:26:50 +00:00
* Ubuntu 20 Deprecation updates * Updating .md files * Update announcement.yml * Update bug-report.yml * Update tool-request.yml * Updating merge conflicts * Updating .md files * Updating merge conflicts * Resolved merge conflicts --------- Co-authored-by: Prabhat kumar <prabhatkumar59@Prabhats-Laptop.local>
34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-container-tools.sh
|
|
## Desc: Install container tools: podman, buildah and skopeo onto the image
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/os.sh
|
|
|
|
#
|
|
# pin podman due to https://github.com/actions/runner-images/issues/7753
|
|
# https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
|
|
#
|
|
if ! is_ubuntu22; then
|
|
install_packages=(podman buildah skopeo)
|
|
else
|
|
install_packages=(podman=3.4.4+ds1-1ubuntu1 buildah skopeo)
|
|
fi
|
|
|
|
|
|
if is_ubuntu22; then
|
|
# Install containernetworking-plugins for Ubuntu 22
|
|
curl -O http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-github-containernetworking-plugins/containernetworking-plugins_1.1.1+ds1-3build1_amd64.deb
|
|
dpkg -i containernetworking-plugins_1.1.1+ds1-3build1_amd64.deb
|
|
fi
|
|
|
|
# Install podman, buildah, skopeo container's tools
|
|
apt-get update
|
|
apt-get install ${install_packages[@]}
|
|
mkdir -p /etc/containers
|
|
printf "[registries.search]\nregistries = ['docker.io', 'quay.io']\n" | tee /etc/containers/registries.conf
|
|
|
|
invoke_tests "Tools" "Containers"
|