2
0
Mark Shust 4 жил өмнө
parent
commit
b88529e59f
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      compose/bin/start

+ 2 - 0
compose/bin/start

@@ -30,12 +30,14 @@ function parseYaml {
 VOLUME_LIST=`parseYaml docker-compose.dev.yml services_app_volumes`
 IGNORE_LIST="./src/app/code ./src/m2-hotfixes ./src/patches ./src/var/log ./src/var/report ./src"
 IS_VALID=true
+# Loop through all files missing from the docker-compose.dev.yml file
 for file in $VOLUME_LIST; do
   if [ ! -e $file ] && [[ ! " $IGNORE_LIST " =~ " $file " ]]; then
     echo "$file: No such file or directory"
     IS_VALID=false
   fi
 done
+# Wait to exit until all missing files have been outputted to the user
 [ $IS_VALID = false ] && echo "Failed to start docker for missing volume files" && exit
 
 docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --remove-orphans