install-buildah-ubuntu20.sh 782 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # https://gist.github.com/sebastianwebber/2c1e9c7df97e05479f22a0d13c00aeca
  3. #
  4. # prereq packages
  5. sudo apt-get update
  6. sudo apt-get install -y wget ca-certificates gnupg2
  7. # add repo and signing key
  8. VERSION_ID=$(lsb_release -r | cut -f2)
  9. echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel-kubic-libcontainers-stable.list
  10. curl -Ls https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_$VERSION_ID/Release.key | sudo apt-key add -
  11. sudo apt-get update
  12. # install buildah and podman
  13. sudo apt install buildah -y
  14. # fix known issue 11745 with [machine] entry
  15. sudo sed -i 's/^\[machine\]$/#\[machine\]/' /usr/share/containers/containers.conf