This repository was archived by the owner on Jan 25, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 56
56
kvstore=" $( jq -r ' .services.kvstore' ${WPLIB_BOX_DIR} /project.json) "
57
57
fi
58
58
59
+
60
+ # Backwards compatibility.
59
61
case $database in
60
62
' mysql' |' ' )
61
63
database=$d_database
62
64
;;
65
+
66
+ * -* )
67
+ IFS=' -' read -r -a state_array <<< " $database"
68
+ database=" ${DEFAULT_PROJECT} /${state_array[0]} :${state_array[1]} "
69
+ ;;
63
70
esac
64
71
65
72
case $webserver in
66
73
' nginx' |' ' )
67
74
webserver=$d_webserver
68
75
;;
76
+
77
+ * -* )
78
+ IFS=' -' read -r -a state_array <<< " $webserver"
79
+ webserver=" ${DEFAULT_PROJECT} /${state_array[0]} :${state_array[1]} "
80
+ ;;
69
81
esac
70
82
71
83
case $processvm in
@@ -74,14 +86,24 @@ case $processvm in
74
86
;;
75
87
76
88
' php5*' )
77
- processvm=" wplib/php-fpm:5.6"
89
+ processvm=" ${DEFAULT_PROJECT} /php-fpm:5.6"
90
+ ;;
91
+
92
+ php-fpm-* )
93
+ IFS=' -' read -r -a state_array <<< " $processvm"
94
+ processvm=" ${DEFAULT_PROJECT} /${state_array[0]} -${state_array[1]} :${state_array[2]} "
78
95
;;
79
96
esac
80
97
81
98
case $kvstore in
82
99
' redis' |' ' )
83
100
kvstore=$d_kvstore
84
101
;;
102
+
103
+ redis-* )
104
+ IFS=' -' read -r -a state_array <<< " $kvstore"
105
+ kvstore=" ${DEFAULT_PROJECT} /${state_array[0]} :${state_array[1]} "
106
+ ;;
85
107
esac
86
108
87
109
case $mail in
Original file line number Diff line number Diff line change 3
3
{
4
4
"database" : " wplib/mysql:5.5.59" ,
5
5
"webserver" : " wplib/nginx:1.13.9" ,
6
- "processvm" : " wplib/php-fpm:7.1.15 " ,
6
+ "processvm" : " wplib/php-fpm:7.1.16 " ,
7
7
"kvstore" : " wplib/redis:4.0.8" ,
8
8
"mail" : " wplib/mailhog:1.0.0" ,
9
9
"proxy" : " wplib/proxy:1.13.9" ,
You can’t perform that action at this time.
0 commit comments