30 lines
1.0 KiB
Makefile
30 lines
1.0 KiB
Makefile
.PHONY: help requirements docker-build docker-up docker-down clean start tunnels_up
|
|
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " make sync_requirements - Export dependencies from pyproject.toml to requirements.txt"
|
|
@echo " make tunnels_up - Start tunnels"
|
|
@echo " make compose_up - Run tunnels script and start Docker Compose"
|
|
|
|
sync_requirements:
|
|
@echo "Exporting dependencies from pyproject.toml to requirements.txt..."
|
|
uv export --format requirements-txt --no-hashes --no-dev -o Docker/requirements.txt
|
|
@echo "✓ requirements.txt updated successfully"
|
|
|
|
tunnels_up:
|
|
bash ./scripts/start-tunnels.sh < /dev/null &
|
|
@echo "✓ Tunnels started!"
|
|
|
|
compose_up:
|
|
bash ./scripts/start-tunnels.sh < /dev/null &
|
|
sleep 2
|
|
docker compose -f Docker/docker-compose.yaml --env-file .env up -d --build
|
|
@echo "✓ Done!"
|
|
|
|
# Kill all kubectl port-forward tunnels
|
|
.PHONY: tunnels_down
|
|
tunnels_down:
|
|
@echo "Killing all kubectl port-forward tunnels..."
|
|
-pkill -f 'kubectl port-forward' || true
|
|
@echo "✓ All tunnels killed!"
|