#!/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 if test "$1" != "--only-deps" ; then while [ ! -f $ARVADOS_CONTAINER_PATH/api.ready ]; do sleep 1 done fi cd /usr/src/arvados/apps/workbench if test -s $ARVADOS_CONTAINER_PATH/workbench_rails_env ; then export RAILS_ENV=$(cat $ARVADOS_CONTAINER_PATH/workbench_rails_env) else export RAILS_ENV=development fi run_bundler --without=development flock $GEM_HOME/gems.lock bin/bundle exec passenger-config build-native-support flock $GEM_HOME/gems.lock bin/bundle exec passenger-config install-standalone-runtime mkdir -p /usr/src/arvados/apps/workbench/tmp if test "$1" = "--only-deps" ; then # Workaround for validation that asserts there's a download URL # configured, which breaks rake if it is missing. cat >config/application.yml <