def __init__(self): config_file_path = os.environ.get('HANDOVER_CONFIG_PATH') file_config = load_config_yaml(config_file_path) ES_HOST = os.environ.get('ES_HOST', file_config.get('es_host', 'localhost')) ES_PORT = os.environ.get('ES_PORT', file_config.get('es_port', '9200')) RELEASE = os.environ.get('ENS_RELEASE', file_config.get('ens_release', '100')) self.es = Elasticsearch([{'host': ES_HOST, 'port': ES_PORT}])
''' @author: dstaines ''' import os from ensembl_prodinf.config import load_config_yaml config_file_path = os.environ.get('EVENT_CONFIG_PATH') file_config = load_config_yaml(config_file_path) event_lookup = os.environ.get( "EVENT_LOOKUP_FILE", file_config.get('event_lookup_file', "./event_lookup.json")) process_lookup = os.environ.get( "PROCESS_LOOKUP_FILE", file_config.get('process_lookup_file', "./process_lookup.json")) report_server = os.environ.get( "REPORT_SERVER", file_config.get('report_server', "amqp://*****:*****@localhost:5672/%2F")) report_exchange = os.environ.get( "REPORT_EXCHANGE", file_config.get('report_exchange', 'report_exchange')) event_uri = os.environ.get( "EVENT_URI", file_config.get('event_uri', 'http://127.0.0.1:5004/')) ES_HOST = os.environ.get('ES_HOST', file_config.get('es_host', 'es01')) ES_PORT = os.environ.get('ES_PORT', file_config.get('es_port', '9200')) RELEASE = os.environ.get('ENS_RELEASE', file_config.get('ens_release', '101'))