Skip to content

larshalvorsen/Honeur-Setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

154 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HONEUR-Setup

Check the honeur website at: https://www.honeur.org

Build Status

HONEUR-Setup is a public repository. This repository is used for files that can be downloaded without restrictions

HONEUR - Remote setup with Docker

Prerequisites

1. Operating System (OS)

One of the following operating systems should be installed on the host machine:

  • Windows 10, or
  • Linux (Ubuntu, Debian, CentOS or Fedora), or
  • MacOS

2. Docker

Docker should be installed on the host machine

3. Docker Hub Account

The installer should have a Docker Hub account with read access on the HONEUR repository: https://hub.docker.com/u/honeur

Installation Steps

Standard Version

  1. Open a terminal window (Command Prompt on Windows)
  2. Download the installation file
    • For Windows: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/standard/start-honeur.cmd --output start-honeur.cmd
    • For Linux and Mac: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/standard/start-honeur.sh --output start-honeur.sh && chmod +x start-honeur.sh
  3. Run start-honeur.sh (on Linux or Mac) or start-honeur.cmd (on Windows)
  4. The program will prompt you for username and password for your docker account. Make sure this docker account has read access on the honeur images. If you are already logged in to docker, the program will automatically use the existing credentials.
  5. Press Enter to remove existing webapi, zeppelin and postgres container.
  6. After the program has downloaded the docker-compose.yml file, it will prompt you to give a Fully Qualified Domain Name(FQDN) or IP Address of the host machine. Atlas will only be accessible on the host machine (via localhost) if you fill in localhost.
  7. The program will prompt you to give the directory of where to store the zeppelin log files and notebooks.
  8. The Postgres database, Atlas, Zeppelin will be downloaded and started as Docker container.

Secure Version

  1. Open a terminal window (Command Prompt on Windows)
  2. Download the installation file
    • For Windows: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/secure/start-honeur-secure.cmd --output start-honeur.cmd
    • For Linux and Mac: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/secure/start-honeur-secure.sh --output start-honeur.sh && chmod +x start-honeur.sh
  3. Run start-honeur-secure.sh (on Linux or Mac) or start-honeur-secure.cmd (on Windows)
  4. The program will prompt you for username and password for your docker account. Make sure this docker account has read access on the honeur images. If you are already logged in to docker, the program will automatically use the existing credentials.
  5. Press Enter to remove existing webapi, zeppelin and postgres container.
  6. After the program has downloaded the docker-compose.yml file, it will prompt you to give a Fully Qualified Domain Name(FQDN) or IP Address of the host machine. Atlas and user management will only be accessible on the host machine (via localhost) if you fill in localhost.
  7. The program will prompt you to give the directory of where to store the zeppelin log files and notebooks.
  8. The program will prompt you for choosing between ldap or jdbc connection for authentication. if you choose jdbc skip 8. if you choose ldap, the program will prompt you to give the following ldap properties:
    • security.ldap.url: ldap://ldap.forumsys.com:389
    • security.ldap.system.username: cn=read-onlyadmin,dc=example,dc=com
    • security.ldap.system.password: password
    • security.ldap.baseDn: dc=example,dc=com
    • security.ldap.dn: uid={0},dc=example,dc=com
  9. The program will prompt you for the following user management properties:
    • usermgmt admin username: admin
    • usermgmt admin password: admin
  10. The Postgres database, Atlas, Zeppelin and a User Mgmt applications will be downloaded and started as Docker containers

Optional

Import constraints and indexes on OMOP CDM Tables

when all custom data is imported, it is recommended that the constraints and indexes are imported on the OMOP CDM tables. This will improve the speed and decrease the risk of corrupt data in the database.

Installation steps
  1. Open a terminal window (Command Prompt on Windows)
  2. Download the installation file
    • For Windows: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/start-omopcdm-indexes-and-constraints.cmd --output start-omopcdm-indexes-and-constraints.cmd
    • For Linux and Mac: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/start-omopcdm-indexes-and-constraints.sh --output start-omopcdm-indexes-and-constraints.sh && chmod +x start-omopcdm-indexes-and-constraints.sh
  3. Run start-omopcdm-indexes-and-constraints.sh (on Linux or Mac) or start-omopcdm-indexes-and-constraints.cmd (on Windows)
  4. The program will prompt you for username and password for your docker account. Make sure this docker account has read access on the honeur images. If you are already logged in to docker, the program will automatically use the existing credentials.
  5. Press Enter to remove existing omop-indexes-and-constraints container.
  6. After the program has downloaded the docker-compose.yml and setup-conf/setup.yml files, it will start importing the indexes and constraints on the OMOP CDM tables.

