-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (14 loc) · 689 Bytes
/
Makefile
File metadata and controls
20 lines (14 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.clean-venv:
rm -rf .venv
.venv:
poetry config virtualenvs.create true --local
poetry install --sync --no-root
init: .clean-venv .venv
start-server: .venv
uvicorn --app-dir=./workspaces/retrieval/src/namespace/retrieval retrieval.asgi:application --reload --reload-include './*.html'
check-deploy: .venv
DJANGO_ENV=production poetry run python workspaces/retrieval/src/namespace/retrieval/manage.py check --deploy
docker-build:
docker buildx build --platform linux/arm64 -t lambda-retrieval workspaces/retrieval/
docker-run:
docker run --platform linux/arm64 -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN -e AWS_EXECUTION_ENV -p 9000:8080 lambda-retrieval