diff options
Diffstat (limited to 'docker/start.sh')
-rwxr-xr-x | docker/start.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/start.sh b/docker/start.sh index e223878..ec7ea0e 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -5,7 +5,11 @@ mongod --bind_ip 127.0.0.1 --dbpath ~/data & R CMD Rserve --vanilla & # import data +echo "Importing data and validating models" ruby -e "require 'lazar'; include OpenTox; Import.public_data if Model::Validation.all.empty?" +# get PubChem cids in advance to avoid timeout issues +echo "Importing PubChem CID's" +ruby -e "require 'lazar'; include OpenTox; Compound.all.each{|c| c.cid}" # start lazar service cd `ls -d $(gem environment gemdir)/gems/lazar-gui-*` |