This repository has been archived on 2021-04-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hbp-sp8-mip-local/settings.default.sh
Lionel Sambuc b290512265 Fix usage of variables for fixed values
Some values which are fixed by the docker compose file should not be set
as variables, and hardcoded everywhere as required.

This also untangles the use of the variables DB_HOST and DB_PORT to be
only about the exposed hostname and port, whenever the DB engine is
exposed on the server interface.
2018-02-22 16:57:22 +01:00

149 lines
5.0 KiB
Bash

: ${SHOW_SETTINGS:=false}
#############################################################################
# DATABASES
# Service Parameters
: ${DB_IMAGE:="hbpmip/postgresraw"}
: ${DB_VERSION:=":v1.2"}
: ${DB_HOST:="db"} # External hostname, if exposed
: ${DB_PORT:="31432"} # External port, if exposed
: ${DB_DATA:="${PWD}/postgres"}
: ${DB_DATASETS:="${PWD}/datasets"}
: ${DB_USER_ADMIN:="postgres"}
: ${DB_PASSWORD_ADMIN:="test"}
: ${DB_UI_IMAGE:="hbpmip/postgresraw-ui"}
: ${DB_UI_VERSION:=":v1.4"}
: ${DB_UI_PORT:="31555"} # External port, if exposed
# Databases Definitions:
# 1. To add a new DB, copy the last 3 lines below and increment the id
# 2. Add the new number in DB_CREATE_LIST
: ${DB_NAME1:="meta"}
: ${DB_USER1:="meta"}
: ${DB_PASSWORD1:="metapwd"}
: ${DB_NAME2:="features"}
: ${DB_USER2:="features"}
: ${DB_PASSWORD2:="featurespwd"}
: ${DB_NAME3:="woken"}
: ${DB_USER3:="woken"}
: ${DB_PASSWORD3:="wokenpwd"}
: ${DB_NAME4:="portal"}
: ${DB_USER4:="portal"}
: ${DB_PASSWORD4:="portalpwd"}
# Database setup tools
: ${DB_CREATE_IMAGE:="hbpmip/create-databases"}
: ${DB_CREATE_VERSION:=":1.0.0"}
# List of databases to create
: ${DB_CREATE_LIST:="1 2 3 4"}
: ${WOKEN_SETUP_IMAGE:="hbpmip/woken-db-setup"}
: ${WOKEN_SETUP_VERSION:=":1.0.2"}
: ${WOKEN_SETUP_DB:=${DB_NAME3}}
#: ${METADATA_SETUP_IMAGE:="hbpmip/sample-meta-db-setup"}
#: ${METADATA_SETUP_VERSION:=":0.4.0"}
: ${METADATA_SETUP_IMAGE:="hbpmip/mip-cde-meta-db-setup"} # Stable Config
: ${METADATA_SETUP_VERSION:=":1.1.1"} # Stable Config
: ${METADATA_SETUP_DB:=${DB_NAME1}}
: ${SAMPLE_SETUP_IMAGE:="hbpmip/sample-data-db-setup"}
#: ${SAMPLE_SETUP_VERSION:=":0.5.0"}
: ${SAMPLE_SETUP_VERSION:=":0.3.2"} # Stable Config
: ${SAMPLE_SETUP_DB:=${DB_NAME2}}
: ${ADNI_MERGE_SETUP_IMAGE:="registry.gitlab.com/hbpmip_private/adni-merge-db-setup"}
: ${ADNI_MERGE_SETUP_VERSION:=":1.4.2"}
: ${ADNI_MERGE_SETUP_DB:=${DB_NAME2}}
: ${EDSD_SETUP_IMAGE:="registry.gitlab.com/hbpmip_private/edsd-data-db-setup"}
: ${EDSD_SETUP_VERSION:=":1.3.2"}
: ${EDSD_SETUP_DB:=${DB_NAME2}}
: ${PPMI_SETUP_IMAGE:="registry.gitlab.com/hbpmip_private/ppmi-data-db-setup"}
: ${PPMI_SETUP_VERSION:=":1.0.2"}
: ${PPMI_SETUP_DB:=${DB_NAME2}}
# List of databases to populate
#: ${DB_SETUP_LIST:="WOKEN_SETUP METADATA_SETUP SAMPLE_SETUP"}
: ${DB_SETUP_LIST:="WOKEN_SETUP METADATA_SETUP ADNI_MERGE_SETUP EDSD_SETUP PPMI_SETUP"} # Stable Config
#############################################################################
: ${MIP_PRIVATE_NETWORK:="mip_local"}
: ${COMPOSE_PROJECT_NAME:="mip"}
: ${PORTAINER_IMAGE:="portainer/portainer"}
: ${PORTAINER_VERSION:=":latest"}
: ${PORTAINER_HOST:="portainer"}
: ${PORTAINER_PORT:="9000"}
: ${PORTAINER_DATA:="${PWD}/portainer"}
#############################################################################
# Services
: ${ZOOKEEPER_IMAGE:="zookeeper"}
: ${ZOOKEEPER_VERSION:=":3.4.11"}
: ${ZOOKEEPER_PORT1:="2181"}
: ${ZOOKEEPER_PORT2:="2888"}
: ${ZOOKEEPER_PORT3:="3888"}
: ${MESOS_MASTER_IMAGE:="mesosphere/mesos-master"}
: ${MESOS_MASTER_VERSION:=":1.3.0"}
: ${MESOS_MASTER_PORT:="5050"}
: ${MESOS_MASTER_LOGS:="${PWD}/mesos-master/logs"}
: ${MESOS_MASTER_TMP:="${PWD}/mesos-master/tmp"}
: ${MESOS_SLAVE_IMAGE:="mesosphere/mesos-slave"}
: ${MESOS_SLAVE_VERSION:=":1.3.0"}
: ${MESOS_SLAVE_PORT:="5051"}
: ${MESOS_SLAVE_LOGS:="${PWD}/mesos-slave/logs"}
: ${MESOS_SLAVE_TMP:="${PWD}/mesos-slave/tmp"}
: ${CHRONOS_IMAGE:="mesosphere/chronos"}
#: ${CHRONOS_VERSION:=":v3.0.2"}
: ${CHRONOS_VERSION:=":chronos-2.5.0-0.1.20170628182950.ubuntu1404-mesos-1.3.0"} # Stable Config
: ${CHRONOS_HOST:="chronos"}
: ${CHRONOS_PORT1:="4400"}
: ${CHRONOS_PORT2:="4401"}
: ${WOKEN_IMAGE:="hbpmip/woken"}
#: ${WOKEN_VERSION:=":2.1.4"}
: ${WOKEN_VERSION:=":2.0.4"} # Stable Config
: ${WOKEN_HOST:="woken"}
: ${WOKEN_PORT1:="8088"}
: ${WOKEN_PORT2:="8087"}
: ${WOKEN_AKKA_PORT:=${WOKEN_PORT1}}
: ${WOKEN_CONF:="${PWD}/woken/application.conf"}
#: ${WOKEN_MAIN_TABLE:="cde_features_a"}
: ${WOKEN_MAIN_TABLE:="mip_cde_features"} # Stable Config
: ${WOKEN_EXAREME_URL:="http://prozac.madgik.di.uoa.gr:9090/mining/query"}
#: ${WOKEN_CONTEXT_PATH:="/services"}
: ${WOKEN_CONTEXT_PATH:=""} # Stable Config
: ${WOKEN_VALIDATION_IMAGE:="hbpmip/woken-validation"}
#: ${WOKEN_VALIDATION_VERSION:=":2.1.0"}
: ${WOKEN_VALIDATION_VERSION:=":2.0.4"} # Stable Config
: ${WOKEN_VALIDATION_HOST:="woken-validation"}
: ${WOKEN_VALIDATION_PORT:="8082"}
: ${WOKEN_VALIDATION_CONF:="${PWD}/woken/validation.conf"}
: ${PORTAL_BACKEND_IMAGE:="hbpmip/portal-backend"}
#: ${PORTAL_BACKEND_VERSION:=":2.5.4"}
: ${PORTAL_BACKEND_VERSION:=":2.4.7"} # Stable Config
: ${PORTAL_BACKEND_AUTHENTICATION:="0"}
: ${PORTAL_BACKEND_CLIENT_ID:="none"}
: ${PORTAL_BACKEND_CLIENT_SECRET:="none"}
#: ${PORTAL_BACKEND_CONTEXT:="services"}
: ${PORTAL_BACKEND_CONTEXT:=""} # Stable Config
: ${PORTAL_FRONTEND_IMAGE:="hbpmip/portal-frontend"}
#: ${PORTAL_FRONTEND_VERSION:=":2.6.0"}
: ${PORTAL_FRONTEND_VERSION:=":2.3.3"} # Stable Config
: ${PORTAL_FRONTEND_PORT1:="80"}
: ${PORTAL_FRONTEND_PORT2:="443"}
: ${PORTAL_FRONTEND_URL:="http://172.16.22.176:${PORTAL_FRONTEND_PORT1}"}