18657: Almost working again, stupid Ruby
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / api / run-service
index 7df7b2820bf6a0b83bcb538ecb418e183e68afa8..e93dfec9bf0cf4d305a686728053a4bc8cd89b4e 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
+flock $GEM_HOME/gems.lock bin/passenger-config build-native-support
+flock $GEM_HOME/gems.lock bin/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 bin/passenger start --port=${services[api]}