From c4d570aa26d80e36c34ef0deffcc13d5cb55119c Mon Sep 17 00:00:00 2001 From: Andrew Seigner Date: Thu, 21 Jun 2018 23:13:29 +0100 Subject: [PATCH] Revert usage of parallel in docker-build (#1183) PR #978 introduced usage of parallel in docker-build. Unfortunately this breaks if the system has non-GNU parallel. Remove usage of parallel until we can do at least one of the following: - detect version of parallel installed - make usage of parallel optional and off by default - confirm this speeds up builds for a majority of use cases Signed-off-by: Andrew Seigner --- bin/docker-build | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/bin/docker-build b/bin/docker-build index 3c97e1858..9ce5da652 100755 --- a/bin/docker-build +++ b/bin/docker-build @@ -9,24 +9,11 @@ fi bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -containers=$(cat <<-END -controller -web -proxy-init -grafana -proxy -END -) - +$bindir/docker-build-controller +$bindir/docker-build-web +$bindir/docker-build-proxy-init if [ -z "${CONDUIT_SKIP_CLI_CONTAINER:-}" ]; then - containers=$(printf "$containers\ncli-bin") + $bindir/docker-build-cli-bin fi - -if which parallel >/dev/null; then - cmd="parallel $bindir/docker-build-{}" -else - printf "Install parallel to speed the build up (brew install parallel)\n" >&2 - cmd="xargs -I{} /bin/sh -c $bindir/docker-build-{}" -fi - -echo "$containers" | $cmd +$bindir/docker-build-grafana +$bindir/docker-build-proxy