Use docker compose down command to clean volumes #12
1 changed files with 8 additions and 5 deletions
13
Makefile
13
Makefile
|
@ -16,10 +16,13 @@ FROSTFS_GATES_TAG ?= "0.27.0-rc.2"
|
||||||
AIO_IMAGE ?= "truecloudlab/frostfs-aio"
|
AIO_IMAGE ?= "truecloudlab/frostfs-aio"
|
||||||
|
|
||||||
# Variables for compose
|
# Variables for compose
|
||||||
COMPOSE_CMD ?= docker-compose up -d
|
COMPOSE_CMD_UP ?= docker-compose up -d
|
||||||
|
COMPOSE_CMD_DOWN ?= docker-compose down
|
||||||
|
|
||||||
COMPOSE_V2 = "$(shell docker compose version --short | grep -q '^2' && echo true)"
|
COMPOSE_V2 = "$(shell docker compose version --short | grep -q '^2' && echo true)"
|
||||||
ifeq ($(COMPOSE_V2), "true")
|
ifeq ($(COMPOSE_V2), "true")
|
||||||
COMPOSE_CMD = docker compose up -d --wait
|
COMPOSE_CMD_UP = docker compose up -d --wait
|
||||||
|
COMPOSE_CMD_DOWN = docker compose down
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Variables for S3
|
# Variables for S3
|
||||||
|
@ -41,15 +44,15 @@ image-aio:
|
||||||
|
|
||||||
# Start AIO
|
# Start AIO
|
||||||
up:
|
up:
|
||||||
@$(COMPOSE_CMD)
|
@$(COMPOSE_CMD_UP)
|
||||||
|
|
||||||
# Stop AIO
|
# Stop AIO
|
||||||
down:
|
down:
|
||||||
@docker-compose down
|
@$(COMPOSE_CMD_DOWN)
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
clean:
|
clean:
|
||||||
@docker volume rm frostfs-aio_data
|
@$(COMPOSE_CMD_DOWN) --volumes
|
||||||
|
|
||||||
# Generate S3 credentials
|
# Generate S3 credentials
|
||||||
s3cred:
|
s3cred:
|
||||||
|
|
Loading…
Reference in a new issue