Sync with other branches
This commit is contained in:
parent
649a6d431a
commit
cd149277ef
199
README.md
199
README.md
|
@ -1,14 +1,86 @@
|
|||
# Bridgehead
|
||||
|
||||
This repository contains all information and tools to deploy a bridgehead. If you have any questions about deploying a bridgehead, please [contact us](mailto:verbis-support@dkfz-heidelberg.de).
|
||||
|
||||
|
||||
TOC
|
||||
|
||||
1. [About](#about)
|
||||
- [Projects](#projects)
|
||||
- [GBA/BBMRI-ERIC](#gbabbmri-eric)
|
||||
- [DKTK/C4](#dktkc4)
|
||||
- [NNGM](#nngm)
|
||||
- [Bridgehead Components](#bridgehead-components)
|
||||
- [Blaze Server](#blaze-serverhttpsgithubcomsamplyblaze)
|
||||
1. [Requirements](#requirements)
|
||||
- [Hardware](#hardware)
|
||||
- [System](#system-requirements)
|
||||
2. [Getting Started](#getting-started)
|
||||
- [DKTK](#dktkc4)
|
||||
- [C4](#c4)
|
||||
- [GBA/BBMRI-ERIC](#gbabbmri-eric)
|
||||
3. [Configuration](#configuration)
|
||||
4. [Managing your Bridgehead](#managing-your-bridgehead)
|
||||
- [Systemd](#on-a-server)
|
||||
- [Without Systemd](#on-developers-machine)
|
||||
4. [Pitfalls](#pitfalls)
|
||||
5. [Migration-guide](#migration-guide)
|
||||
7. [License](#license)
|
||||
|
||||
|
||||
## About
|
||||
|
||||
TODO: Insert comprehensive feature list of the bridgehead? Why would anyone install it?
|
||||
|
||||
TODO: TOC
|
||||
### Projects
|
||||
|
||||
#### GBA/BBMRI-ERIC
|
||||
|
||||
The **Sample Locator** is a tool that allows researchers to make searches for samples over a large number of geographically distributed biobanks. Each biobank runs a so-called **Bridgehead** at its site, which makes it visible to the Sample Locator. The Bridgehead is designed to give a high degree of protection to patient data. Additionally, a tool called the [Negotiator][negotiator] puts you in complete control over which samples and which data are delivered to which researcher.
|
||||
|
||||
You will most likely want to make your biobanks visible via the [publicly accessible Sample Locator][sl], but the possibility also exists to install your own Sample Locator for your site or organization, see the GitHub pages for [the server][sl-server-src] and [the GUI][sl-ui-src].
|
||||
|
||||
The Bridgehead has two primary components:
|
||||
* The **Blaze Store**. This is a highly responsive FHIR data store, which you will need to fill with your data via an ETL chain.
|
||||
* The **Connector**. This is the communication portal to the Sample Locator, with specially designed features that make it possible to run it behind a corporate firewall without making any compromises on security.
|
||||
|
||||
#### DKTK/C4
|
||||
|
||||
TODO:
|
||||
|
||||
#### NNGM
|
||||
|
||||
TODO:
|
||||
|
||||
### Bridgehead Components
|
||||
|
||||
#### [Blaze Server](https://github.com/samply/blaze)
|
||||
|
||||
This holds the actual data being searched. This store must be filled by you, generally by running an ETL on your locally stored data to turn it into the standardized FHIR format that we require.
|
||||
|
||||
#### [Connector]
|
||||
|
||||
TODO:
|
||||
|
||||
|
||||
|
||||
## Requirements
|
||||
|
||||
### Hardware
|
||||
|
||||
For running your bridgehead we recommend the follwing Hardware:
|
||||
|
||||
- 4 CPU cores
|
||||
- At least 8 GB Ram
|
||||
- 10GB Hard Drive + how many data GB you need to store in the bridgehead
|
||||
|
||||
|
||||
### System Requirements
|
||||
|
||||
Before starting the installation process, please ensure that following software is available on your system:
|
||||
|
||||
### [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
||||
#### [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
||||
|
||||
To check that you have a working git installation, please run
|
||||
``` shell
|
||||
cd ~/;
|
||||
|
@ -18,7 +90,8 @@ rm -rf Hello-World;
|
|||
```
|
||||
If you see the output "Hello World!" your installation should be working.
|
||||
|
||||
### [Docker](https://docs.docker.com/get-docker/)
|
||||
#### [Docker](https://docs.docker.com/get-docker/)
|
||||
|
||||
To check your docker installation, you can try to execute dockers "Hello World" Image. The command is:
|
||||
``` shell
|
||||
docker run --rm --name hello-world hello-world;
|
||||
|
@ -33,7 +106,8 @@ You should also check, that the version of docker installed by you is newer than
|
|||
docker --version
|
||||
```
|
||||
|
||||
### [Docker Compose](https://docs.docker.com/compose/cli-command/#installing-compose-v2)
|
||||
#### [Docker Compose](https://docs.docker.com/compose/cli-command/#installing-compose-v2)
|
||||
|
||||
To check your docker-compose installation, please run the following command. It uses the "hello-world" image from the previous section:
|
||||
``` shell
|
||||
docker-compose -f - up <<EOF
|
||||
|
@ -51,7 +125,8 @@ You should also ensure, that the version of docker-compose installed by you is n
|
|||
docker-compose --version
|
||||
```
|
||||
|
||||
### [systemd](https://systemd.io/)
|
||||
#### [systemd](https://systemd.io/)
|
||||
|
||||
You shouldn't need to install it yourself. If systemd is not available on your system you should get another system.
|
||||
To check if systemd is available on your system, please execute
|
||||
|
||||
|
@ -59,14 +134,18 @@ To check if systemd is available on your system, please execute
|
|||
systemctl --version
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
|
||||
If your system passed all checks from ["Requirements" section], you are now ready to download the bridgehead.
|
||||
|
||||
First, clone the repository to the directory "/srv/docker/bridgehead":
|
||||
|
||||
u
|
||||
|
||||
``` shell
|
||||
sudo mkdir /srv/docker/;
|
||||
sudo mkdir -p /srv/docker/;
|
||||
sudo git clone https://github.com/samply/bridgehead.git /srv/docker/bridgehead;
|
||||
```
|
||||
|
||||
|
@ -99,6 +178,7 @@ sudo ./lib/setup-bridgehead-units.sh
|
|||
Finally, you need to configure your sites secrets. These are places as configuration for each bridgeheads system unit. Refer to the section for your specific project:
|
||||
|
||||
### DKTK/C4
|
||||
|
||||
You can create the site specific configuration with:
|
||||
|
||||
``` shell
|
||||
|
@ -134,6 +214,7 @@ sudo systemctl bridgehead@dktk.service;
|
|||
```
|
||||
|
||||
### C4
|
||||
|
||||
You can create the site specific configuration with:
|
||||
|
||||
``` shell
|
||||
|
@ -197,12 +278,31 @@ sudo systemctl bridgehead@gbn.service;
|
|||
```
|
||||
|
||||
### Developers
|
||||
|
||||
Because some developers machines doesn't support system units (e.g Windows Subsystem for Linux), we provide a dev environment [configuration script](./lib/init-test-environment.sh).
|
||||
It is not recommended to use this script in production!
|
||||
|
||||
## Configuration
|
||||
|
||||
### Basic Auth
|
||||
|
||||
Some services we use authfication to protect the data. For example for local data managemnt like the blaze.
|
||||
|
||||
The /auth direcotry contians for each project a file with user and password combination. If it is not present please create a file with just the project name. To add a combination use [htpasswdgenerator](https://htpasswdgenerator.de/) or use htpasswd on your maschine.
|
||||
|
||||
### HTTPS Access
|
||||
|
||||
We advise to use https for all service of your bridgehead. HTTPS is enabled on default. For starting the bridghead you need a ssl certificate. You can either create it yourself or get a signed one. You need to drop the certificates in /certs.
|
||||
|
||||
If you want to create it yourself, you can generate the necessary certs with:
|
||||
|
||||
``` shell
|
||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 365
|
||||
```
|
||||
|
||||
|
||||
### Locally Managed Secrets
|
||||
|
||||
This section describes the secrets you need to configure locally through the configuration
|
||||
|
||||
| Name | Recommended Value | Description |
|
||||
|
@ -225,55 +325,77 @@ This section describes the secrets you need to configure locally through the con
|
|||
| MAGICPL_OIDC_CLIENT_SECRET || The client secret used for your machine, to connect with the central authentication service |
|
||||
|
||||
### Cooperatively Managed Secrets
|
||||
|
||||
> TODO: Describe secrets from site-config
|
||||
|
||||
## Managing your Bridgehead
|
||||
|
||||
> TODO: Rewrite this section (restart, stop, uninstall, manual updates)
|
||||
|
||||
### On a Server
|
||||
|
||||
#### Start
|
||||
|
||||
This will start a not running bridgehead system unit:
|
||||
``` shell
|
||||
sudo systemctl start bridgehead@<dktk/c4/gbn>
|
||||
```
|
||||
|
||||
#### Stop
|
||||
|
||||
This will stop a running bridgehead system unit:
|
||||
``` shell
|
||||
sudo systemctl stop bridgehead@<dktk/c4/gbn>
|
||||
```
|
||||
|
||||
#### Update
|
||||
|
||||
This will update bridgehead system unit:
|
||||
``` shell
|
||||
sudo systemctl start bridgehead-update@<dktk/c4/gbn>
|
||||
```
|
||||
|
||||
#### Remove the Bridgehead System Units
|
||||
|
||||
If, for some reason you want to remove the installed bridgehead units, we added a [script](./lib/remove-bridgehead-units.sh) you can execute:
|
||||
``` shell
|
||||
sudo ./lib/remove-bridgehead-units.sh
|
||||
```
|
||||
|
||||
### On Developers Machine
|
||||
|
||||
For developers, we provide additional scripts for starting and stopping the specif bridgehead:
|
||||
|
||||
#### Start
|
||||
|
||||
This shell script start a specified bridgehead. Choose between "dktk", "c4" and "gbn".
|
||||
``` shell
|
||||
./start-bridgehead <dktk/c4/gbn>
|
||||
```
|
||||
|
||||
#### Stop
|
||||
|
||||
This shell script stops a specified bridgehead. Choose between "dktk", "c4" and "gbn".
|
||||
``` shell
|
||||
./stop-bridgehead <dktk/c4/gbn>
|
||||
```
|
||||
|
||||
#### Update
|
||||
|
||||
This shell script updates the configuration for all bridgeheads installed on your system.
|
||||
``` shell
|
||||
./update-bridgehead
|
||||
```
|
||||
> NOTE: If you want to regularly update your developing instance, you can create a CRON job that executes this script.
|
||||
|
||||
## Migration Guide
|
||||
|
||||
> TODO: How to transfer from windows/gbn
|
||||
|
||||
## Pitfalls
|
||||
|
||||
### [Git Proxy Configuration](https://gist.github.com/evantoli/f8c23a37eb3558ab8765)
|
||||
|
||||
Unlike most other tools, git doesn't use the default proxy variables "http_proxy" and "https_proxy". To make git use a proxy, you will need to adjust the global git configuration:
|
||||
|
||||
``` shell
|
||||
|
@ -290,6 +412,7 @@ sudo git config --global --list;
|
|||
```
|
||||
|
||||
### Docker Daemon Proxy Configuration
|
||||
|
||||
Docker has a background daemon, responsible for downloading images and starting them. To configure the proxy for this daemon, use the systemctl command:
|
||||
|
||||
``` shell
|
||||
|
@ -317,3 +440,67 @@ To make the configuration effective, you need to tell systemd to reload the conf
|
|||
sudo systemctl daemon-reload;
|
||||
sudo systemctl restart docker;
|
||||
```
|
||||
|
||||
## After the Installtion
|
||||
|
||||
After starting your bridgehead, visit the landing page under the hostname. If you singed your own ssl certificate, there is probable an error message. However, you can accept it as exception.
|
||||
|
||||
On this page, there are all important links to each component, central and local.
|
||||
|
||||
### Connector Administration
|
||||
|
||||
The Connector administration panel allows you to set many of the parameters regulating your Bridgehead. Most especially, it is the place where you can register your site with the Sample Locator. To access this page, proceed as follows:
|
||||
|
||||
* Open the Connector page: https://<hostname>/<project>-connector/
|
||||
* In the "Local components" box, click the "Samply Share" button.
|
||||
* A new page will be opened, where you will need to log in using the administrator credentials (admin/adminpass by default).
|
||||
* After log in, you will be taken to the administration dashboard, allowing you to configure the Connector.
|
||||
* If this is the first time you have logged in as an administrator, you are strongly recommended to set a more secure password! You can use the "Users" button on the dashboard to do this.
|
||||
|
||||
### GBA/BBMRI-ERIC
|
||||
|
||||
#### Register with a Directory
|
||||
|
||||
The [Directory][directory] is a BBMRI project that aims to catalog all biobanks in Europe and beyond. Each biobank is given its own unique ID and the Directory maintains counts of the number of donors and the number of samples held at each biobank. You are strongly encouraged to register with the Directory, because this opens the door to further services, such as the [Negotiator][negotiator].
|
||||
|
||||
Generally, you should register with the BBMRI national node for the country where your biobank is based. You can find a list of contacts for the national nodes [here](http://www.bbmri-eric.eu/national-nodes/). If your country is not in this list, or you have any questions, please contact the [BBMRI helpdesk](mailto:directory@helpdesk.bbmri-eric.eu). If your biobank is for COVID samples, you can also take advantage of an accelerated registration process [here](https://docs.google.com/forms/d/e/1FAIpQLSdIFfxADikGUf1GA0M16J0HQfc2NHJ55M_E47TXahju5BlFIQ).
|
||||
|
||||
Your national node will give you detailed instructions for registering, but for your information, here are the basic steps:
|
||||
|
||||
* Log in to the Directory for your country.
|
||||
* Add your biobank and enter its details, including contact information for a person involved in running the biobank.
|
||||
* You will need to create at least one collection.
|
||||
* Note the biobank ID and the collection ID that you have created - these will be needed when you register with the Locator (see below).
|
||||
|
||||
#### Register with a Locator
|
||||
|
||||
* Go to the registration page http://localhost:8082/admin/broker_list.xhtml.
|
||||
* To register with a Locator, enter the following values in the three fields under "Join new Searchbroker":
|
||||
* "Address": Depends on which Locator you want to register with:
|
||||
* `https://locator.bbmri-eric.eu/broker/`: BBMRI Locator production service (European).
|
||||
* `http://147.251.124.125:8088/broker/`: BBMRI Locator test service (European).
|
||||
* `https://samplelocator.bbmri.de/broker/`: GBA Sample Locator production service (German).
|
||||
* `https://samplelocator.test.bbmri.de/broker/`: GBA Sample Locator test service (German).
|
||||
* "Your email address": this is the email to which the registration token will be returned.
|
||||
* "Automatic reply": Set this to be `Total Size`
|
||||
* Click "Join" to start the registration process.
|
||||
* You should now have a list containing exactly one broker. You will notice that the "Status" box is empty.
|
||||
* Send an email to `feedback@germanbiobanknode.de` and let us know which of our Sample Locators you would like to register to. Please include the biobank ID and the collection ID from your Directory registration, if you have these available.
|
||||
* We will send you a registration token per email.
|
||||
* You will then re-open the Connector and enter the token into the "Status" box.
|
||||
* You should send us an email to let us know that you have done this.
|
||||
* We will then complete the registration process
|
||||
* We will email you to let you know that your biobank is now visible in the Sample Locator.
|
||||
|
||||
If you are a Sample Locator administrator, you will need to understand the [registration process](./SampleLocatorRegistration.md). Normal bridgehead admins do not need to worry about this.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2019 - 2022 The Samply Community
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
||||
|
|
|
@ -7,13 +7,19 @@ services:
|
|||
command:
|
||||
- --api.insecure=true
|
||||
- --entrypoints.web.address=:80
|
||||
- --entrypoints.web-secure.address=:443
|
||||
- --entrypoints.websecure.address=:443
|
||||
- --providers.docker=true
|
||||
- --providers.file.directory=/configuration/
|
||||
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
||||
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
||||
- --providers.file.watch=true
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ../certs:/tools/certs
|
||||
- ../tools/traefik/:/configuration/
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ../auth/:/auth
|
||||
extra_hosts:
|
||||
|
@ -28,9 +34,10 @@ services:
|
|||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
|
||||
- "traefik.http.services.landing.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.landing.tls=true"
|
||||
|
||||
blaze:
|
||||
image: "samply/blaze:0.15"
|
||||
image: "samply/blaze:0.16"
|
||||
container_name: bridgehead_dktk_blaze
|
||||
environment:
|
||||
BASE_URL: "http://blaze:8080"
|
||||
|
@ -46,7 +53,8 @@ services:
|
|||
- "traefik.http.middlewares.dktk_b_strip.stripprefix.prefixes=/dktk-localdatamanagement"
|
||||
- "traefik.http.services.blaze_dktk.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.blaze_dktk.middlewares=dktk_b_strip,test-auth"
|
||||
|
||||
- "traefik.http.routers.blaze_dktk.tls=true"
|
||||
|
||||
# dktk-fed-search-share:
|
||||
# image: "ghcr.io/samply/dktk-fed-search-share:pr-1"
|
||||
# container_name: bridgehead_dktk_share
|
||||
|
|
|
@ -1,69 +0,0 @@
|
|||
SITE=bridgehead_dktk_test
|
||||
SITEID=BRIDGEHEAD_DKTK_TEST
|
||||
|
||||
CONNECTOR_SHARE_URL="http://${HOST}:8080"
|
||||
CONNECTOR_ENABLE_METRICS=false
|
||||
CONNECTOR_MONITOR_INTERVAL=
|
||||
CONNECTOR_UPDATE_SERVER=
|
||||
|
||||
DEPLOYMENT_CONTEXT=dktk-connector
|
||||
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DB=share_v2
|
||||
POSTGRES_USER=samplyweb
|
||||
|
||||
HTTP_PROXY_HOST=${PROXY_URL}
|
||||
HTTP_PROXY_USER=
|
||||
HTTP_PROXY_PASSWORD=
|
||||
HTTPS_PROXY_HOST=${PROXY_URL}
|
||||
HTTPS_PROXY_USER=
|
||||
HTTPS_PROXY_PASSWORD=
|
||||
HTTP_PROXY=${PROXY_URL}
|
||||
HTTPS_PROXY=${PROXY_URL}
|
||||
http_proxy=${PROXY_URL}
|
||||
https_proxy=${PROXY_URL}
|
||||
|
||||
CCP_CENTRALSEARCH_URL=https://centralsearch-test.dktk.dkfz.de/
|
||||
CCP_DECENTRALSEARCH_URL=https://decentralsearch-test.ccp-it.dktk.dkfz.de/
|
||||
|
||||
CCP_MDR_URL=https://mdr.ccp-it.dktk.dkfz.de/v3/api/mdr
|
||||
MDR_URL=https://mdr.ccp-it.dktk.dkfz.de/v3/api/mdr
|
||||
|
||||
CCP_MONITOR_URL=
|
||||
MONITOR_OPTOUT=
|
||||
|
||||
PATIENTLIST_URL=http://bridgehead_patientlist:8080/Patientlist
|
||||
PROJECTPSEUDONYMISATION_URL=http://bridgehead_patientlist:8080/Patientlist
|
||||
|
||||
## nNGM
|
||||
#NNGM_URL=http://bridgeheadstore:8080
|
||||
#NNGM_PROFILE=http://uk-koeln.de/fhir/StructureDefinition/Patient/nNGM/pseudonymisiert
|
||||
#NNGM_MAINZELLISTE_URL=https://test.verbis.dkfz.de/mpl
|
||||
|
||||
##MDR
|
||||
MDR_NAMESPACE=adt,dktk,marker
|
||||
#MDR_MAP=
|
||||
MDR_VALIDATION=false
|
||||
|
||||
ML_DB_HOST=bridgehead_dktk_patientlist_db
|
||||
ML_DB_NAME=mainzelliste
|
||||
ML_DB_PORT=5432
|
||||
ML_DB_USER=mainzelliste
|
||||
|
||||
CENTRAL_CONTROL_NUMBER_GENERATPR_URL=http://e260-serv-03/central/api
|
||||
GLOBAL_ID=DKTK
|
||||
MAINZELLISTE_URL=https://patientlist-test.ccpit.dktk.dkfz.de/mainzelliste
|
||||
ML_DB_DRIVER=org.postgresql.Driver
|
||||
ML_DB_TYPE=postgresql
|
||||
|
||||
MAGICPL_MAINZELLISTE_URL=http://bridgehead_patientlist:8080
|
||||
|
||||
ML_LOG_LEVEL=warning
|
||||
ML_SITE=BRIDGEHEAD_DKTK_TEST
|
||||
TZ=Europe/Berlin
|
||||
|
||||
MAGICPL_SITE=adt
|
||||
MAGICPL_LOG_LEVEL=info
|
||||
MAGICPL_MAINZELLISTE_CENTRAL_URL=http://e260-serv-03/central/mainzelliste
|
||||
MAGICPL_CENTRAL_URL=http://e260-serv-03/central/api
|
||||
MAGICPL_OIDC_PROVIDER=https://auth-test.ccp-it.dktk.dkfz.de
|
334
gbn/README.md
334
gbn/README.md
|
@ -1,334 +0,0 @@
|
|||
# Bridgehead Deployment
|
||||
|
||||
|
||||
## Goal
|
||||
Allow the Sample Locator to search for patients and samples in your biobanks, giving researchers easy access to your resources.
|
||||
|
||||
|
||||
## Quick start
|
||||
If you simply want to set up a test installation, without exploring all of the possibilities offered by the Bridgehead, then the sections you need to look at are:
|
||||
* [Starting a Bridgehead](#starting-a-bridgehead)
|
||||
* [Register with a Sample Locator](#register-with-a-sample-locator)
|
||||
* [Checking your newly installed Bridgehead](#checking-your-newly-installed-bridgehead)
|
||||
|
||||
|
||||
## Background
|
||||
The **Sample Locator** is a tool that allows researchers to make searches for samples over a large number of geographically distributed biobanks. Each biobank runs a so-called **Bridgehead** at its site, which makes it visible to the Sample Locator. The Bridgehead is designed to give a high degree of protection to patient data. Additionally, a tool called the [Negotiator][negotiator] puts you in complete control over which samples and which data are delivered to which researcher.
|
||||
|
||||
You will most likely want to make your biobanks visible via the [publicly accessible Sample Locator][sl], but the possibility also exists to install your own Sample Locator for your site or organization, see the GitHub pages for [the server][sl-server-src] and [the GUI][sl-ui-src].
|
||||
|
||||
The Bridgehead has two primary components:
|
||||
* The **Blaze Store**. This is a highly responsive FHIR data store, which you will need to fill with your data via an ETL chain.
|
||||
* The **Connector**. This is the communication portal to the Sample Locator, with specially designed features that make it possible to run it behind a corporate firewall without making any compromises on security.
|
||||
|
||||
This document will show you how to:
|
||||
* Install the components making up the Bridgehead.
|
||||
* Register your Bridgehead with the Sample Locator, so that researchers can start searching your resources.
|
||||
|
||||
|
||||
## Requirements
|
||||
For data protection concept, server requirements, validation or import instructions, see [the list of general requirements][requirements].
|
||||
|
||||
|
||||
## Starting a Bridgehead
|
||||
The file `docker-compose.yml` contains the the minimum settings needed for installing and starting a Bridgehead on your computer. This Bridgehead should run straight out of the box. However, you may wish to modify this file, e.g. in order to:
|
||||
* Enable a corporate proxy (see below).
|
||||
* Set an alternative Sample Locator URL.
|
||||
* Change the admin credentials for the Connector.
|
||||
|
||||
To start a Bridgehead on your computer, you will need to follow the following steps:
|
||||
|
||||
* [Install Docker][docker] and [git][git]and test with:
|
||||
|
||||
```sh
|
||||
docker run hello-world
|
||||
git --version
|
||||
```
|
||||
|
||||
* Download this repository:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/samply/bridgehead-deployment
|
||||
cd bridgehead-deployment
|
||||
```
|
||||
|
||||
* Launch the Bridgehead with the following command:
|
||||
|
||||
```sh
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
* First test of the installation: check to see if there is a Connector running on port 8082:
|
||||
|
||||
```sh
|
||||
curl localhost:8082 | grep Welcome
|
||||
```
|
||||
|
||||
* If you need to stop the Bridgehead, from within this directory:
|
||||
|
||||
```sh
|
||||
docker-compose down
|
||||
```
|
||||
|
||||
## Port usage
|
||||
Once you have started the Bridgehead, the following components will be visible to you via ports on localhost:
|
||||
* Blaze Store: port 8080
|
||||
* Connector admin: port 8082
|
||||
|
||||
## Connector Administration
|
||||
The Connector administration panel allows you to set many of the parameters regulating your Bridgehead. Most especially, it is the place where you can register your site with the Sample Locator. To access this page, proceed as follows:
|
||||
|
||||
* Open the Connector page: http://localhost:8082
|
||||
* In the "Local components" box, click the "Samply Share" button.
|
||||
* A new page will be opened, where you will need to log in using the administrator credentials (admin/adminpass by default).
|
||||
* After log in, you will be taken to the administration dashboard, allowing you to configure the Connector.
|
||||
* If this is the first time you have logged in as an administrator, you are strongly recommended to set a more secure password! You can use the "Users" button on the dashboard to do this.
|
||||
|
||||
Note: your browser must be running on the same machine as the Connector for "localhost" URLs to work.
|
||||
|
||||
### Register with a Directory
|
||||
The [Directory][directory] is a BBMRI project that aims to catalog all biobanks in Europe and beyond. Each biobank is given its own unique ID and the Directory maintains counts of the number of donors and the number of samples held at each biobank. You are strongly encouraged to register with the Directory, because this opens the door to further services, such as the [Negotiator][negotiator].
|
||||
|
||||
Generally, you should register with the BBMRI national node for the country where your biobank is based. You can find a list of contacts for the national nodes [here](http://www.bbmri-eric.eu/national-nodes/). If your country is not in this list, or you have any questions, please contact the [BBMRI helpdesk](mailto:directory@helpdesk.bbmri-eric.eu). If your biobank is for COVID samples, you can also take advantage of an accelerated registration process [here](https://docs.google.com/forms/d/e/1FAIpQLSdIFfxADikGUf1GA0M16J0HQfc2NHJ55M_E47TXahju5BlFIQ).
|
||||
|
||||
Your national node will give you detailed instructions for registering, but for your information, here are the basic steps:
|
||||
|
||||
* Log in to the Directory for your country.
|
||||
* Add your biobank and enter its details, including contact information for a person involved in running the biobank.
|
||||
* You will need to create at least one collection.
|
||||
* Note the biobank ID and the collection ID that you have created - these will be needed when you register with the Locator (see below).
|
||||
|
||||
### Register with a Locator
|
||||
* Go to the registration page http://localhost:8082/admin/broker_list.xhtml.
|
||||
* To register with a Locator, enter the following values in the three fields under "Join new Searchbroker":
|
||||
* "Address": Depends on which Locator you want to register with:
|
||||
* `https://locator.bbmri-eric.eu/broker/`: BBMRI Locator production service (European).
|
||||
* `http://147.251.124.125:8088/broker/`: BBMRI Locator test service (European).
|
||||
* `https://samplelocator.bbmri.de/broker/`: GBA Sample Locator production service (German).
|
||||
* `https://samplelocator.test.bbmri.de/broker/`: GBA Sample Locator test service (German).
|
||||
* "Your email address": this is the email to which the registration token will be returned.
|
||||
* "Automatic reply": Set this to be `Total Size`
|
||||
* Click "Join" to start the registration process.
|
||||
* You should now have a list containing exactly one broker. You will notice that the "Status" box is empty.
|
||||
* Send an email to `feedback@germanbiobanknode.de` and let us know which of our Sample Locators you would like to register to. Please include the biobank ID and the collection ID from your Directory registration, if you have these available.
|
||||
* We will send you a registration token per email.
|
||||
* You will then re-open the Connector and enter the token into the "Status" box.
|
||||
* You should send us an email to let us know that you have done this.
|
||||
* We will then complete the registration process
|
||||
* We will email you to let you know that your biobank is now visible in the Sample Locator.
|
||||
|
||||
If you are a Sample Locator administrator, you will need to understand the [registration process](./SampleLocatorRegistration.md). Normal bridgehead admins do not need to worry about this.
|
||||
|
||||
### Monitoring
|
||||
You are strongly encouraged to set up an automated monitoring of your new Bridgehead. This will periodically test the Bridgehead in various ways, and (if you wish) will also send you emails if problems are detected. It helps you to become aware of problems before users do, and also gives you the information you need to track down the source of the problems. To activate monitoring, perform the following steps:
|
||||
|
||||
* Open the Connector administration dashboard in your browser, see [Admin](#connector-administration) for details.
|
||||
* Click the "Configuration" button.
|
||||
* ![grafik](https://user-images.githubusercontent.com/86475306/142425285-977e5649-7f2e-44db-8da0-ee5e28b5e91b.png)
|
||||
* Scroll to the section "Reporting to central services".
|
||||
* Click on all of the services in this section so that they have the status "ON".
|
||||
* ![grafik](https://user-images.githubusercontent.com/86475306/142425378-e1b68f13-df7a-4f23-978e-121184611586.png)
|
||||
* **Important:** Scroll to the bottom of the page and click the "Save" button.
|
||||
* ![grafik](https://user-images.githubusercontent.com/86475306/142425417-68a28059-37e0-48a3-bb1e-1bf29a39ccfc.png)
|
||||
* Return to the dashboard, and click the button "Scheduled Tasks".
|
||||
* ![grafik](https://user-images.githubusercontent.com/86475306/142425447-a662257a-d556-4795-aa0b-89f7699ba1e4.png)
|
||||
* Scroll down to the box labelled "ReportToMonitoringJob". For newer Versions of the bridgehead there this job is separated into "ReportToMonitoringJobShortFrequence" and "ReportToMonitoringJobLongFrequence".
|
||||
* Click the button "Run now". This switches the monitoring on. If you have the newer Version of the bridgeheads please run both jobs.
|
||||
* ![grafik](https://user-images.githubusercontent.com/86475306/142425487-6d297779-28c1-44b7-b2c4-dcf2ede24eb9.png)
|
||||
* If you want to receive emails when the monitoring service detects problems with your Bridgehead, please send a list of email addresses for the people to be notified to: `feedback@germanbiobanknode.de`.
|
||||
|
||||
You are now done!
|
||||
|
||||
### Troubleshooting
|
||||
To get detailled information about Connector problems, you need to use the Docker logging facility:
|
||||
|
||||
* Log into the server where the Connector is running. You need a command line login.
|
||||
* Discover the container ID of the Connector. First run "docker ps". Look in the list of results. The relevant line contains the image name "samply/share-client".
|
||||
* Execute the following command: "docker logs \<Container-ID\>"
|
||||
* The last 100 lines of the log are relevant. Maybe you will see the problem there right away. Otherwise, send the log-selection to us.
|
||||
|
||||
### User
|
||||
* To enable a user to access the connector, a new user can be created under http://localhost:8082/admin/user_list.xhtml.
|
||||
This user has the possibility to view incoming queries
|
||||
|
||||
### Jobs
|
||||
* The connector uses [Quartz Jobs](http://www.quartz-scheduler.org/) to do things like collect the queries from the searchbroker or execute the queries.
|
||||
The full list of jobs can be viewed under the job page http://localhost:8082/admin/job_list.xhtml.
|
||||
|
||||
### Tests
|
||||
* The Connector connectivity checks can be found under the test page http://localhost:8082/admin/tests.xhtml.
|
||||
|
||||
## Checking your newly installed Bridgehead
|
||||
We will load some test data and then run a query to see if it shows up.
|
||||
|
||||
First, install [bbmri-fhir-gen][bbmri-fhir-gen]. Run the following command:
|
||||
|
||||
```sh
|
||||
mkdir TestData
|
||||
bbmri-fhir-gen TestData -n 10
|
||||
```
|
||||
|
||||
This will generate test data for 10 patients, and place it in the directory `TestData`.
|
||||
|
||||
Next, install [blazectl][blazectl]. Run the following commands:
|
||||
|
||||
```sh
|
||||
blazectl --server http://localhost:8080/fhir upload TestData
|
||||
blazectl --server http://localhost:8080/fhir count-resources
|
||||
```
|
||||
|
||||
If both of them complete successfully, it means that the test data has successfully been uploaded to the Blaze Store.
|
||||
|
||||
Open the [Sample Locator][sl] and hit the "SEND" button. You may need to wait for a minute before all results are returned. Click the "Login" link to log in via the academic institution where you work (AAI). You should now see a list of the biobanks known to the Sample Locator.
|
||||
|
||||
If your biobank is present, and it contains non-zero counts of patients and samples, then your installation was successful.
|
||||
|
||||
If you wish to remove the test data, you can do so by simply deleting the Docker volume for the Blaze Store database:
|
||||
|
||||
```sh
|
||||
docker-compose down
|
||||
docker volume rm store-db-data
|
||||
```
|
||||
|
||||
## Manual installation
|
||||
The installation described here uses Docker, meaning that you don't have to worry about configuring or installing the Bridgehead components - Docker does it all for you. If you do not wish to use Docker, you can install all of the software directly on your machine, as follows:
|
||||
|
||||
* Install the [Blaze Store][man-store]
|
||||
* Install the [Connector][man-connector]
|
||||
* Register with the Sample Locator (see above)
|
||||
|
||||
|
||||
Source code for components deployed by `docker-compose.yml`:
|
||||
|
||||
* [Store][store-src]
|
||||
* [Connector][connector-src]
|
||||
|
||||
|
||||
## Optional configuration:
|
||||
|
||||
#### Proxy example
|
||||
Add environments variables in `docker-compose.yml` (remove user and password environments if not available):
|
||||
"http://proxy.example.de:8080", user "testUser", password "testPassword"
|
||||
|
||||
version: '3.4'
|
||||
services:
|
||||
store:
|
||||
container_name: "store"
|
||||
image: "samply/blaze:0.11"
|
||||
environment:
|
||||
BASE_URL: "http://store:8080"
|
||||
JAVA_TOOL_OPTIONS: "-Xmx4g"
|
||||
PROXY_HOST: "http://proxy.example.de"
|
||||
PROXY_PORT: "8080"
|
||||
PROXY_USER: "testUser"
|
||||
PROXY_PASSWORD: "testPassword"
|
||||
networks:
|
||||
- "samply"
|
||||
|
||||
.......
|
||||
|
||||
connector:
|
||||
container_name: "connector"
|
||||
image: "samply/connector:7.0.0"
|
||||
environment:
|
||||
POSTGRES_HOST: "connector-db"
|
||||
POSTGRES_DB: "samply.connector"
|
||||
POSTGRES_USER: "samply"
|
||||
POSTGRES_PASS: "samply"
|
||||
STORE_URL: "http://store:8080/fhir"
|
||||
QUERY_LANGUAGE: "CQL"
|
||||
MDR_URL: "https://mdr.germanbiobanknode.de/v3/api/mdr"
|
||||
HTTP_PROXY: "http://proxy.example.de:8080"
|
||||
PROXY_USER: "testUser"
|
||||
PROXY_PASS: "testPassword
|
||||
networks:
|
||||
- "samply"
|
||||
|
||||
.......
|
||||
|
||||
|
||||
|
||||
#### General information on Docker environment variables used in the Bridgehead
|
||||
|
||||
* [Store][env-store]
|
||||
* [Connector][env-connector]
|
||||
|
||||
|
||||
## Notes
|
||||
* If you see database connection errors of Store or Connector, open a second terminal and run `docker-compose stop` followed by `docker-compose start`. Database connection problems should only occur at the first start because the store and the connector doesn't wait for the databases to be ready. Both try to connect at startup which might be to early.
|
||||
|
||||
* If one needs only one of the the Bridgehead components, they can be started individually:
|
||||
|
||||
```sh
|
||||
docker-compose up store -d
|
||||
docker-compose up connector -d
|
||||
```
|
||||
|
||||
* To shut down all services (but keep databases):
|
||||
|
||||
```sh
|
||||
docker-compose down
|
||||
```
|
||||
|
||||
* To delete databases as well (destroy before):
|
||||
|
||||
```sh
|
||||
docker volume rm store-db-data
|
||||
docker volume rm connector-db-data
|
||||
```
|
||||
|
||||
* To see all executed queries, create a [new user][connector-user], logout and login with this normal user.
|
||||
|
||||
* To set Store-Basic-Auth-credentials in Connector (as default `Lokales Datenmanagement` with dummy values was generated)
|
||||
* Login at [Connector-UI][connector-login] (default usr=admin, pwd=adminpass)
|
||||
* Open [credentials page][connector-credentials]
|
||||
- Delete all instances of`Lokales Datenmanagement`
|
||||
- for "Ziel" select `Lokales Datenmanagement`, provide decrypted CREDENTIALS in "Benutzername" and "Passwort", select "Zugangsdaten hinzufügen"
|
||||
|
||||
* If you would like to read about the experiences of a team in Brno who have installed the Bridgehead and a local Sample Locator instance, take a look at [SL-BH_deploy](SL-BH_deploy).
|
||||
|
||||
## Useful Links
|
||||
* [FHIR Quality Reporting Authoring UI][quality-ui-github]
|
||||
* [How to join Sample Locator][join-sl]
|
||||
* [Samply code repositories][samply]
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2019 - 2021 The Samply Community
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
||||
|
||||
[sl]: <https://samplelocator.bbmri.de>
|
||||
[sl-ui-src]: <https://github.com/samply/sample-locator>
|
||||
[sl-server-src]: <https://github.com/samply/share-broker-rest>
|
||||
[negotiator]: <https://negotiator.bbmri-eric.eu/login.xhtml>
|
||||
[directory]: <https://directory.bbmri-eric.eu>
|
||||
[bbmri]: <http://www.bbmri-eric.eu>
|
||||
[docker]: <https://docs.docker.com/install>
|
||||
[git]: <https://www.atlassian.com/git/tutorials/install-git>
|
||||
|
||||
[connector-user]:<http://localhost:8082/admin/user_list.xhtml>
|
||||
[connector-login]:<http://localhost:8082/admin/login.xhtml>
|
||||
[connector-credentials]:<http://localhost:8082/admin/credentials_list.xhtml>
|
||||
|
||||
[requirements]: <https://samply.github.io/bbmri-fhir-ig/howtoJoin.html#general-requirements>
|
||||
|
||||
[man-store]: <https://github.com/samply/blaze/blob/master/docs/deployment/manual-deployment.md>
|
||||
[env-store]: <https://github.com/samply/blaze/blob/master/docs/deployment/environment-variables.md>
|
||||
[env-connector]: <https://github.com/samply/share-client/blob/master/docs/deployment/docker-deployment.md>
|
||||
|
||||
[bbmri-fhir-gen]: <https://github.com/samply/bbmri-fhir-gen>
|
||||
[blazectl]: <https://github.com/samply/blazectl>
|
||||
|
||||
[man-connector]: <Connector.md>
|
||||
|
||||
[store-src]: <https://github.com/samply/blaze>
|
||||
[connector-src]: <https://github.com/samply/share-client>
|
||||
|
||||
[quality-ui-github]:<https://github.com/samply/blaze-quality-reporting-ui>
|
||||
[join-sl]: <https://samply.github.io/bbmri-fhir-ig/howtoJoin.html>
|
||||
[samply]: <https://github.com/samply>
|
|
@ -1,16 +0,0 @@
|
|||
POSTGRES_DB=samply.connector
|
||||
POSTGRES_USER=samply
|
||||
QUERY_LANGUAGE=CQL
|
||||
CONNECTOR_SHARE_URL="http://${HOST}:8080"
|
||||
MDR_URL="https://mdr.germanbiobanknode.de/v3/api/mdr"
|
||||
MONITOR_URL=https://ccpit.dktk.dkfz.de/dktk.monitor/rest/info
|
||||
DEPLOYMENT_CONTEXT=gbn-connector
|
||||
CONNECTOR_MONITOR_INTERVAL=
|
||||
CONNECTOR_UPDATE_SERVER=
|
||||
feature_BBMRI_DIRECTORY_SYNC=false
|
||||
feature_DKTK_CENTRAL_SEARCH=false
|
||||
feature_NNGM_CTS=false
|
||||
LOG_LEVEL=info
|
||||
STORE_URL=http://bridgehead_gbn_blaze_store:8080
|
||||
|
||||
CONNECTOR_ENABLE_METRICS=false
|
|
@ -0,0 +1 @@
|
|||
Subproject commit cef02f04b52f4984e0a10560e0335f5248dde9c5
|
Loading…
Reference in New Issue