.PHONY:local-run-dev
local-run-dev:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://dev-proxy.apollo.stream/ locustio/locust:0.12.2

.PHONY:local-run-qa
local-run-qa:
	docker run -p 8090:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-privateapi.filtr.com/ locustio/locust:0.12.2

.PHONY:local-run-proxy-qa
local-run-proxy-qa:
	docker run -p 8088:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ locustio/locust:0.12.2

.PHONY:local-run-stage
local-run-stage:
	docker run -p 8091:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://stage-proxy.apollo.stream/ locustio/locust:0.12.2

.PHONY:dev-run-apollo-user
dev-run-apollo-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://dev-proxy.apollo.stream/ -e LOCUST_OPTS="Apollo_API_User" locustio/locust:0.12.2

.PHONY:dev-run-vendor-user
dev-run-vendor-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ -e LOCUST_OPTS="Vendor_API_User" locustio/locust:0.12.2  #https://dev-vendor-api.apollo.stream/

.PHONY:dev-run-dsp-user
dev-run-dsp-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://dev-proxy.apollo.stream/ -e LOCUST_OPTS="DSP_API_User" locustio/locust:0.12.2

.PHONY:dev-run-gate-user
dev-run-gate-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://dev-proxy.apollo.stream/ -e LOCUST_OPTS="Apollo_Gate_API_User" locustio/locust:0.12.2

.PHONY:dev-run-vendor-user
dev-run-user-data-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://dev-proxy.apollo.stream/ -e LOCUST_OPTS="User_Data_API_User" locustio/locust:0.12.2

.PHONY:local-run-gate-user
local-run-gate-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=http://172.17.0.1:8000/ -e LOCUST_OPTS="Apollo_Gate_API_User" locustio/locust:0.12.2

.PHONY:uat-run-vendor-user
uat-run-vendor-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://uat-privateapi.filtr.com/ -e LOCUST_OPTS="Vendor_API_User" locustio/locust:0.12.2  #https://uat-vendor-api.apollo.stream/

.PHONY:run
run:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://staging-privateapi.filtr.com/ -e LOCUST_OPTS="--clients=50 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2

.PHONY:local-run-local
local-run-local:
	docker run -d -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e LOCUST_OPTS="DSP_API_User" -e TARGET_URL=http://host.docker.internal:8080/ --add-host=host.docker.internal:host-gateway locustio/locust:0.12.2

.PHONY:local-run-core-images-user
local-run-core-images-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_core_images.py -e TARGET_URL=http://172.17.0.1:8000/ -e LOCUST_OPTS="Core_Images_API_User" locustio/locust:0.12.2

.PHONY:dev-run-core-images-user
dev-run-core-images-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_core_images.py -e TARGET_URL=https://dev-images-api.atlas.stream/ -e LOCUST_OPTS="Core_Images_API_User" locustio/locust:0.12.2

.PHONY:qa-run-core-images-user
qa-run-core-images-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_core_images.py -e TARGET_URL=https://qa-images-api.atlas.stream/ -e LOCUST_OPTS="Core_Images_API_User" locustio/locust:0.12.2

.PHONY:dev-run-core-notifications-user
local-run-core-notifications-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_core_notifications.py -e TARGET_URL=http://172.17.0.1:8001/ -e LOCUST_OPTS="Core_Notifications_API_User" locustio/locust:0.12.2

.PHONY:local-run-atlas-um-user
local-run-atlas-um-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_atlas_um.py -e TARGET_URL=http://172.17.0.1:8000/ -e LOCUST_OPTS="Atlas_UM_API_User" locustio/locust:0.12.2

.PHONY:dev-run-atlas-um-user
dev-run-atlas-um-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_atlas_um.py -e TARGET_URL=https://dev-um.atlas.stream/ -e LOCUST_OPTS="Atlas_UM_API_User" locustio/locust:0.12.2

.PHONY:qa-run-atlas-um-user
qa-run-atlas-um-user:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile_atlas_um.py -e TARGET_URL=https://qa-um.atlas.stream/ -e LOCUST_OPTS="Atlas_UM_API_User" locustio/locust:0.12.2



.PHONY:stg-check
stg-check:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://staging-privateapi.filtr.com/ -e LOCUST_OPTS="Apollo_API_User --clients=100 --hatch-rate=5 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://staging-privateapi.filtr.com/ -e LOCUST_OPTS="Vendor_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://staging-privateapi.filtr.com/ -e LOCUST_OPTS="User_Data_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://staging-privateapi.filtr.com/ -e LOCUST_OPTS="Apollo_Gate_API_User --clients=100 --hatch-rate=5 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://staging-privateapi.filtr.com/ -e LOCUST_OPTS="DSP_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2

.PHONY:qa-check
qa-check:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-privateapi.filtr.com/ -e LOCUST_OPTS="Apollo_API_User --clients=100 --hatch-rate=5 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-privateapi.filtr.com/ -e LOCUST_OPTS="Vendor_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-privateapi.filtr.com/ -e LOCUST_OPTS="User_Data_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-privateapi.filtr.com/ -e LOCUST_OPTS="Apollo_Gate_API_User --clients=100 --hatch-rate=5 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-privateapi.filtr.com/ -e LOCUST_OPTS="DSP_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2

.PHONY:qa-proxy-check
qa-proxy-check:
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ -e LOCUST_OPTS="Apollo_API_User --clients=100 --hatch-rate=5 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ -e LOCUST_OPTS="Vendor_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ -e LOCUST_OPTS="User_Data_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ -e LOCUST_OPTS="Apollo_Gate_API_User --clients=100 --hatch-rate=5 --no-web --run-time=120 --only-summary" locustio/locust:0.12.2
	docker run -p 8089:8089 --env-file .env --volume ${PWD}:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://qa-proxy.apollo.stream/ -e LOCUST_OPTS="DSP_API_User --clients=100 --no-web --hatch-rate=5 --run-time=120 --only-summary" locustio/locust:0.12.2
