-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
28 lines (20 loc) · 856 Bytes
/
justfile
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
GREEN := "\\u001b[32m"
RESET := "\\u001b[0m\\n"
CHECK := "\\xE2\\x9C\\x94"
set shell := ["bash", "-uc"]
default:
just -l
venv:
uv pip install -r ./pacifico/requirements.txt -r ./corona/requirements.txt -r ./modelo/requirements.txt
build opts="":
docker compose build {{opts}}
dev opts="":
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d {{opts}}
down opts="":
docker compose down {{opts}}
prod image version='latest':
export VERSION={{version}} && docker compose pull
export VERSION={{version}} && docker rollout {{image}}
@printf " {{GREEN}}{{CHECK}} Images Started {{CHECK}} {{RESET}}"
rollback image:
export VERSION=$(docker image ls --filter before=manifoldlabs/targon-{{image}}:latest --filter reference=manifoldlabs/targon-hub-{{image}} --format "{{{{.Tag}}" | head -n 1) && docker rollout {{image}}