-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (25 loc) · 842 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
.PHONY: init browser dump protos
init: .clean-venv .venv
.clean-venv:
rm -rf .venv
# IMPORTANT: at the current time, poetry does not support 3.11.
.venv:
pipx run poetry config virtualenvs.create true --local
pipx run poetry install --sync
.venv-%: .venv
pipx run poetry install --sync --only $*
# Create a container with a TOR browser
browser:
docker run -d -p 5800:5800 domistyle/tor-browser
up:
docker-compose -p ms -f bin/docker/docker-compose.yaml up -d --build
dump:
docker exec -t postgres pg_dumpall -c -U user > dump.sql
docker-db:
docker run --name postgres -e POSTGRES_PASSWORD=password -e POSTGRES_USER=username -e POSTGRES_DB=midnight_sea -d -p 5432:5432 postgres
protos:
@python -m grpc_tools.protoc \
--proto_path=lib/src/lib/protos=bin/protos \
--python_out=. \
--grpc_python_out=. \
bin/protos/*.proto