16955: a number of fixes to make the federation migration tests pass
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / doc / run-service
1 #!/bin/bash
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 exec 2>&1
7 set -ex -o pipefail
8
9 . /usr/local/lib/arvbox/common.sh
10
11
12 cd /usr/src/arvados/doc
13 run_bundler --without=development
14
15 # Generating the R docs is expensive, so for development if the file
16 # "no-sdk" exists then skip the R stuff.
17 if [[ ! -f /usr/src/arvados/doc/no-sdk ]] ; then
18     cd /usr/src/arvados/sdk/R
19     R --quiet --vanilla --file=install_deps.R
20 fi
21
22 if test "$1" = "--only-deps" ; then
23     exit
24 fi
25
26 cd /usr/src/arvados/doc
27 flock $GEM_HOME/gems.lock bundle exec rake generate baseurl=http://$localip:${services[doc]} arvados_api_host=$localip:${services[controller-ssl]} arvados_workbench_host=http://$localip