From c9f8cd864a2b72e7330b8095691fa5c16fea83aa Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 30 Aug 2019 11:14:50 +0200 Subject: Dockerfile and start script added --- docker/start.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 docker/start.sh (limited to 'docker/start.sh') diff --git a/docker/start.sh b/docker/start.sh new file mode 100755 index 0000000..ad40a0e --- /dev/null +++ b/docker/start.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# start basic services +mongod --bind_ip 127.0.0.1 --dbpath ~/data & +R CMD Rserve --vanilla & + +# import data +ruby -e "require 'lazar'; include OpenTox; Import.public_data" + +# start lazar service +cd $HOME/lazar-gui +unicorn -p 8088 -E production -- cgit v1.2.3 From a84d9eabf1b921086a688f81df28b0f21ba4df19 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 3 Sep 2019 13:06:00 +0200 Subject: docker installation as gem, links with port numbers, version 1.4.0 --- docker/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docker/start.sh') diff --git a/docker/start.sh b/docker/start.sh index ad40a0e..07fefde 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -5,8 +5,8 @@ mongod --bind_ip 127.0.0.1 --dbpath ~/data & R CMD Rserve --vanilla & # import data -ruby -e "require 'lazar'; include OpenTox; Import.public_data" +ruby -e "require 'lazar'; include OpenTox; Import.public_data if Model::Validation.all.empty?" # start lazar service -cd $HOME/lazar-gui +cd $(gem which lazar-gui|sed 's#/lib/lazar-gui.rb/##') unicorn -p 8088 -E production -- cgit v1.2.3