-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
60 lines (45 loc) · 1.38 KB
/
Makefile
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
55
56
57
58
help:
@echo " build Builds the docker images for the docker-compose setup"
@echo " clean Stops and removes all docker containers"
@echo " shell Opens a Bash shell"
@echo " redis-cli Opens a Redis CLI"
@echo " run Run a airflow command"
@echo " stop Stops the docker containers"
@echo " up Runs the whole stack, served under http://localhost:8080/"
@echo " init Initializes airflow services"
@echo " base-build Builds the base docker image for airflow"
@echo " test UI tests for scraper"
@echo " config Generate a configuration using terraform outputs"
@echo " test-dbt Run tests for dbt build"
@echo " infra Create AWS infrastructure"
build:
docker-compose build
clean: stop
docker-compose rm -f
rm -rf logs/*
if [ -f airflow-worker.pid ]; then rm airflow-worker.pid; fi
shell:
docker-compose run web bash
redis-cli:
docker-compose run redis redis-cli -h redis
run:
docker-compose run -v ~/.aws/:/root/.aws web airflow $(COMMAND)
stop:
docker-compose down
docker-compose stop
up:
docker-compose up
init:
docker-compose up airflow-init
base-build:
docker build -t airflow-extended:latest -f Dockerfile .
test-scraper:
pytest
test-dbt:
dbt test
config:
chmod +x generate_config.sh
./generate_config.sh
infra:
terraform -chdir=terraform/ init -input=false
terraform -chdir=terraform/ apply