From 634d88eba14ef41402e95120f00230ab0a1e6041 Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 14 Dec 2017 12:05:39 +0100 Subject: set OS internal address for mongodb and rserve --- lib/lazar.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lazar.rb b/lib/lazar.rb index 71b33a0..66f6777 100644 --- a/lib/lazar.rb +++ b/lib/lazar.rb @@ -19,7 +19,7 @@ ENV["MONGOID_ENV"] = ENV["LAZAR_ENV"] ENV["RACK_ENV"] = ENV["LAZAR_ENV"] # should set sinatra environment # search for a central mongo database in use # http://opentox.github.io/installation/2017/03/07/use-central-mongodb-in-docker-environment -CENTRAL_MONGO_IP = "mongodb.lazar.svc" +CENTRAL_MONGO_IP = "mongodb" Mongoid.load_configuration({ :clients => { :default => { @@ -48,7 +48,7 @@ end #rlib = File.expand_path(File.join(File.dirname(__FILE__),"..","R")) # should work on POSIX including os x # http://stackoverflow.com/questions/19619582/number-of-processors-cores-in-command-line -CENTRAL_RSERVE_IP = "rserve.lazar.svc" +CENTRAL_RSERVE_IP = "rserve" NR_CORES = `getconf _NPROCESSORS_ONLN`.to_i if CENTRAL_RSERVE_IP.blank? R = Rserve::Connection.new -- cgit v1.2.3