forked from adfinis/timed-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 1.03 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
.PHONY: help install install-dev setup-ldap create-ldap-user start docs test
.DEFAULT_GOAL := help
UCS_CONTAINER_ID=$(shell docker-compose ps -q ucs)
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k 1,1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## Install production environment
@pip install --upgrade -r requirements.txt
@pip install --upgrade .
install-dev: ## Install development environment
@pip install --upgrade -r requirements.txt -r dev_requirements.txt
@pip install -e .
setup-ldap: ## Setup the LDAP container
docker exec -it $(UCS_CONTAINER_ID) /usr/lib/univention-system-setup/scripts/setup-join.sh
docker exec -it $(UCS_CONTAINER_ID) /usr/ucs/scripts/init.sh
create-ldap-user: ## Create a new user in the LDAP
docker exec -it $(UCS_CONTAINER_ID) /usr/ucs/scripts/create-new-user.sh
start: ## Start the development server
@docker-compose start
@python manage.py runserver
docs:
@make -C docs/ html
test: ## Test the project
@flake8
@pytest --cov --create-db