18657: Still need to use bundle exec rake??? Fix binstubs/passenger
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / api / run-service
index 7df7b2820bf6a0b83bcb538ecb418e183e68afa8..0f55a254085cbbef4ce3ba87da49b33ca043b21c 100755 (executable)
@@ -16,9 +16,9 @@ else
   export RAILS_ENV=development
 fi
 
-run_bundler --without=development
-bundle exec passenger-config build-native-support
-bundle exec passenger-config install-standalone-runtime
+run_bundler --without=development --binstubs=binstubs
+binstubs/passenger-config build-native-support
+binstubs/passenger-config install-standalone-runtime
 
 if test "$1" = "--only-deps" ; then
     exit
@@ -31,4 +31,6 @@ if test "$1" = "--only-setup" ; then
     exit
 fi
 
-exec bundle exec passenger start --port=${services[api]}
+touch $ARVADOS_CONTAINER_PATH/api.ready
+
+exec binstubs/passenger start --port=${services[api]}