c8d4a4c170d0279573d84a9248a3164d85677468
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / arv-git-httpd / 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 . /usr/local/lib/arvbox/go-setup.sh
11
12 (cd /usr/local/bin && ln -sf arvados-server arvados-git-httpd)
13
14 if test "$1" = "--only-deps" ; then
15     exit
16 fi
17
18 /usr/local/lib/arvbox/runsu.sh flock $ARVADOS_CONTAINER_PATH/cluster_config.yml.lock /usr/local/lib/arvbox/cluster-config.sh
19
20 export PATH="$PATH:$ARVADOS_CONTAINER_PATH/git/bin"
21 cd ~git
22 exec /usr/local/bin/arvados-git-httpd