This repository has been archived by the owner on Mar 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.jps
121 lines (116 loc) · 3.96 KB
/
manifest.jps
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
jpsVersion: 1.3
jpsType: install
application:
id: shopozor-configuration
name: Shopozor
version: 0.0
baseUrl: https://raw.githubusercontent.com/softozor/shopozor-configuration/master
globals:
consumerApiEnvName: shopozor-consumer-api
consumerApiHost: ${globals.consumerApiEnvName}.hidora.com
consumerApiPort: 8080
redisPort: 6379
settings:
fields:
- type: spacer
caption: Git
- name: gitUser
caption: User
type: string
required: true
- name: gitPassword
caption: Password
type: string
inputType: password
required: true
- type: spacer
caption: Magento
- name: magentoHost
caption: HOST
type: hostpicker
editable: true
default: softozor-magento.hidora.com
required: true
- name: consumerKey
caption: CONSUMER_KEY
type: string
required: true
- name: consumerSecret
caption: CONSUMER_SECRET
type: string
required: true
- name: accessToken
caption: ACCESS_TOKEN
type: string
required: true
- name: accessTokenSecret
caption: ACCESS_TOKEN_SECRET
type: string
required: true
onInstall:
- installVsfConsumerApi
- installVsfConsumerFrontend
- installAddon:
id: letsencrypt
- allowAccessToApiFromFrontend
- installManagementFrontend
# open management-api for access from management-frontend
# open consumer-api for access from management-api
actions:
installVsfConsumerApi:
install:
jps: apis/vsf-consumer-api/manifest.jps
envName: ${globals.consumerApiEnvName}
displayName: Consumer API
settings:
gitRepo: https://bitbucket.org/softozor/shopozor-vsf-consumer-api
gitBranch: master
gitUser: ${settings.gitUser}
gitPassword: ${settings.gitPassword}
magentoHost: ${settings.magentoHost}
consumerKey: ${settings.consumerKey}
consumerSecret: ${settings.consumerSecret}
accessToken: ${settings.accessToken}
accessTokenSecret: ${settings.accessTokenSecret}
port: ${globals.consumerApiPort}
redisPort: ${globals.redisPort}
installVsfConsumerFrontend:
install:
jps: frontends/vsf-consumer-frontend/manifest.jps
envName: shopozor-consumer-frontend
displayName: Consumer frontend
settings:
gitRepo: https://bitbucket.org/softozor/shopozor-vsf-consumer-frontend
gitBranch: master
gitUser: ${settings.gitUser}
gitPassword: ${settings.gitPassword}
apiHost: ${globals.consumerApiHost}
apiPort: ${globals.consumerApiPort}
redisPort: ${globals.redisPort}
installManagementFrontend:
install:
jps: frontends/management-frontend/manifest.jps
envName: shopozor-management-frontend
displayName: Management frontend
settings:
gitRepo: https://bitbucket.org/softozor/shopozor-management-frontend
gitBranch: master
gitUser: ${settings.gitUser}
gitPassword: ${settings.gitPassword}
consumerApiHost: ${globals.consumerApiHost}
allowAccessToApiFromFrontend:
- script: ${baseUrl}/apis/scripts/OpenToEnvironment.js
portToOpen: 8080
envToOpen: ${globals.consumerApiEnvName}
envToAllow: shopozor-consumer-frontend
# TODO: let this depend on the envName and customDomains so that I can reuse that code
addons:
- id: letsencrypt
name: letsencrypt
onInstall:
- install:
envName: shopozor-consumer-frontend
jps: https://github.com/jelastic-jps/lets-encrypt/blob/master/manifest.jps
settings:
nodeGroup: bl
customDomains: "" # TODO: get that as argument