2 if test -s /var/run/localip_override ; then
3 localip=$(cat /var/run/localip_override)
5 defaultdev=$(/sbin/ip route|awk '/default/ { print $5 }')
6 localip=$(ip addr show $defaultdev | grep 'inet ' | sed 's/ *inet \(.*\)\/.*/\1/')
9 export GEM_HOME=/var/lib/gems
10 export GEM_PATH=/var/lib/gems
26 if test "$(id arvbox -u 2>/dev/null)" = 0 ; then
35 if test -f Gemfile.lock ; then
40 if ! flock /var/lib/arvados/gems.lock bundle install --path $GEM_HOME --local --no-deployment $frozen "$@" ; then
41 flock /var/lib/arvados/gems.lock bundle install --path $GEM_HOME --no-deployment $frozen "$@"
46 pushd /var/lib/arvados/pip
47 for p in $(ls http*.tar.gz) ; do
49 ln -sf $p $(echo $p | sed 's/.*%2F\(.*\)/\1/')
52 for p in $(ls http*.whl) ; do
54 ln -sf $p $(echo $p | sed 's/.*%2F\(.*\)/\1/')
59 if ! pip install --no-index --find-links /var/lib/arvados/pip $1 ; then