lazar-gui 1.4.0.pre.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/VERSION +1 -1
- data/application.rb +2 -1
- data/bin/lazar-start.sh +1 -0
- data/docker/Dockerfile +18 -28
- data/docker/start.sh +2 -2
- data/views/layout.haml +1 -3
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ad561aa97606a3fea005b3093d9b8bdd0ccb7246564f1124f5f70cbd3f9a5a67
|
4
|
+
data.tar.gz: 736f17abe8d0c6df86e256f37dffdffddd4e367adbb5db322aa8cfad5463db11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c918b6a66502ef6c9652a7fa40fa99abf6a5c12d51752cb36feea1cc58b267b37171cf4965d5074b9f9bf896d04ad69a1ee295b87ee8e7326622195b9b42c45
|
7
|
+
data.tar.gz: 96343339b9ed6326fb0bc525ea860ff07d184d39d9aadafea3916ea00106657b052828f674efad23b6c8ab29102ca8ed577d3552eb4c7b32832f84e7f5513507
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.0
|
1
|
+
1.4.0
|
data/application.rb
CHANGED
@@ -27,7 +27,8 @@ end
|
|
27
27
|
before do
|
28
28
|
# use this hostname method instead to('/')
|
29
29
|
# allowes to set https for xhr requests
|
30
|
-
|
30
|
+
#$host_with_port = request.host =~ /localhost/ ? request.host_with_port : request.host
|
31
|
+
$host_with_port = request.host_with_port
|
31
32
|
$paths = [
|
32
33
|
"api",
|
33
34
|
"compound",
|
data/bin/lazar-start.sh
CHANGED
data/docker/Dockerfile
CHANGED
@@ -23,12 +23,17 @@ RUN pacman -Scc --noconfirm
|
|
23
23
|
|
24
24
|
RUN R -e "install.packages('Rserve', repos='http://rforge.net/')"
|
25
25
|
RUN pip install xlsx2csv
|
26
|
+
|
27
|
+
# install lazar-gui gem
|
28
|
+
RUN echo 'gem: --no-document' > /etc/gemrc
|
29
|
+
RUN gem install lazar-gui
|
30
|
+
|
26
31
|
RUN useradd -ms /bin/bash ist
|
27
32
|
|
28
|
-
# mongodb has been removed from main repositories
|
29
33
|
USER ist
|
30
34
|
WORKDIR /home/ist
|
31
35
|
RUN mkdir data
|
36
|
+
# mongodb has been removed from main repositories, AUR installation
|
32
37
|
RUN mkdir src
|
33
38
|
WORKDIR /home/ist/src
|
34
39
|
RUN wget https://aur.archlinux.org/cgit/aur.git/snapshot/mongodb-bin.tar.gz
|
@@ -36,38 +41,23 @@ RUN tar -xvzf mongodb-bin.tar.gz
|
|
36
41
|
WORKDIR /home/ist/src/mongodb-bin
|
37
42
|
RUN makepkg -s --noconfirm
|
38
43
|
|
39
|
-
#
|
40
|
-
USER root
|
41
|
-
RUN pacman -U --noconfirm /home/ist/src/mongodb-bin/mongodb-bin*.pkg.tar.xz
|
42
|
-
|
43
|
-
# install lazar-gui gem
|
44
|
-
RUN echo 'gem: --no-document' > /etc/gemrc
|
45
|
-
|
46
|
-
#RUN gem install lazar-gui
|
47
|
-
RUN gem install lazar
|
48
|
-
RUN gem install qsar-report
|
49
|
-
RUN gem install sinatra haml sass rdiscount unicorn
|
50
|
-
|
51
|
-
USER ist
|
52
|
-
WORKDIR /home/ist
|
53
|
-
RUN rm -r src
|
54
|
-
|
55
|
-
# lazar-gui
|
56
|
-
RUN git clone https://git.in-silico.ch/lazar-gui
|
57
|
-
WORKDIR lazar-gui
|
58
|
-
RUN git checkout prerelease
|
59
|
-
|
60
|
-
# SWAGGER for API
|
44
|
+
# rest api swagger gui
|
61
45
|
WORKDIR /home/ist
|
62
46
|
RUN git clone https://github.com/swagger-api/swagger-ui.git
|
63
47
|
COPY swagger.html /home/ist/swagger-ui/dist/index.html
|
64
48
|
|
65
|
-
# TODO adjust to lazar-gui gem path
|
66
|
-
RUN ln -s /home/ist/swagger-ui/dist/swagger-ui-bundle.js /home/ist/lazar-gui/public/swagger-ui-bundle.js
|
67
|
-
RUN ln -s /home/ist/swagger-ui/dist/swagger-ui-standalone-preset.js /home/ist/lazar-gui/public/swagger-ui-standalone-preset.js
|
68
|
-
RUN ln -s /home/ist/swagger-ui/dist/swagger-ui.css /home/ist/lazar-gui/public/swagger-ui.css
|
69
|
-
|
70
49
|
# start script
|
71
50
|
COPY start.sh /home/ist/start.sh
|
72
51
|
|
52
|
+
# mongodb installation requires root
|
53
|
+
USER root
|
54
|
+
RUN pacman -U --noconfirm /home/ist/src/mongodb-bin/mongodb-bin*.pkg.tar.xz
|
55
|
+
|
56
|
+
# swagger links
|
57
|
+
RUN ln -s /home/ist/swagger-ui/dist/swagger-ui-bundle.js $(gem which "lazar-gui"|sed 's#/lib/lazar-gui.rb/##')/public/swagger-ui-bundle.js
|
58
|
+
RUN ln -s /home/ist/swagger-ui/dist/swagger-ui-standalone-preset.js $(gem which "lazar-gui"|sed 's#/lib/lazar-gui.rb/##')/public/swagger-ui-standalone-preset.js
|
59
|
+
RUN ln -s /home/ist/swagger-ui/dist/swagger-ui.css $(gem which "lazar-gui"|sed 's#/lib/lazar-gui.rb/##')/public/swagger-ui.css
|
60
|
+
|
61
|
+
USER ist
|
62
|
+
RUN rm -r /home/ist/src
|
73
63
|
ENTRYPOINT ["/home/ist/start.sh"]
|
data/docker/start.sh
CHANGED
@@ -5,8 +5,8 @@ mongod --bind_ip 127.0.0.1 --dbpath ~/data &
|
|
5
5
|
R CMD Rserve --vanilla &
|
6
6
|
|
7
7
|
# import data
|
8
|
-
ruby -e "require 'lazar'; include OpenTox; Import.public_data"
|
8
|
+
ruby -e "require 'lazar'; include OpenTox; Import.public_data if Model::Validation.all.empty?"
|
9
9
|
|
10
10
|
# start lazar service
|
11
|
-
cd $
|
11
|
+
cd $(gem which lazar-gui|sed 's#/lib/lazar-gui.rb/##')
|
12
12
|
unicorn -p 8088 -E production
|
data/views/layout.haml
CHANGED
@@ -34,9 +34,7 @@
|
|
34
34
|
%div.container-fluid
|
35
35
|
%topline.alert
|
36
36
|
%p
|
37
|
-
Problems, bugs
|
38
|
-
%a{:href => 'https://github.com/opentox/lazar-gui/issues', :rel => "external"} issue tracker
|
39
|
-
, check out the
|
37
|
+
Problems, bugs or ideas for improvements ? Please check the
|
40
38
|
%a{:href=> "//#{$host_with_port}/predict/faq"} FAQ
|
41
39
|
page or send us an email.
|
42
40
|
%a{ :href=>"mailto:info@in-silico.ch?subject=[lazar v#{@version}]", :target=>"_top"}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazar-gui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Helma
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-09-
|
12
|
+
date: 2019-09-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: lazar
|
@@ -393,12 +393,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
393
393
|
version: '0'
|
394
394
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
395
395
|
requirements:
|
396
|
-
- - "
|
396
|
+
- - ">="
|
397
397
|
- !ruby/object:Gem::Version
|
398
|
-
version:
|
398
|
+
version: '0'
|
399
399
|
requirements: []
|
400
|
-
|
401
|
-
rubygems_version: 2.5.2.3
|
400
|
+
rubygems_version: 3.0.6
|
402
401
|
signing_key:
|
403
402
|
specification_version: 4
|
404
403
|
summary: lazar-gui
|