[#4] Use available version of docker-compose in up target
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
e7b6e3e3f9
commit
bb8ad1aebc
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue