-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmanifest.jps
88 lines (86 loc) · 2.22 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
{
"_info": "https://docs.cloudscripting.com/1.6.2/",
"jpsType": "update",
"jpsVersion": "1.6.2",
"application": {
"settings": {
"main":{
"fields":[
{
"type": "list",
"name": "supervisorVersion",
"caption": "Version",
"values": [
{
"caption": "latest",
"value": "latest"
},
{
"caption": "3.1.3",
"value": "3.1.3"
}
],
"required": true,
"default": "latest"
}
]
}
},
"id": "supervisord",
"name": "Supervisor for PHP",
"version": "latest",
"type": "php",
"targetNodes": {
"nodeType": ["apache2", "nginxphp", "apache", "nginx-ruby", "apache2-ruby","nginxphp-dockerized"]
},
"homepage": "http://supervisord.org/",
"baseUrl": "https://github.com/layershift/supervisord-jelastic/raw/master",
"logo": "supervisor.png",
"description": "texts/description.md",
"onInstall": {
"call": [
"installSupervisor"
]
},
"onUninstall": {
"call": "removeSupervisor"
},
"onAfterRedeployContainer": {
"call": "installSupervisor"
},
"procedures": [{
"id": "installSupervisor",
"onCall": [{
"executeShellCommands": [{
"nodeMission": "cp",
"user": "root",
"commands": [
"echo ${settings.supervisorVersion}",
"if [ -f /etc/yum.repos.d/mod-pagespeed.repo ]; then sed -i \"s/enabled=1/enabled=0/g\"; else echo \"n\" > /root/installation; fi",
"yum install --nogpgcheck -q -y python-pip 2>&1",
"if [ \"${settings.supervisorVersion}\" == \"latest\" ]; then pip install supervisor 2>&1; else pip install supervisor==${settings.supervisorVersion} 2>&1; fi"
]
}
]
}
]
}, {
"id": "removeSupervisor",
"onCall": [{
"executeShellCommands": [{
"nodeMission": "cp",
"user": "root",
"commands": [
"if [ -f /tmp/supervisord.pid ]; then kill -9 `cat /tmp/supervisord.pid`; else echo \"done\"; fi 2>&1",
"yes | pip uninstall supervisor",
"rm -f /usr/bin/echo_supervisord_conf /usr/bin/pidproxy /usr/bin/supervisorctl /usr/bin/supervisord 2>&1"
]
}
]
}
]
}
],
"success": "texts/success.md"
}
}