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
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.