18657: Still need to use bundle exec rake??? Fix binstubs/passenger
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / api / run-service
index b586afb65c70496ddd914cab5645e935d9230c86..0f55a254085cbbef4ce3ba87da49b33ca043b21c 100755 (executable)
@@ -16,9 +16,9 @@ else
   export RAILS_ENV=development
 fi
 
-run_bundler --without=development
-flock $GEM_HOME/gems.lock bundle exec passenger-config build-native-support
-flock $GEM_HOME/gems.lock 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]}