Skip to content

Commit 7b96408

Browse files
authored
fix(requirements): Make compose version check bw-compatible (#1068)
Refs #1062.
1 parent 497759c commit 7b96408

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/check-minimum-requirements.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ echo "${_group}Checking minimum requirements ..."
33
source "$(dirname $0)/_min-requirements.sh"
44

55
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}')
6-
COMPOSE_VERSION=$($dc --version | sed 's/docker-compose version \(.\{1,\}\),.*/\1/')
6+
# Do NOT use $dc instead of `docker-compose` below as older versions don't support certain options and fail
7+
COMPOSE_VERSION=$(docker-compose --version | sed 's/docker-compose version \(.\{1,\}\),.*/\1/')
78
RAM_AVAILABLE_IN_DOCKER=$(docker run --rm busybox free -m 2>/dev/null | awk '/Mem/ {print $2}');
89
CPU_AVAILABLE_IN_DOCKER=$(docker run --rm busybox nproc --all);
910

0 commit comments

Comments
 (0)