File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ setup() {
2323 fi
2424 }
2525
26+ storage() {
27+ ./${DEV_SELF} setup-volumes;
28+ }
29+
2630 php() {
2731 dc php && echo 'PHP configured with version '${DEV_PHP} && return 1;
2832
@@ -109,6 +113,7 @@ setup() {
109113 suffix;
110114 php;
111115 workspace;
116+ storage;
112117 mysql;
113118
114119 feature RabbitMQ rabbitmq;
Original file line number Diff line number Diff line change 1+ cd $DEV_PATH
2+
3+ volumes-setup() {
4+ mkdir -p $DEV_WORKSPACE_PATH/.storage/$1;
5+ ./${DEV_SELF} volume $1 $DEV_WORKSPACE_PATH/.storage/$1 > /dev/null;
6+
7+ return 0;
8+ }
9+
10+ volumes-setup mysql;
11+ volumes-setup mysql8;
12+ volumes-setup elasticsearch6;
13+ volumes-setup elasticsearch7;
14+
15+ echo "Created default volumes in $DEV_WORKSPACE_PATH/.storage";
16+
17+ return $?;
You can’t perform that action at this time.
0 commit comments