Jelajahi Sumber

Added additional time for Elasticsearch container to get initialized during setup

Mark Shust 3 tahun lalu
induk
melakukan
c762777ec9
2 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 1 0
      CHANGELOG.md
  2. 2 1
      compose/bin/setup

+ 1 - 0
CHANGELOG.md

@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
 - Fixed Shellcheck failures for bin/setup-ssl-ca [#558](https://github.com/markshust/docker-magento/issues/558).
 - Fixed php.ini possible wrong smtp-addr [#556](https://github.com/markshust/docker-magento/issues/556).
 - Ensure files are created so Docker doesn't create them as root [#562](https://github.com/markshust/docker-magento/issues/562).
+- Added additional time for Elasticsearch container to get initialized during setup.
 
 ## [40.0.2] - 2021-10-20
 

+ 2 - 1
compose/bin/setup

@@ -29,7 +29,8 @@ bin/clinotty timeout 100 bash -c "
     done"
 [ $? != 0 ] && echo "Failed to connect to Elasticsearch" && exit
 
-sleep 2
+echo "Waiting for Elasticsearch container to get initialized..."
+sleep 5
 
 bin/clinotty bin/magento setup:install \
   --db-host="$MYSQL_HOST" \