-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 793 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 793 Bytes
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
# Makefile
# Load environment variables
include .env
export $(shell sed 's/=.*//' .env)
.PHONY: up down seed deploy worker build logs pool
# Start all docker services
up:
docker network create prefect-network || true
docker compose -f docker-compose.yaml -f docker-compose-worker.yaml up -d --build
# Stop all containers
down:
docker compose -f docker-compose.yaml -f docker-compose-worker.yaml down
# Run credentials seeding
seed:
uv run seed_credentials.py
# Run Prefect deployment
deploy:
uv run deploy.py
# Create Prefect worker pool
pool:
prefect work-pool create 'basic-pipe' --type process
# Start Prefect worker locally
worker:
prefect worker start --pool "basic-pipe"
# Build worker image
build:
docker build -t prefect-worker .
# Logs
logs:
docker compose logs -f