Serialize the service startup in arvbox by adding a dependency on the
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / workbench / run-service
index b40d4f5699abd727b7fd54a0cbcdb30bcaba8617..eba22372fbd908fdfa4f09527763b1865ce45905 100755 (executable)
@@ -8,6 +8,12 @@ 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