]> gitweb.fluxo.info Git - trashman.git/commitdiff
Feat: adds docker-compose
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Apr 2021 13:58:27 +0000 (10:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Apr 2021 13:58:27 +0000 (10:58 -0300)
share/trashman/docker-compose/info [new file with mode: 0644]
share/trashman/docker-compose/unix/linux/install [new file with mode: 0755]
share/trashman/docker/unix/linux/debian/install

diff --git a/share/trashman/docker-compose/info b/share/trashman/docker-compose/info
new file mode 100644 (file)
index 0000000..cfdfdea
--- /dev/null
@@ -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 (executable)
index 0000000..a9b10eb
--- /dev/null
@@ -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
index 55d8a13d72e945f92471c2475b9b437cc47f0d29..c0c6d32c74ea13017c195ae3d8d0f94cc08a6fdb 100755 (executable)
@@ -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."