Skip to content

Commit 90f2a02

Browse files
committed
Added a script that sets all the required volumes
1 parent 6d47e2e commit 90f2a02

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

bin/dev_command/setup

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

bin/dev_command/setup-volumes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 $?;

0 commit comments

Comments
 (0)