From fdcd0c5f429297daeb139f783186f09bffb1f763 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 5 Apr 2021 10:58:27 -0300 Subject: Feat: adds docker-compose --- share/trashman/docker-compose/info | 1 + share/trashman/docker-compose/unix/linux/install | 14 ++++++++++++++ share/trashman/docker/unix/linux/debian/install | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 share/trashman/docker-compose/info create mode 100755 share/trashman/docker-compose/unix/linux/install (limited to 'share') diff --git a/share/trashman/docker-compose/info b/share/trashman/docker-compose/info new file mode 100644 index 0000000..cfdfdea --- /dev/null +++ b/share/trashman/docker-compose/info @@ -0,0 +1 @@ +tool for defining and running multi-container Docker applications diff --git a/share/trashman/docker-compose/unix/linux/install b/share/trashman/docker-compose/unix/linux/install new file mode 100755 index 0000000..a9b10eb --- /dev/null +++ b/share/trashman/docker-compose/unix/linux/install @@ -0,0 +1,14 @@ +#!/usr/bin/env sh +# +# Install docker-compose system-wide. +# + +# Parameters +SHARE="$1" +VERSION="1.28.6" + +# Include basic functions +. $SHARE/trashman/functions || exit 1 + +# One-liner install +curl -L "https://github.com/docker/compose/releases/download/$VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose diff --git a/share/trashman/docker/unix/linux/debian/install b/share/trashman/docker/unix/linux/debian/install index 55d8a13..c0c6d32 100755 --- a/share/trashman/docker/unix/linux/debian/install +++ b/share/trashman/docker/unix/linux/debian/install @@ -25,7 +25,7 @@ curl -fsSL https://download.docker.com/linux/$DISTRO/gpg | gpg --yes --dearmor - echo "deb [arch=$ARCH signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/$DISTRO $RELEASE stable" > /etc/apt/sources.list.d/docker.list # Update and install -apt-get update && trashman_apt_install docker-ce docker-compose || exit 1 +apt-get update && trashman_apt_install docker-ce || exit 1 # Additional info trashman_echo "Docker sucessfully installed." -- cgit v1.2.3