-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinuxforcomposer.json.dev
89 lines (89 loc) · 3.23 KB
/
linuxforcomposer.json.dev
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
{
"name": "linuxforphp/linuxforcomposer",
"description": "A Composer interface to run 'Linux for PHP' Docker containers, Dockerfiles or docker-compose files.",
"single": {
"image": {
"linuxforcomposer": {
"php-versions": [
"8.2"
],
"script": [
"composer self-update",
"/srv/tempo/wwwftsocan/data/lfphpdevuser.bash",
"cd /srv/tempo/wwwftsocan",
"chmod -R 777 cache/ logs/ templates_c/",
"composer update",
"cp -f config/config.local.php.dist config/config.local.php",
"sed -i 's/USERNAME/fwuser/g' config/config.local.php",
"sed -i 's/PASSWORD/testpass/g' config/config.local.php",
"sed -i 's/DATABASE/fw/g' config/config.local.php",
"sed -i 's/ftsocan.com/IPADDRESS/g' config/session.config.php",
"cd /srv",
"mv www www.OLD",
"ln -s tempo/wwwftsocan/public www",
"/srv/tempo/wwwftsocan/scripts/ftsocan_add_ssl_support.sh dappdev.ftsocan.com",
"/etc/init.d/mysql start",
"sleep 5",
"mysql -uroot -e \"CREATE DATABASE fw;\"",
"mysql -uroot -e \"CREATE USER 'fwuser'@'localhost' IDENTIFIED BY 'testpass';\"",
"mysql -uroot -e \"GRANT ALL PRIVILEGES ON fw.* TO 'fwuser'@'localhost'\"",
"mysql -uroot fw < /srv/tempo/wwwftsocan/data/db_schema.sql",
"mysql -uroot fw < /srv/tempo/wwwftsocan/data/db_data.sql",
"/etc/init.d/mysql stop",
"sleep 5",
"lfphp-get node.js-16",
"lfphp-get jq",
"npm install -g grunt",
"cd /srv/tempo/wwwftsocan",
"npm install",
"grunt watch >/dev/null 2>&1 &",
"lfphp --mysql --phpfpm --apache"
],
"thread-safe": "false"
},
"dockerfile": {
"url": "",
"container-name": "",
"username": "",
"token": ""
}
},
"containers": {
"modes": {
"mode1": "detached",
"mode2": "interactive",
"mode3": "tty"
},
"ports": {
"port1": [
"8181:80"
],
"port2": [
"8443:443"
]
},
"volumes": {
"volume1": "${PWD}/:/srv/tempo/wwwftsocan"
},
"persist-data": {
"mount": "false",
"root-name": "",
"directories": {
"directory1": "",
"directory2": "",
"directory3": ""
}
}
}
},
"docker-compose": {
"url": "",
"username": "",
"token": ""
},
"lfphp-cloud": {
"account": "",
"username": "",
"token": ""
}
}