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 'upstream' into pl/refacotor-ontology-submission
- Loading branch information
Showing
29 changed files
with
956 additions
and
427 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
FROM ruby:2.6 | ||
ARG RUBY_VERSION | ||
ARG DISTRO_NAME=bullseye | ||
|
||
FROM ruby:$RUBY_VERSION-$DISTRO_NAME | ||
|
||
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \ | ||
openjdk-11-jre-headless \ | ||
raptor2-utils \ | ||
wait-for-it \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends vim openjdk-11-jre-headless raptor2-utils | ||
# The Gemfile Caching Trick | ||
RUN mkdir -p /srv/ontoportal/ontologies_linked_data | ||
RUN mkdir -p /srv/ontoportal/bundle | ||
COPY Gemfile* /srv/ontoportal/ontologies_linked_data/ | ||
|
||
WORKDIR /srv/ontoportal/ontologies_linked_data | ||
RUN gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)" | ||
RUN bundle install --binstubs | ||
|
||
COPY . /srv/ontoportal/ontologies_linked_data | ||
RUN gem update --system | ||
RUN gem install bundler | ||
ENV BUNDLE_PATH=/srv/ontoportal/bundle | ||
RUN bundle install | ||
|
||
# unit tests have to run with unprivileged user | ||
# otherwise TestOWLApi#test_command_KO_output test fails | ||
RUN adduser --disabled-password ontoportal | ||
RUN chown -R ontoportal /srv/ontoportal/ontologies_linked_data | ||
USER ontoportal | ||
COPY . /srv/ontoportal/ontologies_linked_data |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
### | ||
# This file is designed for use in docker based unit testing | ||
# | ||
# All the defaults are set in | ||
# https://github.com/ncbo/ontologies_linked_data/blob/master/lib/ontologies_linked_data/config/config.rb | ||
### | ||
|
||
GOO_BACKEND_NAME = ENV.include?("GOO_BACKEND_NAME") ? ENV["GOO_BACKEND_NAME"] : "4store" | ||
GOO_PATH_QUERY = ENV.include?("GOO_PATH_QUERY") ? ENV["GOO_PATH_QUERY"] : "/sparql/" | ||
GOO_PATH_DATA = ENV.include?("GOO_PATH_DATA") ? ENV["GOO_PATH_DATA"] : "/data/" | ||
GOO_PATH_UPDATE = ENV.include?("GOO_PATH_UPDATE") ? ENV["GOO_PATH_UPDATE"] : "/update/" | ||
GOO_PORT = ENV.include?("GOO_PORT") ? ENV["GOO_PORT"] : 9000 | ||
GOO_HOST = ENV.include?("GOO_HOST") ? ENV["GOO_HOST"] : "localhost" | ||
REDIS_HOST = ENV.include?("REDIS_HOST") ? ENV["REDIS_HOST"] : "localhost" | ||
REDIS_PORT = ENV.include?("REDIS_PORT") ? ENV["REDIS_PORT"] : 6379 | ||
SOLR_TERM_SEARCH_URL = ENV.include?("SOLR_TERM_SEARCH_URL") ? ENV["SOLR_TERM_SEARCH_URL"] : "http://localhost:8983/solr/term_search_core1" | ||
SOLR_PROP_SEARCH_URL = ENV.include?("SOLR_PROP_SEARCH_URL") ? ENV["SOLR_PROP_SEARCH_URL"] : "http://localhost:8983/solr/prop_search_core1" | ||
|
||
LinkedData.config do |config| | ||
config.goo_backend_name = GOO_BACKEND_NAME.to_s | ||
config.goo_host = GOO_HOST.to_s | ||
config.goo_port = GOO_PORT.to_i | ||
config.goo_path_query = GOO_PATH_QUERY.to_s | ||
config.goo_path_data = GOO_PATH_DATA.to_s | ||
config.goo_path_update = GOO_PATH_UPDATE.to_s | ||
config.goo_redis_host = REDIS_HOST.to_s | ||
config.goo_redis_port = REDIS_PORT.to_i | ||
config.http_redis_host = REDIS_HOST.to_s | ||
config.http_redis_port = REDIS_PORT.to_i | ||
config.ontology_analytics_redis_host = REDIS_HOST.to_s | ||
config.ontology_analytics_redis_port = REDIS_PORT.to_i | ||
config.search_server_url = SOLR_TERM_SEARCH_URL.to_s | ||
config.property_search_server_url = SOLR_PROP_SEARCH_URL.to_s | ||
# config.enable_notifications = false | ||
end |
Oops, something went wrong.