This repository was archived by the owner on Jan 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdev_openeo_sample
86 lines (76 loc) · 1.85 KB
/
dev_openeo_sample
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
78
79
80
81
82
83
84
85
86
# NB: the environments for each service must be pre-installed
ENV_GATEWAY=
ENV_CAPABILITIES=
ENV_DATA=
ENV_PROCESSES=
ENV_JOBS=
ENV_FILES=
# Path to local repository
OPENEO_BASE_FOLDER=/path/to/local/repository
# -- Nothing should be changed below this line --
# Gateway
function oeo-gateway() {
cd $OPENEO_BASE_FOLDER
source .env
source activate $ENV_GATEWAY
source envs/rabbitmq.env
source envs/gateway.env
source envs/users.env
source envs/files.env
cd gateway
gunicorn -c gunicorncfg.py wsgi:app
}
# Capabilities service
function oeo-capabilities-service() {
cd $OPENEO_BASE_FOLDER
source activate $ENV_CAPABILITIES
source .env
source envs/rabbitmq.env
source envs/gateway.envcd services/capabilities
nameko run --config config.yaml capabilities.service
}
# Data service
function oeo-capabilities-service() {
cd $OPENEO_BASE_FOLDER
source activate $ENV_DATA
source .env
source envs/rabbitmq.env
source envs/csw.env
source envs/wekeo_hda.env
source ./envs/gateway.env
source envs/data.env
cd services/data
nameko run --config config.yaml data.service
}
# Processes service
function oeo-processes-service() {
cd $OPENEO_BASE_FOLDER
source activate $ENV_PROCESSES
source .env
source envs/rabbitmq.env
source envs/processes.env
cd services/processes
nameko run --config config.yaml processes.service
}
# Jobs service
function oeo-jobs-service() {
cd $OPENEO_BASE_FOLDER
source activate $ENV_JOBS
source .env
source envs/rabbitmq.env
source envs/gateway.env
source envs/csw.env
source envs/wekeo_hda.env
source envs/jobs.env
cd services/jobs
nameko run --config config.yaml jobs.service
}
# Files service
function oeo-files-service() {
cd $OPENEO_BASE_FOLDER
source activate $ENV_FILES
source .env
source envs/rabbitmq.env
cd services/files
nameko run --config config.yaml files.service
}