-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanifest.jps
116 lines (116 loc) · 3.76 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
{
"jpsType": "update",
"application": {
"logo": "https://github.com/jelastic-jps/managecat/raw/master/images/manageCat.png",
"onUninstall": {
"call": "removeManageCat"
},
"settings": {
"fields": [{
"default": "${user.email}",
"name": "email",
"caption": "Email",
"vtype": "email",
"type": "string",
"required": true
}, {
"name": "password",
"inputType": "password",
"caption": "Password",
"regex": "^[a-zA-Z0-9-]+$",
"type": "string",
"required": true
}, {
"name": "fName",
"caption": "First Name",
"type": "string",
"required": false,
"regex" : "^[a-zA-Z\\s]{0,60}$",
"regexText" : "Only latin characters, whitespaces and length no more than 60 symbols."
}, {
"name": "lName",
"caption": "Last Name",
"type": "string",
"required": false,
"regex" : "^[a-zA-Z\\s]{0,60}$",
"regexText" : "Only latin characters, whitespaces and length no more than 60 symbols."
}
]
},
"procedures": [{
"id": "update_catalina_properties",
"onCall": [{
"executeScript": {
"description": "Detect archive and deploy",
"type": "js",
"script": "https://github.com/jelastic-jps/managecat/raw/master/scripts/ArchiveDetector.js"
}
}, {
"executeShellCommands": [{
"commands": ["wget -q \"https://github.com/jelastic-jps/managecat/raw/master/scripts/mcat_installer.sh\" -O \"/tmp/mcat_installer\"", "bash /tmp/mcat_installer ${license.key}"],
"nodeMission": "cp"
}
]
}, {
"executeScript": {
"type": "js",
"script": "https://github.com/jelastic-jps/managecat/raw/master/scripts/ReplaceServerName.js"
}
}
]
}, {
"id": "restartApp",
"onCall": [{
"restartNodes": {
"nodeMission": "cp"
}
}
]
}, {
"id": "removeManageCat",
"onCall": [{
"executeShellCommands": [{
"commands": ["[ -f /opt/tomcat/conf/catalina.properties ] && sed -i \"/com.managecat/d\" /opt/tomcat/conf/catalina.properties 2>>/dev/null 1>>/dev/null", "if [ -d /opt/tomcat8 ]; then [ -f /opt/tomcat8/conf/catalina.properties ] && sed -i \"/com.managecat/d\" /opt/tomcat8/conf/catalina.properties; fi"],
"nodeMission": "cp",
"user": "root"
}
]
}
]
}, {
"id": "replace",
"onCall": [{
"replaceInFile": [{
"nodeId": "${this.nodeid}",
"replacements": [{
"replacement": "${this.replacement}",
"pattern": "${this.pattern}"
}
],
"path": "${this.path}"
}
]
}
]
}
],
"homepage": "http://www.managecat.com/",
"version": "1.0.0",
"targetNodes": {
"nodeType": ["tomcat8", "tomcat7", "tomcat6", "tomee", "tomcat", "tomee-dockerized"]
},
"description": "Managecat has all the tools you need to manage, monitor and troubleshoot your Apache Tomcat instances in one view.",
"name": "ManageCat",
"categories": ["apps/others", "apps/management-and-monitoring"],
"license": {
"terms": "I agree with <a href='https://saas.managecat.com/freetrial/privacy' target='_blank'><u>terms of service<\/u><\/a>",
"url": "http://7f0a21d8a92c209144be640de301ba79.app.jelastic.com/ManageCat"
},
"success": "Hello ${settings.fName} <\/br><\/br>Below you will find your ManageCat SaaS platform link, username.<\/br><\/br> <table style='font-size:13px; border: none;'><tr><td> ManageCat URL:<\/td><td style='padding-left: 10px;'><a href='https://saas.managecat.com' target='_blank'>https://saas.managecat.com<\/a><\/td><\/tr> <tr><td>User name:<\/td><td style='padding-left: 10px;'>${settings.email}<\/td><\/tr><\/table><\/br>",
"onInstall": [{
"call": ["update_catalina_properties", "restartApp"]
}
]
},
"jpsVersion": "0.4"
}