-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1.78 KB
/
Makefile
File metadata and controls
48 lines (37 loc) · 1.78 KB
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
48
SHELL := /bin/bash
.SHELLFLAGS = -ec
.ONESHELL:
.SILENT:
BUILDOS=$(shell uname -s | tr '[:upper:]' '[:lower:]')
.PHONY: help
help:
echo "❓ Use \`make <target>'"
grep -E '^\.PHONY: [a-zA-Z0-9_-]+ .*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = "(: |##)"}; {printf "\033[36m%-30s\033[0m %s\n", $$2, $$3}'
.PHONY: edge_model_serving ## 💁 Start model_serving service (Docker container)
edge_model_serving:
BUILDOS=${BUILDOS} docker compose up -d --build edge_model_serving
.PHONY: edge_orchestrator ## 🕵 Start edge_orchestrator service (Docker container)
edge_orchestrator:
BUILDOS=${BUILDOS} docker compose up -d --build edge_orchestrator
.PHONY: edge_cockpit ## 🖥 Start edge_cockpit inside a docker container
edge_cockpit:
BUILDOS=${BUILDOS} docker compose up -d --build edge_cockpit
.PHONY: hub_streamlit ## 🚀 Start hub_streamlit inside a docker container
hub_streamlit:
BUILDOS=${BUILDOS} docker compose up -d --build hub_streamlit
.PHONY: hub_labelizer ## 🚀 Start hub_labelizer inside a docker container
hub_labelizer:
BUILDOS=${BUILDOS} docker compose up -d --build hub_labelizer
.PHONY: vio-hub-up ## 🐳 Start all hub services (monitoring, monitoring_db, labelizer)
vio-hub-up:
BUILDOS=${BUILDOS} docker compose --profile hub up -d --build
.PHONY: vio-edge-up ## 🐳 Start all edge services (db, model_serving, orchestrator, interface)
vio-edge-up:
BUILDOS=${BUILDOS} docker compose --profile edge up -d --build
.PHONY: vio-up ## 🐳 Start all edge services (db, model_serving, orchestrator, interface) and hubs (monitoring, monitoring_db, labelizer)
vio-up:
BUILDOS=${BUILDOS} docker compose --profile hub --profile edge up -d --build
.PHONY: vio-down ## ❌ Stop all services (model_serving, edge_orchestrator, ui)
vio-down:
docker compose --profile hub --profile edge down