From 1e60aae841e036348a5ccc549a39c669d8ddb5a5 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Fri, 20 Sep 2024 09:42:42 -0700 Subject: [PATCH] fix: docker invocation in Makefile --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bd8bfae9..5d301c9c 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,10 @@ GOBUILD=$(GOCMD) build GOCLEAN=$(GOCMD) clean GOTEST=$(GOCMD) test +# docker-compose +DCCMD=docker-compose +DOCKERCOMPOSE=$(DCCMD) -f tests/docker-compose.yml --env-file .env.dev --project-directory . + BIN=versitygw VERSION := $(shell if test -e VERSION; then cat VERSION; else git describe --abbrev=0 --tags HEAD; fi) @@ -71,19 +75,19 @@ dist: # Creates and runs S3 gateway instance in a docker container .PHONY: up-posix up-posix: - docker compose --env-file .env.dev up posix + $(DOCKERCOMPOSE) up posix # Creates and runs S3 gateway proxy instance in a docker container .PHONY: up-proxy up-proxy: - docker compose --env-file .env.dev up proxy + $(DOCKERCOMPOSE) up proxy # Creates and runs S3 gateway to azurite instance in a docker container .PHONY: up-azurite up-azurite: - docker compose --env-file .env.dev up azurite azuritegw + $(DOCKERCOMPOSE) up azurite azuritegw # Creates and runs both S3 gateway and proxy server instances in docker containers .PHONY: up-app up-app: - docker compose --env-file .env.dev up + $(DOCKERCOMPOSE) up