diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-03-31 18:18:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-03-31 18:18:14 -0300 |
commit | 838babebe87f480961d6ad1b5be6bc2e529f9fed (patch) | |
tree | 9ac16577f84c607bc7ce80f41b590e7373d76bcb | |
parent | 0872c0a1c20c9e52fce4b5a2e50bea23061bb573 (diff) | |
download | trashman-838babebe87f480961d6ad1b5be6bc2e529f9fed.tar.gz trashman-838babebe87f480961d6ad1b5be6bc2e529f9fed.tar.bz2 |
Feat: adds podman for Ubuntu
-rwxr-xr-x | share/trashman/php7/unix/linux/debian/install | 5 | ||||
-rw-r--r-- | share/trashman/podman/info | 1 | ||||
-rwxr-xr-x | share/trashman/podman/unix/linux/ubuntu/install | 32 |
3 files changed, 35 insertions, 3 deletions
diff --git a/share/trashman/php7/unix/linux/debian/install b/share/trashman/php7/unix/linux/debian/install index 0db691c..489d38c 100755 --- a/share/trashman/php7/unix/linux/debian/install +++ b/share/trashman/php7/unix/linux/debian/install @@ -11,11 +11,10 @@ VERSION="7.3" . $SHARE/trashman/functions || exit 1 # Requirements -trashman_require wget lsb-release apt-transport-https ca-certificates +trashman_require wget lsb-release apt-transport-https ca-certificates # Install #wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg cp $SHARE/php7/unix/linux/debian /etc/apt/trusted.gpg.d/php.gpg echo "deb https://packages.sury.org/php/ `lsb_release -sc` main" | tee /etc/apt/sources.list.d/php$VERSION.list -apt update -apt install php$VERSION +trashman_apt_install php$VERSION 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 |