[#4] Use available version of docker-compose in up target

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-05-18 16:39:29 +03:00
parent e7b6e3e3f9
commit bb8ad1aebc

View file

@ -15,6 +15,13 @@ FROSTFS_CORE_TAG ?= "0beb7ccf"
FROSTFS_GATES_TAG ?= "0.27.0-rc.2"
AIO_IMAGE ?= "truecloudlab/frostfs-aio"
# Variables for compose
COMPOSE_CMD ?= docker-compose up -d
COMPOSE_V2 = "$(shell docker compose version --short | grep -q '^2' && echo true)"
ifeq ($(COMPOSE_V2), "true")
COMPOSE_CMD = docker compose up -d --wait
endif
# Variables for S3
S3_BEARER_RULES ?= "/config/bearer-rules.json"
S3_GATE_PUBLIC_KEY ?= "0312fe65b101565de74eedf477afb43417ff5f795732506cfddc8e044c5a030d76"
@ -34,7 +41,7 @@ image-aio:
# Start AIO
up:
@docker-compose up --wait -d
@$(COMPOSE_CMD)
# Stop AIO
down: