HUB
Sign inSign up

samply/samply.store

Sponsored OSS

By samply

•Updated about 8 years ago

Foo

Image
2

8.4K

samply/samply.store repository overview

⁠Docker Samply.Store Tomcat

A Samply.Store Docker image based on tomcat:8.5.32-jre8-alpine⁠. The Samply.Store is configured alike that one from the windows installer. The Postgres database has to be supplied in another Docker container. The connection settings are given by environment variables which are documented below.

⁠Environment

  • MDR_URL - api-url of mdr host, defaults to http://mdr.germanbiobanknode.de/v3/api/mdr
  • MDR_NAMESPACE - current namespace which changes after every change depending data-elements, defaults to mdr16
  • MDR_MAP - mapping of mdr elements and db, defaults to <dataElementGroup name="biobank">urn:mdr16:dataelementgroup:1:1</dataElementGroup><dataElementGroup name="collection">urn:mdr16:dataelementgroup:2:1</dataElementGroup><dataElementGroup name="sample">urn:mdr16:dataelementgroup:3:1</dataElementGroup><dataElementGroup name="sampleContext">urn:mdr16:dataelementgroup:4:1</dataElementGroup><dataElementGroup name="donor">urn:mdr16:dataelementgroup:5:1</dataElementGroup><dataElementGroup name="event">urn:mdr16:dataelementgroup:6:1</dataElementGroup>
  • MDR_VALIDATION - validation against mdr during store import, defaults to true
  • POSTGRES_HOST - the host name of the Postgres DB, defaults to store-db
  • POSTGRES_PORT - the port of the Postgres DB, defaults to 5432
  • POSTGRES_DB - the database name, defaults to samplystore
  • POSTGRES_USER - the database username, defaults to samplystore
  • POSTGRES_PASS - the database password, defaults to samplystore
  • PROXY_URL - the URL of the HTTP proxy to use for outgoing connections; enables proxy usage if set
  • PROXY_USER - the user of the proxy account (optional)
  • PROXY_PASS - the password of the proxy account (optional)
  • CATALINA_OPTS - JVM options for Tomcat like -Xmx8g, defaults to -Xmx4g
  • ENABLE_METRICS - true to enable metrics (see below), defaults to false

⁠Usage

docker run -p 8080:8080 -e POSTGRES_HOST=<host> -e POSTGRES_PASS=<password> samply/samply.store:4.2.4-2

Test the store by requesting the import XSD:

curl http://localhost:8080/gba-store/importXSD

⁠Metrics

The Docker image contains an agent⁠ which exports various metrics of the JVM like memory statistics in a text format on port 9100. After enabling metrics by setting ENABLE_METRICS to true and exporting port 9100, the following command shows the metrics:

curl http://localhost:9100/metrics

The metrics should be polled by a Prometheus⁠ instance.

Tag summary
Recent tags
Content type
Image
Digest
Size
207.3 MB
Last updated
over 8 years ago
docker pull samply/samply.store:latest
This week's pulls