aboutsummaryrefslogtreecommitdiff
path: root/share/trashman/podman/unix/linux/ubuntu/install
blob: 216ed607f85096127a2c1ecc07e317a87b8e67ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env sh
#
# Install Podman on Ubuntu
# Adapted from https://podman.io/getting-started/installation
#

# Parameters
SHARE="$1"
VERSION="7.3"

# Include basic functions
. $SHARE/trashman/functions || exit 1

# Load OS-related info
. /etc/os-release || exit 1

# Parse distro version
VERSION="`echo $VERSION_ID | tr -d '.'`"

# Only use packages from Kubic if on Ubuntu 20.04 or below
if [ "$NAME" = "Ubuntu" ]; then
  if [ $VERSION -le 2004 ]; then
    echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list
    curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
  fi
fi

# Install podman
trashman_apt_install podman

# Docker compose
#trashman_apt_install docker-compose
#trashman_apt_install python3-pip
#pip3 install podman-compose