diff options
Diffstat (limited to 'share/trashman/podman')
-rw-r--r-- | share/trashman/podman/info | 1 | ||||
-rwxr-xr-x | share/trashman/podman/unix/linux/ubuntu/install | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/share/trashman/podman/info b/share/trashman/podman/info new file mode 100644 index 0000000..f33ef80 --- /dev/null +++ b/share/trashman/podman/info @@ -0,0 +1 @@ +engine to run OCI-based containers in Pods diff --git a/share/trashman/podman/unix/linux/ubuntu/install b/share/trashman/podman/unix/linux/ubuntu/install new file mode 100755 index 0000000..f5236ae --- /dev/null +++ b/share/trashman/podman/unix/linux/ubuntu/install @@ -0,0 +1,32 @@ +#!/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" ] && (($VERSION <= 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 + +# Install podman +trashman_apt_install podman + +# Docker compose +#trashman_apt_install docker-compose +#trashman_apt_install python3-pip +#pip3 install podman-compose |