[ARVADOS] updated: 1.1.2-44-g2e34a09
Git user
git at public.curoverse.com
Tue Jan 9 17:03:40 EST 2018
Summary of changes:
tools/arvbox/lib/arvbox/docker/common.sh | 7 +++----
tools/arvbox/lib/arvbox/docker/runit/2 | 4 ++++
tools/arvbox/lib/arvbox/docker/runit/{3 => ctrlaltdel} | 5 ++---
tools/arvbox/lib/arvbox/docker/service/ready/run-service | 3 ---
tools/arvbox/lib/arvbox/docker/service/workbench/run | 4 +++-
5 files changed, 12 insertions(+), 11 deletions(-)
copy tools/arvbox/lib/arvbox/docker/runit/{3 => ctrlaltdel} (70%)
via 2e34a09b23917fb99c37b480e70edbfd35308a71 (commit)
from b60535ff2b3be175009cf0f324f6ac333f26fcc7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 2e34a09b23917fb99c37b480e70edbfd35308a71
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Tue Jan 9 17:02:49 2018 -0500
12940: Fix bundler issues
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/tools/arvbox/lib/arvbox/docker/common.sh b/tools/arvbox/lib/arvbox/docker/common.sh
index c5e1523..2cb8473 100644
--- a/tools/arvbox/lib/arvbox/docker/common.sh
+++ b/tools/arvbox/lib/arvbox/docker/common.sh
@@ -46,17 +46,16 @@ run_bundler() {
else
frozen=""
fi
- if ! test -x bundle ; then
+ if ! test -x /var/lib/gems/bin/bundler ; then
bundlergem=$(ls -r $GEM_HOME/cache/bundler-*.gem 2>/dev/null | head -n1 || true)
if test -n "$bundlergem" ; then
flock /var/lib/gems/gems.lock gem install --local --no-document $bundlergem
else
flock /var/lib/gems/gems.lock gem install --no-document bundler
fi
- ln -sf /var/lib/gems/bin/bundle /usr/local/bin
fi
- if ! flock /var/lib/gems/gems.lock bundle install --path $GEM_HOME --local --no-deployment $frozen "$@" ; then
- flock /var/lib/gems/gems.lock bundle install --path $GEM_HOME --no-deployment $frozen "$@"
+ if ! flock /var/lib/gems/gems.lock bundler install --path $GEM_HOME --local --no-deployment $frozen "$@" ; then
+ flock /var/lib/gems/gems.lock bundler install --path $GEM_HOME --no-deployment $frozen "$@"
fi
}
diff --git a/tools/arvbox/lib/arvbox/docker/runit/2 b/tools/arvbox/lib/arvbox/docker/runit/2
index eae8c82..6b092ea 100755
--- a/tools/arvbox/lib/arvbox/docker/runit/2
+++ b/tools/arvbox/lib/arvbox/docker/runit/2
@@ -2,5 +2,9 @@
PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
+echo
+echo "Arvados-in-a-box starting"
+echo
+
exec env - PATH=$PATH \
runsvdir -P $SVDIR
diff --git a/tools/arvbox/lib/arvbox/docker/runit/ctrlaltdel b/tools/arvbox/lib/arvbox/docker/runit/ctrlaltdel
new file mode 100755
index 0000000..02bb2ea
--- /dev/null
+++ b/tools/arvbox/lib/arvbox/docker/runit/ctrlaltdel
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
+
+LAST=0
+test -x /run/runit.reboot && LAST=6
+
+echo 'Waiting for services to stop...'
+sv -w196 force-stop $SVDIR/*
+sv exit $SVDIR/*
+
+echo 'Shutdown...'
diff --git a/tools/arvbox/lib/arvbox/docker/service/ready/run-service b/tools/arvbox/lib/arvbox/docker/service/ready/run-service
index 3c7eff6..6d5fe24 100755
--- a/tools/arvbox/lib/arvbox/docker/service/ready/run-service
+++ b/tools/arvbox/lib/arvbox/docker/service/ready/run-service
@@ -8,9 +8,6 @@
set -eu -o pipefail
if ! [[ -d /tmp/arvbox-ready ]] ; then
- echo
- echo "Arvados-in-a-box starting"
- echo
echo "Note: if this is a fresh arvbox installation, it may take 10-15 minutes (or longer) to download and"
echo "install dependencies. Use \"arvbox log\" to monitor the progress of specific services."
echo
diff --git a/tools/arvbox/lib/arvbox/docker/service/workbench/run b/tools/arvbox/lib/arvbox/docker/service/workbench/run
index a41922b..d90a2e2 100755
--- a/tools/arvbox/lib/arvbox/docker/service/workbench/run
+++ b/tools/arvbox/lib/arvbox/docker/service/workbench/run
@@ -1,10 +1,12 @@
-#!/bin/sh
+#!/bin/bash
# Copyright (C) The Arvados Authors. All rights reserved.
#
# SPDX-License-Identifier: AGPL-3.0
set -e
+. /usr/local/lib/arvbox/common.sh
+
/usr/local/lib/arvbox/runsu.sh $0-service $1
cd /usr/src/arvados/apps/workbench
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list