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.
http://mdr.germanbiobanknode.de/v3/api/mdrmdr16<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>truestore-db5432samplystoresamplystoresamplystore-Xmx8g, defaults to -Xmx4gtrue to enable metrics (see below), defaults to falsedocker 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
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.
docker pull samply/samply.store:latestLast week