-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (31 loc) · 831 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
32
33
34
35
36
37
38
39
CHECK_INTERVAL?=5
FETCH_INTERVAL?=15
MONGO_SERVER?=localhost:27017
DATABASE_NAME?=feeds
PORT?=8000
# Permanent local overrides
-include .env
# Run the stack locally
serve:
docker-compose up --build
# Build the base container when we update dependencies
build:
docker-compose build
restart-web:
docker-compose stop web
docker-compose build web
docker-compose up -d --no-deps web
repl:
docker-compose exec web python repl.py
nuke-database:
docker-compose stop db
docker-compose build db
docker-compose up -d --no-deps db
# Install deps locally for REPL
host-deps:
pip install -U -r requirements.txt
clean:
-rm -f *.pyc
-docker rm -v $$(docker ps -a -q -f status=exited)
-docker rmi $$(docker images -q -f dangling=true)
-docker rmi $$(docker images --format '{{.Repository}}:{{.Tag}}' | grep '$(IMAGE_NAME)')