-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
95 lines (73 loc) · 1.78 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
setup:
@echo "Setting up virtual environment"
python -m venv .venv
install:
@echo "Installing dependencies"
pip install --upgrade pip &&\
pip install -r requirements.txt
format:
@echo "Formatting all projects with ruff"
chmod +x format.sh
./format.sh
lint:
@echo "Linting all projects with ruff"
chmod +x lint.sh
./lint.sh
test:
@echo "Testing all projects with pytest"
chmod +x test.sh
./test.sh
docker-build:
@echo "Building Docker image"
docker build -t webapp .
docker-run:
@echo "Running Docker image"
docker run webapp
docker-images:
@echo "List all images"
docker images
docker-clean-images:
@echo "remove all images locally"
if [ -n "$$(docker images -aq)" ]; then \
docker rmi -f $$(docker images -aq); \
fi
docker-containers:
@echo "List all containers"
docker ps -a
docker-clean-containers:
@echo "remove all containers locally"
if [ -n "$$(docker ps -aq)" ]; then \
docker rm -f $$(docker ps -aq); \
fi
astro-init:
@echo "Init Astro"
astro dev init
astro-start:
@echo "Starting airflow components containers"
astro dev start
astro-restart:
@echo "Restarting airflow containers"
astro dev restart
astro-stop:
@echo "Stopping airflow components containers"
astro dev stop
astro-ps:
@echo "Listing all Docker containers running"
astro dev ps
astro-clear:
@echo "Cleaning all astro containers"
astro dev kill
astro-bash:
@echo "Opening bash inside container"
astro dev bash
astro-parse:
@echo "Parsing dags to check errors"
astro dev parse
webserver-port:
@echo "Set the airflow webserver port"
astro config set webserver.port 8080
soda-test:
soda test-connection -d duckdb -c include/soda/configuration.yml -V
soda-scan:
soda scan -d duckdb -c include/soda/configuration.yml include/soda/checks/transformation.yml
all: install lint test