blob: 8a84b00ea6e47415e4000ea57ca0f647d920e065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
.PHONY: build
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build the Docker image
cp requirements.txt docker/requirements.txt
docker-compose -p web_grater build
up: build ## Bring the container up
docker-compose -p web_grater up -d
down: ## Stop the container
docker-compose -p web_grater stop
enter: ## Enter the running container
docker-compose -p web_grater exec backend /bin/bash
clean: down ## Remove stoped containers
docker-compose -p web_grater rm
crawl: ## Execute a crawl against a site
docker-compose -p web_grater exec backend /bin/bash -c 'cd web_grater && scrapy crawl grater'
|