-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmanifest.jps
115 lines (115 loc) · 3.49 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
{
"jpsVersion": "0.6",
"jpsType": "update",
"build": "201705301600",
"application": {
"id": "packages-installer",
"name": "Yum Packages Installer",
"categories": [
"apps/dev-and-admin-tools"
],
"version": "1.0",
"homepage": "https://github.com/jelastic-jps/packages-installer",
"logo": "https://github.com/jelastic-jps/packages-installer/raw/master/images/rpm-logo.png",
"description": {
"text": "The Yum Packages Installer add-on is designed to integrate additional packages essential for your application but unavailable within Jelastic containers by default, including packages that require sudo permissions to be installed.",
"short": "The Yum Packages Installer to integrate additional development tools and RPM packages."
},
"targetNodes": {
"nodeType": "*"
},
"procedures": [
{
"id": "log",
"onCall": {
"log": "${this.message}"
}
},
{
"id": "installPackage",
"onCall": [
{
"cmd": {
"commands": [
"yum install -y ${this.packageInstall}"
],
"nodeType": "${targetNodes[0].nodeType}",
"user": "root"
}
}
]
},
{
"id": "removePackage",
"onCall": [
{
"cmd": {
"commands": [
"yum remove -y ${this.packageRemove}"
],
"nodeType": "${targetNodes[0].nodeType}",
"user": "root"
}
}
]
}
],
"menu": [
{
"confirmText": "Install package",
"settings": "packageInstall",
"loadingText": "Installing package...",
"caption": "Install package",
"procedure": "installPackage",
"successText": "The package has been successfully installed"
},
{
"confirmText": "Remove package",
"settings": "packageRemove",
"loadingText": "Removing package...",
"caption": "Remove package",
"procedure": "removePackage",
"successText": "The package has been successfully removed"
}
],
"settings": {
"packageInstall": {
"fields": [
{
"regexText": "Incorrect package name.",
"name": "packageInstall",
"caption": "Package:",
"type": "string",
"required": true
},
{
"caption": "Instruction:",
"type": "displayfield",
"markup": "To install a package, specify its name or URL in the box above. For several entries, use space as a separator.",
"required": true
}
]
},
"packageRemove": {
"fields": [
{
"regexText": "Incorrect package name.",
"name": "packageRemove",
"caption": "Package:",
"type": "string",
"required": true
},
{
"caption": "Instruction:",
"type": "displayfield",
"markup": "To remove a package, specify its name in the box above. For several entries, use space as a separator.",
"required": true
}
]
}
},
"success": {
"text": "Click <b>Add-ons</b> for a destination node to locate <b>Yum Packages Installer</b>. To use the add-on, expand the menu in the upper-right corner, click <b>Install package</b> and specify name and/or URL of the required packages."
}
}
}