File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ USAGE="Magento Cloud Docker
6
6
7
7
\033[33mArguments:\033[0m
8
8
pull pull latest images
9
- up destroy, re-create and start containers
9
+ init destroy, re-create and start containers and volumes
10
+ up create or start containers
10
11
down destroy containers
11
12
bash connect to bash
12
13
stop stop containers
@@ -40,12 +41,20 @@ case "$1" in
40
41
pull)
41
42
docker-compose pull
42
43
;;
44
+ init)
45
+ read -p " Any existing data volumes will be removed. Are you sure? [y/N] " -r
46
+ echo
47
+ if [[ $REPLY =~ ^[Yy]$ ]]
48
+ then
49
+ docker-compose down --volumes
50
+ docker-compose up --detach
51
+ fi
52
+ ;;
43
53
up)
44
- docker-compose down --volumes
45
54
docker-compose up --detach
46
55
;;
47
56
down)
48
- docker-compose down --volumes
57
+ docker-compose down
49
58
;;
50
59
bash)
51
60
docker-compose run --rm deploy bash
You can’t perform that action at this time.
0 commit comments