.PHONY: env up down logs

env:  ## Create local virtualenv and install dependencies
	python3 -m venv .venv
	.venv/bin/pip install --upgrade pip
	.venv/bin/pip install -r requirements.txt

up:  ## Build and start the metrics generator in the background
	docker compose up --build -d --remove-orphans

down:  ## Stop and remove containers
	docker compose down --remove-orphans

logs:  ## Stream container logs
	docker compose logs -f metrics-gen
