-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
27 lines (21 loc) · 693 Bytes
/
Copy pathJustfile
File metadata and controls
27 lines (21 loc) · 693 Bytes
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
lint:
ruff format
ruff check --fix
mypy . --strict
clean:
docker compose -f docker-compose.base.yaml down -v
run target build="":
#!/usr/bin/env bash
BUILD_FLAG=""
if [ "{{build}}" == "build" ]; then
BUILD_FLAG="--build"
fi
if [ "{{target}}" == "prod" ]; then
docker compose -f docker-compose.base.yaml -f docker-compose.prod.yaml up $BUILD_FLAG
else
docker compose -f docker-compose.base.yaml -f docker-compose.dev.yaml up $BUILD_FLAG
fi
restart target:
docker compose -f docker-compose.base.yaml restart {{target}}
attach target:
docker compose -f docker-compose.base.yaml exec -it -t {{target}} /bin/bash