-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (37 loc) · 1.03 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
BUILD_GIT ?= $(shell (cd .. && git describe --always))
BUILD_DATE ?= $(shell date -u +%y%m%d)
BUILD_TAG ?= $(BUILD_DATE)-$(BUILD_GIT)
UNAME := $(shell uname)
all: pip install
deps: pip upgrade
install: venv
build: docker-build
docker-build:
(cd describe && make docker-build)
preview: preview-describe
preview-describe:
./build.sh describe linux/amd64
release: release-describe
release-describe:
./build.sh describe linux/amd64,linux/arm64 $(BUILD_DATE)
start:
docker compose --profile=all pull --ignore-pull-failures
docker compose up -d
docker compose logs -f || true
stop:
docker compose down -v
terminal:
docker compose exec vision-describe bash
logs:
docker compose logs -f || true
pip:
ifeq ($(UNAME), Linux)
sudo apt-get install -y git python3 python3-pip python3-venv python3-wheel
endif
venv: describe/venv
describe/venv:
(cd describe && make venv)
upgrade: upgrade-describe
upgrade-describe:
(cd describe && make upgrade)
.PHONY: all pip deps install build deploy deploy-amd64 docker-build venv upgrade upgrade-describe;