Skip to content

Commit

Permalink
allow overriding the docker compose command
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Aug 15, 2023
1 parent e7f1c87 commit 79a2488
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SHELL := /bin/sh
CARGO = cargo
LOAD_TEST_DIR := tests/load
POETRY := poetry --directory $(LOAD_TEST_DIR)
DOCKER_COMPOSE := docker compose
PYPROJECT_TOML := $(LOAD_TEST_DIR)/pyproject.toml
FLAKE8_CONFIG := $(LOAD_TEST_DIR)/.flake8
STAGE_SERVER_URL := "wss://autopush.stage.mozaws.net"
Expand Down Expand Up @@ -29,13 +30,13 @@ lint:

load:
SERVER_URL=$(STAGE_SERVER_URL) ENDPOINT_URL=$(STAGE_ENDPOINT_URL) \
docker compose \
$(DOCKER_COMPOSE) \
-f $(LOAD_TEST_DIR)/docker-compose.yml \
-p autopush-rs-load-tests \
up --scale locust_worker=1

load-clean:
docker-compose \
$(DOCKER_COMPOSE) \
-f $(LOAD_TEST_DIR)/docker-compose.yml \
-p autopush-rs-load-tests \
down
Expand Down

0 comments on commit 79a2488

Please sign in to comment.