-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.jps
95 lines (95 loc) · 3.12 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
{
"application": {
"categories": [
"apps/others",
"apps/management-and-monitoring"
],
"description": {
"text": "**PhantomJS** is a headless scriptable WebKit with multiple web standards support. Operated through JavaScript API, it is used for headless application testing, automating web page interaction and monitoring network activity.\n\nSupported stacks: All certified application servers and Docker containers.",
"short": "A headless scriptable WebKit to perform web application testing and automate page interaction with JavaScript API."
},
"homepage": "http://phantomjs.org/",
"logo": "https://github.com/jelastic-jps/PhantomJS/raw/master/images/PhantomJS.png",
"targetNodes": {
"nodeGroup": "cp"
},
"globals" : {
"installScript211" : "https://github.com/jelastic-jps/PhantomJS/raw/master/scripts/install211.sh",
"installScript198" : "https://github.com/jelastic-jps/PhantomJS/raw/master/scripts/install198.sh",
"removeScript" : "https://github.com/jelastic-jps/PhantomJS/raw/master/scripts/remove.sh",
"documentationLink" : "http://phantomjs.org/documentation/"
},
"name": "PhantomJS Add-On",
"settings": {
"fields": [{
"type": "list",
"name": "version",
"caption": "Choose version:",
"default": "PhantomJS 2.1.1",
"values": {
"PhantomJS 2.1.1": "PhantomJS 2.1.1",
"PhantomJS 1.9.8": "PhantomJS 1.9.8"
},
"hideLabel": false,
"editable": false
}]
},
"onInstall": [{
"if (settings.version == \"PhantomJS 2.1.1\")": {
"installPhantomJS": {
"script": "${globals.installScript211}"
}
},
"if (settings.version == \"PhantomJS 1.9.8\")": {
"installPhantomJS": {
"script": "${globals.installScript198}"
}
}
}],
"onUninstall": {
"call": "removePhantomJS"
},
"procedures": [
{
"id": "installPhantomJS",
"onCall": [
{
"execCmd": [
{
"commands": [
"curl -sSfL \"${this.script}\" -o ${SERVER_SCRIPTS}/install.sh 2>&1",
"/bin/bash ${SERVER_SCRIPTS}/install.sh",
"rm -f ${SERVER_SCRIPTS}/install.sh"
],
"nodeGroup": "${targetNodes.nodeGroup}",
"user": "root"
}
]
}
]
},
{
"id": "removePhantomJS",
"onCall": [
{
"execCmd": [
{
"commands": [
"curl -sSfL \"${globals.removeScript}\" -o ${SERVER_SCRIPTS}/remove.sh 2>&1",
"/bin/bash ${SERVER_SCRIPTS}/remove.sh",
"rm -f ${SERVER_SCRIPTS}/remove.sh"
],
"nodeGroup": "${targetNodes.nodeGroup}",
"user": "root"
}
]
}
]
}
],
"success": "${settings.version} add-on has been installed with default Jelastic settings. For the detailed guidance on applying your custom configurations to change the predefined PhantomJS behaviour, please refer to the [official documentation](${globals.documentationLink})",
"version": "${settings.version}"
},
"jpsType": "update",
"jpsVersion": "0.8"
}