Skip to content

swiss-art-research-net/rds

Repository files navigation

RDS

SARI Reference Data Services

Platform Setup

  1. Clone the Metaphacts Docker Compose setup
  2. Copy the service-template directory in the Docker Compose setup
    1. cp -r service-template rds-global
  3. Create an .env file in your rds-global directory by copying it from the provided examples.
    1. cp database-config/.env_blazegraph .env
  4. Edit the obtained .env file:
    1. COMPOSE_PROJECT_NAME=rds-global
    2. HOST_NAME=swissartresearch.net
    3. METAPHACTORY_IMAGE=swissartresearx/rds-global:latest
  5. Edit the docker-compose.overwrite.yml file. See below for an example:
    1.  services:
           metaphactory:
               networks:
               - default
               mem_limit: 4g
               volumes:
               - /mnt/rds-global/runtime-data:/runtime-data:Z
               ports:
               - "10214:8080"
           blazegraph:
               ports:
               - 8080:8080
               volumes:
               - /mnt/rds-global/blazegraph-data:/blazegraph-data:Z
               environment:
               - JAVA_OPTS=-Xmx16g
               - QUERY_TIMEOUT=0
      
       networks:
           default:
               external:
               name: nginx_proxy_network
      
  6. In order to update the security configuration, it might be necessary to set the securityConfigStorageId environment parameter by editing the .env file:
    1. METAPHACTORY_OPTS=-Dconfig.storage.rds-global.type=nonVersionedFile -Dconfig.storage.rds-global.mutable=true -Dconfig.storage.rds-global.root=/rdsapps/rds-global

Data Preparation

Follow the separate instructions for data preparation for populating the database.