#!/usr/bin/env bash echo "docker-compose is now available as docker-compose-plugin via apt." exit 0 ARCH=$(dpkg --print-architecture) if [[ ${ARCH} == "armhf" ]]; then ARCH="arm-v7"; fi USER="docker" PROJECT="compose" # LICENSE="apache2" # SECTION="admin" # HOMEPAGE="https://https://docs.docker.com/compose/" # BUILD_HOME="/var/tmp/build_docker-compose" #VERSION="2.1.0" PACKAGE="docker-compose" VERSION=$(curl "https://api.github.com/repos/${USER}/${PROJECT}/tags?per_page=5" | jq '[ .[] | select(.name|test("v[[:digit:].]+$"))]|.[0] | .name') DEB_VERSION=$(echo "${VERSION}" | tr -d "\"" | tr -d "v") # strip the preceding 'v' #VERSION="1.0.0" ARCH=$(dpkg --print-architecture) MACHINE=$(uname -m) OS=$(uname -s) # DEBEMAIL="person@company.tld" # DEBFULLNAME="Testy McTester" # DESCRIPTION="." # LONG_DESCRIPTION=" ." RSS_FEED="https://github.com/${USER}/${PROJECT}/releases.atom" # xdg-open ${RSS_FEED} echo ${RSS_FEED} EXCLUDES="/root/.wget-hsts" REQUIRES="docker-ce" BUILD_DIR="/var/tmp/build_docker-compose" # WORKDIR="/var/tmp/build_docker-compose" ## Checkinstall variables - see defaults in /etc/checkinstallrc # DOC_DIR=/usr/share/doc # make a new temporary directory for this use to avoid permission issues. BASE_TMP_DIR=~/tmptmp/checkinstall_tmp #------------------------------------------------------------------------------- mkdir -p ${BUILD_DIR} ## Create and populate the install scripts and documentation for checkinstall cat >${BUILD_DIR}/description-pak <${BUILD_DIR}/preinstall-pak <${BUILD_DIR}/postinstall-pak <${BUILD_DIR}/preremove-pak <${BUILD_DIR}/postremove-pak <${BUILD_DIR}/doc-pak/README <<'EOF' Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your applications services. Then, with a single command, you create and start all the services from your configuration. To learn more about all the features of Compose, see the list of features. Compose works in all environments: production, staging, development, testing, as well as CI workflows. You can learn more about each case in Common Use Cases. Using Compose is basically a three-step process: 1. Define your apps environment with a Dockerfile so it can be reproduced anywhere. 2. Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment. 3. Run docker-compose up and Compose starts and runs your entire app. see: https://docs.docker.com/compose/ EOF cat >${BUILD_DIR}/checkinstall_it.sh <${BUILD_DIR}/install.sh <