Update custom concepts in the OMOP CDM DB

When new custom concepts are available, they can be easily loaded in the OMOP CDM database.

Installation steps
  1. Open a terminal window (Command Prompt on Windows)
  2. Download the installation file
    • For Windows: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/start-omopcdm-custom-concepts-update.cmd --output start-omopcdm-custom-concepts-update.cmd
    • For Linux and Mac: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/start-omopcdm-custom-concepts-update.sh --output start-omopcdm-custom-concepts-update.sh && chmod +x start-omopcdm-custom-concepts-update.sh
  3. Run start-omopcdm-custom-concepts-update.sh (on Linux or Mac) or start-omopcdm-custom-concepts-update.cmd (on Windows)
  4. The program will prompt you for username and password for your docker account. Make sure this docker account has read access on the honeur images. If you are already logged in to docker, the program will automatically use the existing credentials.
  5. Press Enter to remove the existing omop-cdm-custom-concepts container.
  6. After the program has downloaded the docker-compose.yml and setup-conf/setup.yml files, it will start importing the custom concepts in the OMOP CDM database.

QA database

QA database can be used as a test database. It's an exact replica of the full database installed with the script start-honeur.cmd (on windows) or start-honeur.sh (on Linux or Mac). It is primarily used for testing scripts on the data in OMOP CDM schema.

Installation steps
  1. Open a terminal window (Command Prompt on Windowssh
  2. Download the installation file
    • For Windows: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/start-qa-database.cmd --output start-qa-database.cmd
    • For Linux and Mac: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/start-qa-database.sh --output start-qa-database.sh && chmod +x start-qa-database.sh
  3. Run start-qa-database.sh (on Linux or Mac) or start-qa-database.cmd (on Windows)
  4. The program will prompt you for username and password for your docker account. Make sure this docker account has read access on the honeur images. If you are already logged in to docker, the program will automatically use the existing credentials.
  5. Press Enter to remove existing postgres-qa and webapi-source-qa-enable container.
  6. After the program has downloaded the docker-compose.yml and setup-conf/setup.yml files, it will start initializing the QA database and insert the source of the QA database inside the original database.
  7. Restart webapi/atlas container to make the source available in the webapi/atlas instance. Do this using the following command: docker restart webapi
Removal steps
  1. Open a terminal window (Command Prompt on Windows)
  2. Download the installation file
    • For Windows: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/remove-qa-database.cmd --output remove-qa-database.cmd
    • For Linux and Mac: curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/remove-qa-database.sh --output remove-qa-database.sh && chmod +x remove-qa-database.sh
  3. Run remove-qa-database.sh (on Linux or Mac) or remove-qa-database.cmd (on Windows)
  4. The program will prompt you for username and password for your docker account. Make sure this docker account has read access on the honeur images. If you are already logged in to docker, the program will automatically use the existing credentials.
  5. Press Enter to remove existing postgres-qa and webapi-source-qa-disable container.
  6. After the program has downloaded the docker-compose.yml and setup-conf/setup.yml files, it will start removing the QA database and removing the source of the QA database inside the original database.

Backup and restore of the database

Backup

Download and run the script 'backup-database.sh':

curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/backup-database.sh --output backup-database.sh && chmod +x backup-database.sh

The backup script will create a tar file name 'postgres_backup_<date_time>.tar.bz2' in the current directory. Creating the backup file can take a long time depending on the size of the database. Copy the backup file to a save location for long term storage.

Restore

Download the script 'restore-database.sh'

curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/restore-database.sh --output restore-database.sh && chmod +x restore-database.sh

Run the script and provide the name of the backup file as parameter. The name of the target volume can be provided as a second argument. The backup will be restored in the pgdata volume if the target volume is not provided. The backup file should be present in the folder where the script is executed.

./restore-database postgres_backup_<date_time>.tar.bz2

Hot snapshot of the database

The database volume can be copied to a new volume (with a different name) to take a snapshot of the current database state. Download the script 'clone-volume.sh'

curl -L https://raw.githubusercontent.com/solventrix/Honeur-Setup/master/clone-volume.sh --output clone-volume.sh && chmod +x clone-volume.sh

Run the script, provide the source volume as first parameter and the target volume as second parameter.

./clone-volume.sh pgdata pgdata_snapshot1

About

Github project for the local install of Honeur

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 51.2%
  • Batchfile 45.0%
  • R 3.8%