Skip to content

Commit 04008c9

Browse files
JE-45030 & converted to YAML
1 parent 9b374a6 commit 04008c9

File tree

1 file changed

+57
-138
lines changed

1 file changed

+57
-138
lines changed

magento/manifest.jps

Lines changed: 57 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,57 @@
1-
{
2-
"jpsType": "install",
3-
"jpsVersion": "0.3",
4-
"application": {
5-
"id": "magento",
6-
"name": "Magento",
7-
"version": "2.1.6",
8-
"logo": "https://raw.githubusercontent.com/jelastic-jps/magento/master/magento/images/magento.png",
9-
"type": "php",
10-
"categories": [
11-
"apps/e-commerce",
12-
"apps/sales-and-marketing"
13-
],
14-
"homepage": "http://www.magentocommerce.com/",
15-
"description": {
16-
"en": "Magento is the eCommerce software and platform trusted by the world's leading brands. Grow your online business with Magento!"
17-
},
18-
"env": {
19-
"topology": {
20-
"ha": false,
21-
"engine": "php5.6",
22-
"ssl": false,
23-
"nodes": [
24-
{
25-
"extip": false,
26-
"count": 1,
27-
"cloudlets": 8,
28-
"nodeType": "apache2"
29-
},
30-
{
31-
"nodeType": "mysql",
32-
"tag": "5.7.22",
33-
"extip": false,
34-
"count": 1,
35-
"cloudlets": 8
36-
}
37-
]
38-
}
39-
},
40-
"onInstall": {
41-
"call": [
42-
"deployApp",
43-
"createDb",
44-
"replaceInFiles",
45-
"bindDomain"
46-
]
47-
},
48-
"procedures": [
49-
{
50-
"id": "deployApp",
51-
"onCall": [
52-
{
53-
"deploy": [
54-
{
55-
"nodeMission": "cp",
56-
"archive": "https://github.com/jelastic-jps/magento/blob/master/magento/dumps/Magento-CE-2.1.6-2017-03-29-12-40-05.zip?raw=true",
57-
"name": "Magento-2.1.6.zip",
58-
"context": "ROOT"
59-
}
60-
]
61-
}
62-
]
63-
},
64-
{
65-
"id": "createDb",
66-
"onCall": [
67-
{
68-
"prepareSqlDatabase": [
69-
{
70-
"nodeMission": "sqldb",
71-
"loginCredentials": {
72-
"user": "root",
73-
"password": "${nodes.mysql5.password}"
74-
},
75-
"newDatabaseName": "magento",
76-
"newDatabaseUser": {
77-
"name": "magento",
78-
"password": "magento"
79-
}
80-
}
81-
]
82-
}
83-
]
84-
},
85-
{
86-
"id": "replaceInFiles",
87-
"onCall": [
88-
{
89-
"replaceInFile": [
90-
{
91-
"nodeMission": "cp",
92-
"path": "${SYSTEM_ETC}/php.ini",
93-
"replacements": [
94-
{
95-
"pattern": ";extension=gd.so",
96-
"replacement": "extension=gd.so \rextension=intl.so \rextension=xsl.so"
97-
}
98-
]
99-
}
100-
]
101-
},
102-
{
103-
"restartNodes": [
104-
{
105-
"nodeMission": "cp"
106-
}
107-
]
108-
}
109-
]
110-
},
111-
{
112-
"id": "bindDomain",
113-
"onCall": [
114-
{
115-
"executeShellCommands": [
116-
{
117-
"nodeMission": "cp",
118-
"commands": [
119-
"cd /var/www/webroot/ROOT/bin && chmod a+x magento",
120-
"/usr/bin/php magento setup:install -s '--backend-frontname=admin' '--db-host=${nodes.mysql5.address}' '--db-name=magento' '--db-user=root' '--db-password=${nodes.mysql5.password}' '--base-url=${env.url}' '--admin-firstname=admin' '--admin-lastname=adminlast' '--admin-email=${user.email}' '--admin-user=admin' '--admin-password=${user.appPassword}' &> /dev/null",
121-
"/usr/bin/php magento indexer:reindex && /usr/bin/php magento cache:flush &> /dev/null"
122-
]
123-
},
124-
{
125-
"nodeMission": "cp",
126-
"commands": "sed -i \"162s/select]/select->limit(10000000000)]/\" /var/www/webroot/ROOT/vendor/magento/framework/Search/Adapter/Mysql/Mapper.php"
127-
}
128-
]
129-
}
130-
]
131-
}
132-
],
133-
"success": {
134-
"text": "Below you will find your admin panel link, username and password.</br></br> <table style='font-size:13px; border: none;'><tr><td width=\"70px\">Admin URL:</td><td style='padding-left: 10px;'><a href='${env.url}index.php/admin/' target='_blank'>${env.url}index.php/admin/</a></td></tr> <tr><td>Admin name:</td><td style='padding-left: 10px;'>admin</td></tr><tr><td>Password:</td><td style='padding-left: 10px;'>${user.appPassword}</td></tr></table></br>To add custom domain name for your Magento installation follow the steps described in our <a href='http://docs.jelastic.com/custom-domains' target='_blank'>documentation</a>",
135-
"email": "Below you will find your admin panel link, username and password.</br></br> <table style='font-size:13px; border: none;'><tr><td width=\"70px\">Admin URL:</td><td style='padding-left: 10px;'><a href='${env.url}index.php/admin/' target='_blank'>${env.url}index.php/admin/</a></td></tr> <tr><td>Admin name:</td><td style='padding-left: 10px;'>admin</td></tr><tr><td>Password:</td><td style='padding-left: 10px;'>${user.appPassword}</td></tr></table></br>To add custom domain name for your Magento installation follow the steps described in our <a href='http://docs.jelastic.com/custom-domains' target='_blank'>documentation</a>"
136-
}
137-
}
138-
}
1+
type: install
2+
jpsVersion: 0.3
3+
id: magento
4+
name: Magento
5+
version: 2.1.6
6+
logo: https://raw.githubusercontent.com/jelastic-jps/magento/master/magento/images/magento.png
7+
categories:
8+
- apps/e-commerce
9+
- apps/sales-and-marketing
10+
homepage: http://www.magentocommerce.com/
11+
description: Magento is the eCommerce software and platform trusted by the world's
12+
leading brands. Grow your online business with Magento!
13+
env:
14+
engine: php5.6
15+
nodes:
16+
- cloudlets: 8
17+
nodeType: apache2
18+
- nodeType: mysql5
19+
cloudlets: 8
20+
onInstall:
21+
- deployApp
22+
- createDb
23+
- replaceInFiles
24+
- bindDomain
25+
actions:
26+
deployApp:
27+
- deploy:
28+
nodeMission: cp
29+
archive: https://github.com/jelastic-jps/magento/blob/master/magento/dumps/Magento-CE-2.1.6-2017-03-29-12-40-05.zip?raw=true
30+
name: Magento-2.1.6.zip
31+
context: ROOT
32+
createDb:
33+
- prepareSqlDatabase:
34+
- nodeMission: sqldb
35+
loginCredentials:
36+
user: root
37+
password: ${nodes.mysql5.password}
38+
newDatabaseName: magento
39+
newDatabaseUser:
40+
name: magento
41+
password: magento
42+
replaceInFiles:
43+
- replaceInFile [cp]:
44+
- nodeMission: cp
45+
path: ${SYSTEM_ETC}/php.ini
46+
replacements:
47+
- pattern: ;extension=gd.so
48+
replacement: extension=gd.so \rextension=intl.so \rextension=xsl.so
49+
- restartNodes:
50+
nodeMission: cp
51+
bindDomain:
52+
- cmd [cp]:
53+
- cd /var/www/webroot/ROOT/bin && chmod a+x magento
54+
- /usr/bin/php magento setup:install -s '--backend-frontname=admin' '--db-host=${nodes.mysql5.address}' '--db-name=magento' '--db-user=root' '--db-password=${nodes.mysql5.password}' '--base-url=${env.url}' '--admin-firstname=admin' '--admin-lastname=adminlast' '--admin-email=${user.email}' '--admin-user=admin' '--admin-password=${user.appPassword}' &> /dev/null
55+
- /usr/bin/php magento indexer:reindex && /usr/bin/php magento cache:flush &> /dev/null
56+
- sed -i "162s/select]/select->limit(10000000000)]/" /var/www/webroot/ROOT/vendor/magento/framework/Search/Adapter/Mysql/Mapper.php
57+
success: 'Below you will find your admin panel link, username and password.</br></br> <table style=''font-size:13px; border: none;''><tr><td width="70px">Admin URL:</td><td style=''padding-left: 10px;''><a href=''${env.url}index.php/admin/'' target=''_blank''>${env.url}index.php/admin/</a></td></tr> <tr><td>Admin name:</td><td style=''padding-left: 10px;''>admin</td></tr><tr><td>Password:</td><td style=''padding-left: 10px;''>${user.appPassword}</td></tr></table></br>To add custom domain name for your Magento installation follow the steps described in our <a href=''http://docs.jelastic.com/custom-domains'' target=''_blank''>documentation</a>'

0 commit comments

Comments
 (0)