-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (44 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
54 lines (44 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# AirFlow Makefile
# Quick commands for common tasks
.PHONY: help install run test clean docker-build docker-run package
help:
@echo "AirFlow - NASA Space Apps Project"
@echo ""
@echo "Available commands:"
@echo " make install - Set up virtual environment and install dependencies"
@echo " make run - Start the Flask development server"
@echo " make test - Run the test suite"
@echo " make clean - Remove temporary files and caches"
@echo " make docker-build - Build Docker image"
@echo " make docker-run - Run Docker container"
@echo " make package - Create submission package"
install:
@echo "Setting up AirFlow..."
@chmod +x scripts/run_local.sh
@./scripts/run_local.sh
run:
@echo "Starting AirFlow server..."
@python backend/app.py
test:
@echo "Running tests..."
@pytest tests/ -v
clean:
@echo "Cleaning temporary files..."
@find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
@find . -type f -name "*.pyc" -delete 2>/dev/null || true
@find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
@find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
@echo "Clean complete!"
docker-build:
@echo "Building Docker image..."
@docker build -t airflow-demo:latest .
docker-run:
@echo "Running Docker container..."
@docker run -p 5000:5000 --name airflow-demo airflow-demo:latest
docker-stop:
@docker stop airflow-demo || true
@docker rm airflow-demo || true
package:
@echo "Creating submission package..."
@chmod +x scripts/package_for_submission.sh
@./scripts/package_for_submission.sh