From: Peter Amstutz Date: Wed, 14 Jul 2021 20:39:02 +0000 (-0400) Subject: 17816: Make singularity-in-arvbox work X-Git-Tag: 2.3.0~143^2~5 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/879bde382ebf26aa593869cfff22cc7e85be6bb0 17816: Make singularity-in-arvbox work Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/tools/arvbox/lib/arvbox/docker/service/crunch-dispatch-local/run b/tools/arvbox/lib/arvbox/docker/service/crunch-dispatch-local/run deleted file mode 120000 index a388c8b67b..0000000000 --- a/tools/arvbox/lib/arvbox/docker/service/crunch-dispatch-local/run +++ /dev/null @@ -1 +0,0 @@ -/usr/local/lib/arvbox/runsu.sh \ No newline at end of file diff --git a/tools/arvbox/lib/arvbox/docker/service/crunch-dispatch-local/run b/tools/arvbox/lib/arvbox/docker/service/crunch-dispatch-local/run new file mode 100755 index 0000000000..821afdce50 --- /dev/null +++ b/tools/arvbox/lib/arvbox/docker/service/crunch-dispatch-local/run @@ -0,0 +1,30 @@ +#!/bin/bash +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +exec 2>&1 +set -ex -o pipefail + +. /usr/local/lib/arvbox/common.sh +. /usr/local/lib/arvbox/go-setup.sh + +flock /var/lib/gopath/gopath.lock go install "git.arvados.org/arvados.git/services/crunch-dispatch-local" +install $GOPATH/bin/crunch-dispatch-local /usr/local/bin +ln -sf arvados-server /usr/local/bin/crunch-run + +if test "$1" = "--only-deps" ; then + exit +fi + +cat > /usr/local/bin/crunch-run.sh <&1 -set -ex -o pipefail - -. /usr/local/lib/arvbox/common.sh -. /usr/local/lib/arvbox/go-setup.sh - -flock /var/lib/gopath/gopath.lock go install "git.arvados.org/arvados.git/services/crunch-dispatch-local" -install $GOPATH/bin/crunch-dispatch-local /usr/local/bin -ln -sf arvados-server /usr/local/bin/crunch-run - -if test "$1" = "--only-deps" ; then - exit -fi - -cat > /usr/local/bin/crunch-run.sh < /dev/null ; then +if ! (ps ax | grep -v grep | grep "crunch-dispatch") > /dev/null ; then waiting="$waiting crunch-dispatch" fi