Browse Source

Use previous one-line logic, exact specification of GB needed

Mark Shust 2 years ago
parent
commit
927af97677
1 changed files with 2 additions and 4 deletions
  1. 2 4
      compose/bin/setup

+ 2 - 4
compose/bin/setup

@@ -3,10 +3,8 @@ set -o errexit
 
 MEM_BYTES=$(docker info -f '{{.MemTotal}}')
 MEM_MB=$(( MEM_BYTES / 1000000 ))
-(( MEM_MB >= 6000 )) || {
-  echo 'There must be at least 6GB of RAM allocated to Docker to continue.' >&2
-  exit 1
-}
+# When Docker Desktop is set to 6GB in the GUI, it is reported as 6227 MB
+(( MEM_MB < 6227 )) && echo "There must be at least 6GB of RAM allocated to Docker in order to continue." && exit
 
 # shellcheck source=../env/db.env
 source env/db.env