-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (40 loc) · 945 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
43
#!/usr/bin/make
include .env
define SERVERS_JSON
{
"Servers": {
"1": {
"Name": "course-svc",
"Group": "Servers",
"Host": "$(DATABASE_HOST)",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "$(DATABASE_PASSWORD)",
"SSLMode": "prefer",
"PassFile": "/tmp/pgpassfile"
}
}
}
endef
export SERVERS_JSON
export PYTHONPATH=:$(PWD)/course_svc/app
help:
@echo "make"
@echo " hello"
@echo " print hello world"
hello:
echo "Hello, World"
test:
pytest -s -c course_svc/pytest.ini
run:
cd course_svc && python app/server.py
docker-build:
docker-compose -f docker-compose-dev.yml build
docker-up:
docker-compose -f docker-compose-dev.yml up --build
pgadmin:
docker-compose -f pgadmin.yml up --build
proto:
cd course_svc/app && python -m grpc_tools.protoc -I protos --python_out=grpc_generated_files --grpc_python_out=grpc_generated_files protos/*.proto
alembic:
cd course_svc && alembic upgrade head