-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
77 lines (61 loc) · 2.98 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"""
CONFIGURATION FILE
This is being developed for the MF2C Project: http://www.mf2c-project.eu/
Copyright: Roi Sucasas Font, Atos Research and Innovation, 2017.
This code is licensed under an Apache 2.0 license. Please, refer to the LICENSE.TXT file for more information
Created on 18 oct. 2018
@author: Roi Sucasas - ATOS
"""
#!/usr/bin/python
dic = { "VERSION": "1.3.14",
# LIFECYCLE MANAGER MODE: "DEFAULT", "MF2C" , "STANDALONE"
"LM_MODE": "MF2C",
# SERVER - REST API:
"SERVER_PORT": 46000,
"HOST_IP": "localhost",
"API_DOC_URL": "/api/v2/lm",
# STANDALONE_MODE db
"DB_STANDALONE_MODE": "lm_db",
# working dir: "C://TMP/tmp/mf2c/lm/" "/tmp/mf2c/lm/"
"LM_WORKING_DIR_VOLUME": "/tmp/mf2c/lm/",
# DOCKER / SWARM / K8s:
"DOCKER_SOCKET": "unix://var/run/docker.sock",
"DOCKER_SWARM": False,
"K8S_MASTER": False,
"K8S_PROXY": "http://127.0.0.1:8001",
"K8S_NAMESPACE": "default",
# VERIFY_SSL controls whether we verify the server's TLS certificate or not
"VERIFY_SSL": False,
# CIMI:
"CIMI_URL": "http://cimi:8201/api",
# docker:
# working dir for docker compose applications / services
"WORKING_DIR_VOLUME": "/tmp/mf2c/compose_files",
# docker compose image: needed to deploy docker compose based services
"DOCKER_COMPOSE_IMAGE": "docker/compose:1.24.0", #1.23.1",
"DOCKER_COMPOSE_IMAGE_TAG": "1.24.0", #"1.23.1",
# docker socket volume
"DOCKER_SOCKET_VOLUME": "/var/run/docker.sock",
# ports db
"DB_DOCKER_PORTS": "docker_ports_db", #"./docker_ports_db",
# URLs / ports from other mF2C components:
# PM-SLA MANAGER
"URL_PM_SLA_MANAGER": "http://slalite:46030",
# AC-QoS PROVIDING
"URL_AC_SERVICE_MNGMT": "http://service-manager:46200/api",
# TIMEOUT ANALYTICS ENGINE
"TIMEOUT_ANALYTICSENGINE": 60,
# PORT_COMPSs
"PORT_COMPSs": 46100,
# NETWORK_COMPSs
"NETWORK_COMPSs": "not-defined",
# COMPSs - dataclay
"DATACLAY_EP": ":1034", # --env DATACLAY_EP=${lm_ip_address}:1034
# URL_PM_RECOM_LANDSCAPER:
"URL_PM_RECOM_LANDSCAPER": "http://analytics-engine:46020/mf2c",
# TODO fix/remove dependencies
# PM-Lifecycle: /api/v1/lifecycle/<string:service_id>
"URL_PM_LIFECYCLE": "http://lm-um:46000/api/v2/lm",
# AC-USER MANAGEMENT: "http://lm-um:46300/api/v2/um" "http://localhost:46300/api/v2/um"
"URL_AC_USER_MANAGEMENT": "http://lm-um:46300/api/v2/um"
}