Skip to content

Commit a5ff786

Browse files
authored
Merge pull request #3 from sych74/master
Magento version update
2 parents 04008c9 + a78ab33 commit a5ff786

File tree

2 files changed

+91
-48
lines changed

2 files changed

+91
-48
lines changed
98.2 MB
Binary file not shown.

magento/manifest.jps

Lines changed: 91 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,100 @@
1-
type: install
2-
jpsVersion: 0.3
1+
jpsType: install
2+
jpsVersion: '1.5.2'
33
id: magento
44
name: Magento
5-
version: 2.1.6
65
logo: https://raw.githubusercontent.com/jelastic-jps/magento/master/magento/images/magento.png
76
categories:
8-
- apps/e-commerce
9-
- apps/sales-and-marketing
7+
- apps/e-commerce
8+
- apps/sales-and-marketing
109
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
10+
description:
11+
en: Magento is the eCommerce software and platform trusted by the world's leading
12+
brands. Grow your online business with Magento!
13+
14+
baseUrl: https://raw.githubusercontent.com/jelastic-jps/magento/master
15+
16+
settings:
17+
fields:
18+
name: magento_version
19+
caption: Magento version
20+
type: list
21+
values:
22+
Magento-CE-2.3.0.tar.bz2: Magento CE 2.3.x
23+
Magento-CE-1.9.4.tar.bz2: Magento CE 1.9.4.x
24+
default: Magento-CE-2.3.0.tar.bz2
25+
26+
globals:
27+
DB_USER: jelastic-${fn.random}
28+
DB_PASS: ${fn.password(20)}
29+
ADMIN_PASSWD: ${fn.password(20)}
30+
CONFIGS_PATH: https://raw.githubusercontent.com/jelastic-jps/magento-cluster/master
31+
32+
ssl: false
33+
nodes:
34+
- nodeType: nginxphp-dockerized
35+
tag: 1.14.2-php-7.2.14
36+
count: 1
37+
cloudlets: 16
38+
nodeGroup: cp
39+
links: sqldb:DB
40+
41+
- nodeType: mysql
42+
count: 1
1943
cloudlets: 8
44+
nodeGroup: sqldb
45+
2046
onInstall:
21-
- deployApp
22-
- createDb
23-
- replaceInFiles
24-
- bindDomain
47+
- createDb
48+
- deployMagento
49+
- setupMagento
50+
2551
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
3252
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>'
53+
- cmd [sqldb]: |-
54+
wget https://raw.githubusercontent.com/jelastic-jps/mysql-cluster/master/scripts/setupUser.sh -O ~/setupUser.sh &>> /var/log/run.log
55+
bash ~/setupUser.sh ${globals.DB_USER} ${globals.DB_PASS} &>> /var/log/run.log
56+
mysql -u${globals.DB_USER} -p${globals.DB_PASS} -e "CREATE DATABASE IF NOT EXISTS magento;"
57+
user: root
58+
59+
deployMagento:
60+
- deploy:
61+
archive: https://github.com/jelastic-jps/magento-cluster/raw/master/releases/${settings.magento_version}
62+
name: ${settings.magento_version}
63+
context: ROOT
64+
65+
setupMagento:
66+
- if (/Magento-CE-1.9/.test("${settings.magento_version}")):
67+
cmd[cp]:
68+
- wget ${globals.CONFIGS_PATH}/configs/nginx/site-default-mg19.conf -O /etc/nginx/conf.d/site-default.conf
69+
- wget ${globals.CONFIGS_PATH}/configs/nginx/nginx.conf -O /etc/nginx/nginx.conf
70+
- wget ${globals.CONFIGS_PATH}/configs/php/extensions.ini -O /etc/php.d/extensions.ini;
71+
- sudo /etc/init.d/nginx restart;
72+
- wget ${globals.CONFIGS_PATH}/scripts/setupMG19.sh -O /tmp/setupMG19.sh && bash -x /tmp/setupMG19.sh
73+
${globals.DB_USER} ${globals.DB_PASS} DB magento ${globals.ADMIN_PASSWD}
74+
/var/www/webroot/ROOT ${env.url} ${user.email} &>> /var/log/run.log
75+
76+
- if (/Magento-CE-2/.test("${settings.magento_version}")):
77+
cmd[cp]:
78+
- wget ${globals.CONFIGS_PATH}/configs/nginx/site-default-mg2.conf -O /etc/nginx/conf.d/site-default.conf
79+
- wget ${globals.CONFIGS_PATH}/configs/nginx/nginx.conf -O /etc/nginx/nginx.conf
80+
- wget ${globals.CONFIGS_PATH}/configs/php/extensions.ini -O /etc/php.d/extensions.ini;
81+
- sudo /etc/init.d/nginx restart;
82+
- wget ${globals.CONFIGS_PATH}/scripts/setupMG2.sh -O /tmp/setupMG2.sh && bash -x /tmp/setupMG2.sh
83+
${globals.DB_USER} ${globals.DB_PASS} DB magento ${globals.ADMIN_PASSWD}
84+
/var/www/webroot/ROOT ${env.url} ${user.email} &>> /var/log/run.log
85+
86+
success:
87+
text: 'Below you will find your admin panel link, username and password.</br></br>
88+
<table style=''font-size:13px; border: none;''><tr><td width="70px">Admin URL:</td><td
89+
style=''padding-left: 10px;''><a href=''${env.url}index.php/admin/'' target=''_blank''>${env.url}index.php/admin/</a></td></tr> <tr><td>Admin
90+
name:</td><td style=''padding-left: 10px;''>admin</td></tr><tr><td>Password:</td><td
91+
style=''padding-left: 10px;''>${globals.DB_ADMIN}</td></tr></table></br>To add
92+
custom domain name for your Magento installation follow the steps described
93+
in our <a href=''http://docs.jelastic.com/custom-domains'' target=''_blank''>documentation</a>'
94+
email: 'Below you will find your admin panel link, username and password.</br></br>
95+
<table style=''font-size:13px; border: none;''><tr><td width="70px">Admin URL:</td><td
96+
style=''padding-left: 10px;''><a href=''${env.url}index.php/admin/'' target=''_blank''>${env.url}index.php/admin/</a></td></tr> <tr><td>Admin
97+
name:</td><td style=''padding-left: 10px;''>admin</td></tr><tr><td>Password:</td><td
98+
style=''padding-left: 10px;''>${globals.DB_ADMIN}</td></tr></table></br>To add
99+
custom domain name for your Magento installation follow the steps described
100+
in our <a href=''http://docs.jelastic.com/custom-domains'' target=''_blank''>documentation</a>'

0 commit comments

Comments
 (0)