21230: Fix binstubs generation in arvbox
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / vm / run-service
index 5369af31d0c086cd986e2b9de877b5e196439d28..2079bb1d0beb7ea44f3a02856f389e2f3fa2fa20 100755 (executable)
@@ -9,9 +9,14 @@ 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/services/login-sync
-run_bundler --binstubs=$PWD/binstubs
-ln -sf /usr/src/arvados/services/login-sync/binstubs/arvados-login-sync /usr/local/bin/arvados-login-sync
+run_bundler --binstubs=binstubs
 
 if test "$1" = "--only-deps" ; then
     exit