lazar master and development
authorgebele <gebele@in-silico.ch>
Wed, 4 Apr 2018 15:31:14 +0000 (15:31 +0000)
committergebele <gebele@in-silico.ch>
Wed, 4 Apr 2018 15:31:14 +0000 (15:31 +0000)
lazar-development/Dockerfile [moved from lazar/Dockerfile with 100% similarity]
lazar-development/start.sh [moved from lazar/start.sh with 100% similarity]
lazar-master/Dockerfile [new file with mode: 0644]
lazar-master/start.sh [new file with mode: 0644]

similarity index 100%
rename from lazar/start.sh
rename to lazar-development/start.sh
diff --git a/lazar-master/Dockerfile b/lazar-master/Dockerfile
new file mode 100644 (file)
index 0000000..7cc2b3d
--- /dev/null
@@ -0,0 +1,55 @@
+FROM        base/archlinux
+MAINTAINER  in-silico toxicology GmbH
+
+RUN         pacman-db-upgrade && pacman -Syyu --noconfirm && pacman -S --noconfirm \
+            base-devel \
+            boost-libs \
+            cmake \
+            eigen3 \
+            fontconfig \
+            gcc-fortran \
+            git \
+            gsl \
+            jre7-openjdk-headless \
+            mongodb \
+            mongodb-tools \
+            r \
+            ruby \
+            swig \
+            vim \
+            wget && pacman -Scc --noconfirm
+
+RUN         useradd -ms /bin/bash ist
+RUN         echo "ist ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
+
+RUN         mkdir -p /data/db
+USER        ist
+WORKDIR     /home/ist
+
+RUN         wget https://cran.r-project.org/src/contrib/Rserve_1.7-3.tar.gz -O Rserve
+RUN         sudo R CMD INSTALL Rserve
+
+RUN         echo 'gem: --user-install --no-document' > ~/.gemrc
+ENV         PATH $PATH:/home/ist/.gem/ruby/2.5.0/bin
+RUN         export GEM_HOME=$(ruby -e 'print Gem.user_dir')
+RUN         gem install bundler
+RUN         bundle config --global silence_root_warning 1
+
+RUN         git clone https://github.com/opentox/lazar.git && \
+            cd lazar && \
+            ruby ext/lazar/extconf.rb && \
+            bundle install --path ~/.gem
+
+RUN         git clone https://github.com/opentox/qsar-report.git && \
+            cd qsar-report && \
+            bundle install --path ~/.gem
+
+RUN         git clone https://github.com/opentox/lazar-public-data.git
+
+RUN         git clone https://github.com/opentox/lazar-gui.git && \
+            cd lazar-gui && \
+            bundle install --path ~/.gem
+
+COPY        start.sh /home/ist/start.sh
+RUN         sudo chmod +x /home/ist/start.sh
+ENTRYPOINT  ["/home/ist/start.sh"]
diff --git a/lazar-master/start.sh b/lazar-master/start.sh
new file mode 100644 (file)
index 0000000..d114cb9
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+sudo mongod &
+R CMD Rserve --vanilla &
+cd $HOME/lazar-gui &&
+unicorn -p 8088 -c unicorn.rb -E production