#!/usr/bin/env bash echo "Docker Linux packages also include Docker Buildx when installed using the DEB or RPM packages. See docker-buildx-plugin." exit 0 ARCH=$(dpkg --print-architecture) if [[ ${ARCH} == "armhf" ]]; then ARCH="arm-v7"; fi USER="docker" PROJECT="buildx" LICENSE="apache2" SECTION="admin" HOMEPAGE="https://docs.docker.com/buildx/working-with-buildx/" BUILD_HOME="/var/tmp/build_docker-buildx" #VERSION="2.1.0" PACKAGE="docker-buildx" 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="cyteen@ring-zero.co.uk" DEBFULLNAME="Cyteen May" DESCRIPTION="." LONG_DESCRIPTION=" ." EXCLUDES="/root/.wget-hsts" REQUIRES="docker-ce" BUILD_DIR="/var/tmp/build_docker-buildx" WORKDIR="/var/tmp/build_docker-buildx" ## 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 RSS_FEED="https://github.com/${USER}/${PROJECT}/releases.atom" # xdg-open ${RSS_FEED} echo ${RSS_FEED} #------------------------------------------------------------------------------- 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' Docker CLI plugin for extended build capabilities with BuildKit buildx is Tech Preview TL;DR Familiar UI from docker build Full BuildKit capabilities with container driver Multiple builder instance support Multi-node builds for cross-platform images Compose build support WIP: High-level build constructs (bake) In-container driver support (both Docker and Kubernetes) see: http://github.com/docker/buildx EOF cat >${BUILD_DIR}/checkinstall_it.sh <${BUILD_DIR}/install.sh <