forked from MetaCell/scidash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
143 lines (110 loc) · 3.71 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
install: create-db install-sciunit-neuronunit install-frontend install-backend
@echo "==========================="
@echo "= Finished ="
@echo "==========================="
install-sciunit-neuronunit:
@echo "============================"
@echo "= Install sci/neuronunit ="
@echo "============================"
@./service/scripts/install-sciunit-neuronunit.sh
update-sciunit-neuronunit:
@echo "============================"
@echo "= Update sci/neuronunit ="
@echo "============================"
@./service/scripts/update-sciunit-neuronunit.sh
install-frontend:
@echo "==========================="
@echo "= Install frontend ="
@echo "==========================="
@./service/scripts/install-frontend.sh
codefresh-install-frontend:
@echo "==========================="
@echo "= Install frontend ="
@echo "==========================="
@./service/scripts/codefresh-install-frontend.sh
install-backend:
@echo "==========================="
@echo "= Install backend ="
@echo "==========================="
@./service/scripts/install-backend.sh
install-backend-with-env:
@echo "==========================="
@echo "= Install backend ="
@echo "==========================="
@./service/scripts/install-backend.sh -v
create-db:
@echo "==========================="
@echo "= Create database ="
@echo "==========================="
@./service/scripts/db-create-psql.sh
install-dev:
@echo "==========================="
@echo "= Install dev deps ="
@echo "==========================="
pip install -r requirements-dev.txt
run-dev: migrate
make run-django & \
make run-frontend
run-staging: migrate
make run-django-staging & \
make run-celery & \
make run-celery-beat & \
make run-virgo-staging
django-migrate: migrations migrate
migrations:
./manage.py makemigrations
migrate:
./manage.py migrate
superuser:
./manage.py createsuperuser
run-django:
./manage.py runserver
run-django-staging:
python3.6 manage.py runserver --insecure 0.0.0.0:8000
run-frontend:
cd static/org.geppetto.frontend/src/main/webapp/; npm run build-dev-noTest:watch;
run-celery:
celery -A scidash.main worker -l info --concurrency=5 --maxtasksperchild=20
run-celery-beat:
celery -A scidash.main beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
run-virgo-staging:
/bin/bash /opt/virgo/bin/startup.sh
lint: flake8-lint isort-lint yapf-lint
format: yapf-format isort-format
flake8-lint:
flake8 .
isort-lint:
isort --check-only --diff --recursive .
isort-format:
isort --recursive .
yapf-format:
yapf -i -r --style .style.yapf -p -e "*/migrations/*.py" -e "env" -e "*/settings.py" . -e "**/neuronunit/**" -e "**/sciunit/**"
yapf-lint:
yapf -d -r --style .style.yapf -e "*/migrations/*.py" -e "env" -e "*/settings.py" . -e "neuronunit/**" -e "sciunit/**"
generate-tags:
ctags -R --exclude=.git --exclude=node_modules --exclude=dist --exclude=env .
build-scidash:
@echo "==========================="
@echo "= Build scidash ="
@echo "==========================="
@./service/scripts/build-image-scidash.sh
build-scidash-db:
@echo "==========================="
@echo "= Build scidash db ="
@echo "==========================="
@./service/scripts/build-image-db.sh
build-virgo:
@echo "======================="
@echo "= Build virgo ="
@echo "======================="
@./service/scripts/build-image-virgo.sh
push-scidash:
@echo "==========================="
@echo "= Push scidash image ="
@echo "==========================="
@./service/scripts/push-image-scidash.sh
push-scidash-db:
@echo "==========================="
@echo "= Push scidash db image ="
@echo "==========================="
@./service/scripts/push-image-scidash-db.sh