-
Notifications
You must be signed in to change notification settings - Fork 125
/
Makefile
32 lines (21 loc) · 890 Bytes
/
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
.DEFAULT_GOAL := help
help:
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'
view: ## view the Selenium browser's activity
vinagre localhost:5900
companies: build ## run the 'companies' Scrapy spider
docker compose up --build scrapy_companies
random: build ## run the 'random' Scrapy spider
docker compose up scrapy_random
byname: build ## run the 'byname' Scrapy spider
docker compose up scrapy_byname
test: ## run Pytest on the 'tests/*' directory
docker compose up scrapy_test
attach: ## follow the logs of the 'scrapy' service
docker compose logs -f
stop: ## stop all services defined in Docker Compose
docker compose stop
build: ## build all services defined in Docker Compose
docker compose build
selenium: ## launches selenium
docker compose up -d selenium