forked from ontoportal/ontologies_linked_data
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pl/feature-instances
- Loading branch information
Showing
14 changed files
with
159 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Git | ||
.git | ||
.gitignore | ||
# Logs | ||
log/* | ||
# Temp files | ||
tmp/* | ||
# Editor temp files | ||
*.swp | ||
*.swo | ||
test/solr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,12 @@ def config(&block) | |
@settings.search_server_url ||= 'http://localhost:8983/solr/term_search_core1' | ||
@settings.property_search_server_url ||= 'http://localhost:8983/solr/prop_search_core1' | ||
@settings.repository_folder ||= './test/data/ontology_files/repo' | ||
@settings.rest_url_prefix ||= DEFAULT_PREFIX | ||
@settings.rest_url_prefix ||= 'http://data.bioontology.org/' | ||
@settings.enable_security ||= false | ||
@settings.enable_slices ||= false | ||
|
||
# Java/JVM options | ||
@settings.java_max_heap_size ||= '10240M' | ||
### these params should be not ussed any more | ||
# removed so that dependencies shout | ||
# | ||
|
@@ -40,8 +42,9 @@ def config(&block) | |
# ### | ||
|
||
@settings.ui_host ||= 'bioportal.bioontology.org' | ||
@settings.replace_url_prefix ||= false | ||
@settings.id_url_prefix ||= DEFAULT_PREFIX | ||
@settings.replace_url_prefix ||= false | ||
@settings.id_url_prefix ||= 'http://data.bioontology.org/' | ||
|
||
@settings.queries_debug ||= false | ||
@settings.enable_monitoring ||= false | ||
@settings.cube_host ||= 'localhost' | ||
|
@@ -67,10 +70,10 @@ def config(&block) | |
@settings.purl_username ||= '' | ||
@settings.purl_password ||= '' | ||
@settings.purl_maintainers ||= '' | ||
@settings.purl_target_url_prefix ||= 'http://bioportal.bioontology.org' | ||
@settings.purl_target_url_prefix ||= 'http://bioportal.bioontology.org' | ||
|
||
# Email settings | ||
@settings.enable_notifications ||= false | ||
@settings.enable_notifications ||= false | ||
@settings.email_sender ||= '[email protected]' # Default sender for emails | ||
@settings.email_override ||= '[email protected]' # By default, all email gets sent here. Disable with email_override_disable. | ||
@settings.email_disable_override ||= false | ||
|
@@ -94,17 +97,17 @@ def config(&block) | |
unless @settings.redis_host.nil? | ||
puts "Error: 'redis_host' is not a valid conf parameter." | ||
puts ' Redis databases were split into multiple hosts (09/22/13).' | ||
raise StandardError, 'redis_host is not a valid conf parameter.' | ||
end | ||
|
||
# Check to make sure url prefix has trailing slash | ||
@settings.rest_url_prefix = "#{@settings.rest_url_prefix}/" unless @settings.rest_url_prefix[-1].eql?('/') | ||
|
||
puts "(LD) >> Using rdf store #{@settings.goo_host}:#{@settings.goo_port}" | ||
puts "(LD) >> Using term search server at #{@settings.search_server_url}" | ||
puts "(LD) >> Using property search server at #{@settings.property_search_server_url}" | ||
puts "(LD) >> Using HTTP Redis instance at #{@settings.http_redis_host}:#{@settings.http_redis_port}" | ||
puts "(LD) >> Using Goo Redis instance at #{@settings.goo_redis_host}:#{@settings.goo_redis_port}" | ||
puts '(LD) >> Using HTTP Redis instance at '+ | ||
"#{@settings.http_redis_host}:#{@settings.http_redis_port}" | ||
puts '(LD) >> Using Goo Redis instance at '+ | ||
"#{@settings.goo_redis_host}:#{@settings.goo_redis_port}" | ||
|
||
connect_goo unless overide_connect_goo | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,42 @@ | ||
version: '3' | ||
|
||
services: | ||
unit-test: | ||
# volumes: | ||
# - .:/srv/ontoportal/ontologies_linked_data | ||
build: . | ||
#command: "bundle exec rake test TESTOPTS='-v' TEST='./test/parser/test_owl_api_command.rb'" | ||
ld-unit-test: | ||
build: ../. | ||
environment: | ||
- OVERRIDE_CONNECT_GOO=true | ||
- GOO_BACKEND_NAME=4store | ||
- GOO_PORT=9000 | ||
- GOO_HOST=4store | ||
- GOO_HOST=4store-ut | ||
- GOO_PATH_QUERY=/sparql/ | ||
- GOO_PATH_DATA=/data/ | ||
- GOO_PATH_UPDATE=/update/ | ||
- OVERRIDE_CONNECT_GOO=true | ||
- REDIS_HOST=redis | ||
- REDIS_HOST=redis-ut | ||
- REDIS_PORT=6379 | ||
- SOLR_HOST=solr | ||
command: "bundle exec rake test TESTOPTS='-v'" | ||
- SOLR_HOST=ld-solr-ut | ||
command: "rake test TESTOPTS='-v'" | ||
depends_on: | ||
- solr | ||
- redis | ||
- 4store | ||
- ld-solr-ut | ||
- redis-ut | ||
- 4store-ut | ||
|
||
redis: | ||
redis-ut: | ||
image: redis | ||
|
||
4store: | ||
4store-ut: | ||
image: bde2020/4store | ||
ports: | ||
- "9000:9000" | ||
command: > | ||
bash -c "4s-backend-setup --segments 4 ontoportal_kb | ||
&& 4s-backend ontoportal_kb | ||
&& 4s-httpd -D -s-1 -p 9000 ontoportal_kb" | ||
solr: | ||
image: solr:8.8 | ||
ld-solr-ut: | ||
image: solr:8 | ||
volumes: | ||
- ./test/solr/configsets:/configsets:ro | ||
ports: | ||
- "8983:8983" | ||
- ./solr/configsets:/configsets:ro | ||
#ports: | ||
# - "8983:8983" | ||
command: > | ||
bash -c "precreate-core term_search_core1 /configsets/term_search | ||
&& precreate-core prop_search_core1 /configsets/property_search | ||
&& solr-foreground" | ||
# mgrep: | ||
# image: ontoportal/mgrep-ncbo:0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# sample script to run unit tests with docker | ||
|
||
# add config for unit testing | ||
[ -f ../config/config.rb ] || cp ../config/config.rb.sample ../config/config.rb | ||
|
||
#generate solr configsets for solr container | ||
solr/generate_ncbo_configsets.sh | ||
|
||
# build docker containers | ||
docker-compose build | ||
|
||
#docker-compose up --exit-code-from unit-test | ||
docker-compose run --rm ld-unit-test wait-for-it ld-solr-ut:8983 -- bundle exec rake test TESTOPTS='-v' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.