-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
42 lines (32 loc) · 862 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
40
41
42
ENV_NAME := biophi-dev
SHELL := /bin/bash
CONDA_ACTIVATE = eval "$$(conda shell.bash hook)" && conda activate $(ENV_NAME)
DOCKER_CELERY_CPUS := 4
env: env-create env-setup
env-create: environment.yml
conda env create -n $(ENV_NAME) -f $<
env-update: environment.yml
conda env update -n $(ENV_NAME) -f $<
env-setup:
$(CONDA_ACTIVATE); pip install -e . --no-deps
pytest:
$(CONDA_ACTIVATE); \
biophi --help; \
biophi sapiens --help; \
biophi oasis --help; \
pytest tests/pytest
docker-build:
docker-compose build
docker-run:
docker-compose up
docker-python:
docker-compose run worker python
web:
$(CONDA_ACTIVATE); \
FLASK_APP=biophi.common.web.views \
FLASK_ENV=development \
flask run
celery:
$(CONDA_ACTIVATE); \
FLASK_ENV=development \
celery -A biophi.common.web.tasks.celery worker --loglevel=INFO