Skip to content

Commit

Permalink
fix(requirements): Make compose version check bw-compatible (getsentr…
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK authored Aug 18, 2021
1 parent 497759c commit 7b96408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install/check-minimum-requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ echo "${_group}Checking minimum requirements ..."
source "$(dirname $0)/_min-requirements.sh"

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

Expand Down

0 comments on commit 7b96408

Please sign in to comment.