-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlinuxforcomposer.json
83 lines (82 loc) · 2.91 KB
/
linuxforcomposer.json
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
{
"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.0",
"8.1",
"8.2"
],
"script": [
"composer self-update",
"/srv/tempo/lightmvcskel/data/lfphpdevuser.bash",
"cd /srv/tempo/lightmvcskel",
"chmod -R 777 cache/ logs/ templates_c/",
"rm -f composer.lock && composer install",
"cp -f config/config.local.php.dist config/config.local.php",
"sed -i 's/USERNAME/lightmvcu/g' config/config.local.php",
"sed -i 's/PASSWORD/testpass/g' config/config.local.php",
"sed -i 's/DATABASE/lightmvc/g' config/config.local.php",
"cd /srv",
"mv www www.OLD",
"ln -s tempo/lightmvcskel/public www",
"/etc/init.d/mysql start",
"sleep 5",
"mysql -uroot -e \"CREATE DATABASE lightmvc;\"",
"mysql -uroot -e \"CREATE USER 'lightmvcu'@'localhost' IDENTIFIED BY 'testpass';\"",
"mysql -uroot -e \"GRANT ALL PRIVILEGES ON lightmvc.* TO 'lightmvcu'@'localhost'\"",
"mysql -uroot lightmvc < /srv/tempo/lightmvcskel/data/db_schema.sql",
"mysql -uroot lightmvc < /srv/tempo/lightmvcskel/data/db_data.sql",
"/etc/init.d/mysql stop",
"sleep 5",
"lfphp --mysql --phpfpm --apache"
],
"thread-safe": "false"
},
"dockerfile": {
"url": "",
"container-name": "",
"username": "",
"token": ""
}
},
"containers": {
"modes": {
"mode1": "detached",
"mode2": "interactive",
"mode3": "tty"
},
"ports": {
"port1": [
"8080:80",
"8181:80",
"8282:80"
]
},
"volumes": {
"volume1": "${PWD}/:/srv/tempo/lightmvcskel"
},
"persist-data": {
"mount": "false",
"root-name": "",
"directories": {
"directory1": "",
"directory2": "",
"directory3": ""
}
}
}
},
"docker-compose": {
"url": "",
"username": "",
"token": ""
},
"lfphp-cloud": {
"account": "",
"username": "",
"token": ""
}
}