-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmanifest.jps
63 lines (53 loc) · 2.41 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
version: 1.7
type: install
id: opencart
name: OpenCart
logo: images/opencart.png
categories:
- apps/e-commerce
- apps/sales-and-marketing
baseUrl: https://raw.githubusercontent.com/jelastic-jps/opencart/master/
mixins:
- configs/vers.yaml
globals:
DB_PASS: "${fn.password(10)}"
ADMIN_PASS: "${user.appPassword}"
homepage: https://www.opencart.com/
description: |
OpenCart is an open-source PHP-based online shopping cart system. A robust e-commerce solution for Internet merchants that provides the ability to create your own online business and participate in e-commerce at a minimal cost.
OpenCart offers a feature-rich, visually appealing interface that is easy to use.
engine: php8.3
nodes:
- cloudlets: 8
nodeType: apache2
- nodeType: mysql8
cloudlets: 8
onInstall:
- deploy:
archive: https://github.com/opencart/opencart/releases/download/${globals.version_opencart}/opencart-${globals.version_opencart}.zip
name: OpenCart-${globals.version_opencart}.zip
context: ROOT
- replaceInFile:
nodeType: apache2
path: "/etc/php.ini"
replacements:
- pattern: ".*extension=gd.so"
replacement: extension=gd.so
- restartNodes [cp]
- cmd[sqldb]: |-
MYSQL_PWD=${nodes.mysql8.password} mysql -uroot -e "CREATE DATABASE opencart;"
MYSQL_PWD=${nodes.mysql8.password} mysql -uroot -e "CREATE USER 'opencart'@'%' IDENTIFIED BY '${globals.DB_PASS}';"
MYSQL_PWD=${nodes.mysql8.password} mysql -uroot -e "GRANT ALL PRIVILEGES ON opencart.* To 'opencart'@'%' WITH GRANT OPTION;"
- cmd [cp]: |-
cd ${WEBROOT}/ROOT;
cp -r upload/* .;
touch config.php && chmod 0777 config.php;
touch admin/config.php && chmod 0777 admin/config.php;
php install/cli_install.php install --db_hostname ${nodes.sqldb.address} --db_username opencart --db_password ${globals.DB_PASS} --db_database opencart --db_driver mysqli --db_port 3306 --username admin --password ${globals.ADMIN_PASS} --email ${user.email} --http_server ${env.protocol}://${env.domain}/
rm -rf install;
success: |
Use the following credentials to access the OpenCart admin panel:
**Admin panel URL:** [${env.protocol}://${env.domain}/admin/](${env.protocol}://${env.domain}/admin/)
**Admin name:** admin
**Admin password:** ${globals.ADMIN_PASS}
To add a custom domain name for your OpenCart installation, follow the steps described in our [documentation](https://www.virtuozzo.com/application-platform-docs/custom-domains/).