-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (20 loc) · 1.2 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
login:
aws sso login --profile PowerUserAccess-246532218018
docker_login:
aws ecr get-login-password --region eu-central-1 --profile PowerUserAccess-246532218018 | docker login --username AWS --password-stdin 246532218018.dkr.ecr.eu-central-1.amazonaws.com
docker_deploy:
PLATFORM=linux/amd64 docker-compose build --push
scp -i ~/.ssh/fastapi_key.pem docker-compose.yml [email protected]:docker-compose.yml
scp -i ~/.ssh/fastapi_key.pem -r ./ops/ [email protected]:/home/ubuntu
scp -i ~/.ssh/fastapi_key.pem -r ./docker/ [email protected]:/home/ubuntu
ssh -i ~/.ssh/fastapi_key.pem [email protected] 'bash ops/script/docker-compose-up-remote.sh'
docker_up:
# delete any images for `linux/amd64`
docker images --format '{{.ID}}' | xargs -I {} docker image inspect {} -f '{{.Id}} {{.Architecture}}'| grep amd64 | awk '{print $1}' | xargs docker image rm -f
PLATFORM=linux/arm64 docker compose up --remove-orphans --force-recreate --build
docker_down:
docker compose down
local_web:
uvicorn app:app --reload
local_ingester:
python -m ingester