-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (47 loc) · 2.52 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
init:
poetry install
test:
poetry run coverage run -m pytest tests/unit/ && poetry run coverage lcov && poetry run coverage report
test-it:
poetry run coverage run -m pytest tests/integration/ && poetry run coverage lcov && poetry run coverage report
test-all:
poetry run coverage run -m pytest tests/ && poetry run coverage lcov && poetry run coverage report
run:
uvicorn api.main:app --reload --reload-exclude processor --host 0.0.0.0 --port 5010
run-fake:
uvicorn api_fake.main:app --reload --reload-exclude processor --host 0.0.0.0 --port 5010
docker-processor:
docker build -f EmailProcessorDockerfile -t context-processor:0.1.1 .
docker build -f EventProcessorDockerfile -t event-processor:0.1.1 .
docker build -f DocumentProcessorDockerfile -t document-processor:0.1.1 .
docker build -f TranscriptProcessorDockerfile -t transcript-processor:0.1.1 .
docker build -f SlackProcessorDockerfile -t slack-processor:0.1.1 .
docker-api:
docker build -f ApiDockerfile -t context-api:0.1.1 .
docker-all:
make docker-processor
make docker-api
docker image tag context-processor:0.1.1 knordstrom/email-processor:$(VERSION)
docker image tag event-processor:0.1.1 knordstrom/event-processor:$(VERSION)
docker image tag document-processor:0.1.1 knordstrom/document-processor:$(VERSION)
docker image tag transcript-processor:0.1.1 knordstrom/transcript-processor:$(VERSION)
docker image tag slack-processor:0.1.1 knordstrom/slack-processor:$(VERSION)
docker image tag context-api:0.1.1 knordstrom/sofia-api:$(VERSION)
docker image tag context-processor:0.1.1 knordstrom/email-processor:latest
docker image tag event-processor:0.1.1 knordstrom/event-processor:latest
docker image tag document-processor:0.1.1 knordstrom/document-processor:latest
docker image tag transcript-processor:0.1.1 knordstrom/transcript-processor:latest
docker image tag slack-processor:0.1.1 knordstrom/slack-processorlatest
docker image tag context-api:0.1.1 knordstrom/sofia-api:latest
docker push knordstrom/email-processor:$(VERSION)
docker push knordstrom/event-processor:$(VERSION)
docker push knordstrom/document-processor:$(VERSION)
docker push knordstrom/transcript-processor:$(VERSION)
docker push knordstrom/slack-processor:$(VERSION)
docker push knordstrom/sofia-api:$(VERSION)
docker push knordstrom/email-processor:latest
docker push knordstrom/event-processor:latest
docker push knordstrom/document-processor:latest
docker push knordstrom/transcript-processor:latest
docker push knordstrom/slack-processor:latest
docker push knordstrom/sofia-api:latest