aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-05 10:58:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-05 10:58:27 -0300
commitfdcd0c5f429297daeb139f783186f09bffb1f763 (patch)
tree1b2c987fb409522e588ec829e0379f79550a341d
parent6c0ba853951d8195a1d7ef7d7f5136d4f5db2cdd (diff)
downloadtrashman-fdcd0c5f429297daeb139f783186f09bffb1f763.tar.gz
trashman-fdcd0c5f429297daeb139f783186f09bffb1f763.tar.bz2
Feat: adds docker-compose
-rw-r--r--share/trashman/docker-compose/info1
-rwxr-xr-xshare/trashman/docker-compose/unix/linux/install14
-rwxr-xr-xshare/trashman/docker/unix/linux/debian/install2
3 files changed, 16 insertions, 1 deletions
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."