-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (45 loc) · 1.51 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
56
57
include .env
export $(shell sed 's/=.*//' .env)
include .env.common
export $(shell sed 's/=.*//' .env.common)
core-build:
docker compose build aymurai-core
core-run:
docker compose run aymurai-core
redis-run:
docker compose -f .devcontainer/docker-compose.yml run redis
dev-build: core-build redis-run
docker compose -f .devcontainer/docker-compose.yml build devcontainer-gpu
dev-build-cpu: core-build redis-run
docker compose -f .devcontainer/docker-compose.yml build devcontainer
jupyter-run: dev-build redis-run
docker compose -f .devcontainer/docker-compose.yml run devcontainer-gpu \
jupyter-lab /workspace --no-browser
jupyter-run-cpu: dev-build-cpu redis-run
docker compose -f .devcontainer/docker-compose.yml run devcontainer \
jupyter-lab /workspace --no-browser
core-cpu-build:
docker compose build aymurai-core-cpu
core-cpu-run:
docker compose run aymurai-core-cpu
api-build: core-cpu-build
docker compose build aymurai-api-dev
api-run:
docker compose run --service-ports aymurai-api-dev
api-test:
docker compose run \
-e TEST_MODE=1 \
-e LOG_LEVEL=error \
aymurai-api-dev
api-prod-build: api-build
docker compose build aymurai-api-prod
api-prod-run:
docker run -p 8899:8899 --hostname=aymurai-api-prod ${API_IMAGE}-prod
api-prod-push:
docker tag ${API_IMAGE}-prod ${API_IMAGE}-prod:$(shell date +%F)
docker push ${API_IMAGE}-prod
docker push ${API_IMAGE}-prod:${shell date +%F}
api-prod-pull:
docker pull ${API_IMAGE}-prod
stress-test:
locust -f locustfile.py --host http://localhost:8899