forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (40 loc) · 1.44 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
DEVDOCKER=docker-compose -f docker-compose.dev.yml run --rm app /aleph/contrib/devwrapper.sh
shell:
$(DEVDOCKER) /bin/bash
test:
$(DEVDOCKER) contrib/test.sh
upgrade: build
$(DEVDOCKER) aleph upgrade
$(DEVDOCKER) aleph installdata
web:
docker-compose -f docker-compose.dev.yml run --rm -p 5000:5000 app \
/aleph/contrib/devwrapper.sh python aleph/manage.py runserver -h 0.0.0.0
worker:
$(DEVDOCKER) celery -A aleph.queues -B -c 4 -l INFO worker --pidfile /var/lib/celery.pid
beat:
$(DEVDOCKER) celery -A aleph.queues beat -s /var/lib/celerybeat-schedule.db --pidfile /var/lib/celery.pid
clear:
$(DEVDOCKER) celery purge -f -A aleph.queues
assets:
touch aleph/static/style/_custom.scss;
$(DEVDOCKER) /node_modules/webpack/bin/webpack.js --env.prod
assets-dev:
$(DEVDOCKER) /node_modules/webpack/bin/webpack.js --env.dev -w
rebuild:
docker-compose -f docker-compose.dev.yml build --pull --no-cache
build:
docker-compose -f docker-compose.dev.yml build --pull
base:
docker build -t codeforafrica/aleph-base:1.3 contrib/base
docker build -t codeforafrica/aleph-base:latest contrib/base
docker push codeforafrica/aleph-base:1.3
docker push codeforafrica/aleph-base:latest
image-latest:
docker build -t gazeti/aleph:latest .
docker push gazeti/aleph:latest
image-release:
docker build -t gazeti/aleph:1.3 .
docker push gazeti/aleph:1.3
docs:
$(DEVDOCKER) sphinx-build -b html -d docs/_build/doctrees ./docs docs/_build/html
.PHONY: build