MedCo Technical Documentation
GithubDocker HubMedCoLDS
v2.0.0
v2.0.0
  • Home
  • Releases
  • For System Administrators
    • Requirements
    • Deployment
      • Local Test Deployment
      • Network Deployment
      • Configuration
        • Passwords
        • Keycloak
        • Setting Authorizations
        • HTTPS Configuration
        • Configuring SwitchAAI Authentication
    • Data Loading
      • Synthetic SPO Data
      • v0 (Genomic Data)
      • v1 (I2B2 Demodata)
    • Command-Line Interface (CLI)
    • Network Architecture
    • Common Problems
  • For Developers
    • Local Development Deployment
    • System Architecture
    • Description of the default test data
    • Database
    • Live Demo
    • Release a new version
Powered by GitBook
On this page
  • Update demo version
  • Get the latest version
  • Configuration update
  • Start deployment
  • Load synthetic demo data
  • Update certificate

Was this helpful?

Export as PDF
  1. For Developers

Live Demo

PreviousDatabaseNextRelease a new version

Last updated 4 years ago

Was this helpful?

The live demo of MedCo is available at . The profile test-local-3nodes with a custom configuration is used.

Update demo version

Connect with SSH to the machine, with the lca1 account. Ask Mickaƫl or Joao to set up your SSH public key there.

Get the latest version

Ensure the configuration specific to the MedCo stays (see next section).

cd /home/lca1/medco-repo/medco/deployments/test-local-3nodes
make down
git pull

Configuration update

Update the configuration according to the following examples. For the passwords, use the same as defined in the previous deployments.

/home/lca1/medco-repo/medco/deployments/test-local-3nodes/.env
MEDCO_NODE_HOST=medco-demo.epfl.ch
MEDCO_NODE_HTTP_SCHEME=https
POSTGRES_PASSWORD=xxx
PGADMIN_PASSWORD=xxx
KEYCLOAK_PASSWORD=xxx
I2B2_WILDFLY_PASSWORD=xxx
I2B2_SERVICE_PASSWORD=xxx
I2B2_USER_PASSWORD=xxx
/home/lca1/medco-repo/medco/deployments/test-local-3nodes/docker-compose.yml
  glowing-bear-medco:
    environment:
      - "GB_FOOTER_TEXT=Disclaimer: This demo complies with the EPFL regulations and guidelines regarding the storage and use of personal data: https://www.epfl.ch/about/overview/overview/regulations-and-guidelines/"

Start deployment

cd /home/lca1/medco-repo/medco/deployments/test-local-3nodes
make up

Load synthetic demo data

Get them from the Google Drive folder and execute the script

cd /home/lca1/medco-repo/medco
./test/data/download.sh spo_synthetic

./scripts/load-spo-i2b2-data.sh localhost i2b2medcosrv0 medcoconnectorsrv0
./scripts/load-spo-i2b2-data.sh localhost i2b2medcosrv1 medcoconnectorsrv1
./scripts/load-spo-i2b2-data.sh localhost i2b2medcosrv2 medcoconnectorsrv2

Update certificate

The certificate is provided by Let's Encrypt and valid for a period of 3 months, it thus needs regular renewing. First ensure that the configuration located in /etc/letsencrypt/renewal/medco-demo.epfl.ch.conf is correct.

Then as the user root, renew the certificate:

certbot renew
cp /etc/letsencrypt/live/medco-demo.epfl.ch/fullchain.pem \
    /home/lca1/medco-repo/medco/deployments/test-local-3nodes/configuration/certificate.crt
cp /etc/letsencrypt/live/medco-demo.epfl.ch/privkey.pem \
    /home/lca1/medco-repo/medco/deployments/test-local-3nodes/configuration/certificate.key

Finally as the user lca1 restart the stack:

cd /home/lca1/medco-repo/medco/deployments/test-local-3nodes
make stop
make up
https://medco-demo.epfl.ch