From e54ef05f9e10b28ea105d4e82a09ee05e00857ee Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 1 Apr 2020 11:59:06 -0400 Subject: [PATCH] 16217: Update startup scripts to run "arvados-server ws". Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- sdk/python/tests/run_test_server.py | 3 ++- .../docker/service/websockets/run-service | 26 +++---------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/sdk/python/tests/run_test_server.py b/sdk/python/tests/run_test_server.py index 262b9d2a2c..93be8dc21f 100644 --- a/sdk/python/tests/run_test_server.py +++ b/sdk/python/tests/run_test_server.py @@ -430,7 +430,8 @@ def run_ws(): stop_ws() port = internal_port_from_config("Websocket") logf = open(_logfilename('ws'), 'a') - ws = subprocess.Popen(["ws"], + ws = subprocess.Popen( + ["arvados-server", "ws"], stdin=open('/dev/null'), stdout=logf, stderr=logf, close_fds=True) with open(_pidfile('ws'), 'w') as f: f.write(str(ws.pid)) diff --git a/tools/arvbox/lib/arvbox/docker/service/websockets/run-service b/tools/arvbox/lib/arvbox/docker/service/websockets/run-service index d2585a6666..efa2e08a7a 100755 --- a/tools/arvbox/lib/arvbox/docker/service/websockets/run-service +++ b/tools/arvbox/lib/arvbox/docker/service/websockets/run-service @@ -7,34 +7,14 @@ exec 2>&1 set -ex -o pipefail . /usr/local/lib/arvbox/common.sh - -if test -s /var/lib/arvados/api_rails_env ; then - RAILS_ENV=$(cat /var/lib/arvados/api_rails_env) -else - RAILS_ENV=development -fi - . /usr/local/lib/arvbox/go-setup.sh -flock /var/lib/gopath/gopath.lock go install "git.arvados.org/arvados.git/services/ws" -install $GOPATH/bin/ws /usr/local/bin/arvados-ws +(cd /usr/local/bin && ln -sf arvados-server arvados-ws) if test "$1" = "--only-deps" ; then exit fi -database_pw=$(cat /var/lib/arvados/api_database_pw) - -cat >/var/lib/arvados/arvados-ws.yml <