-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
60 lines (50 loc) · 1.11 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
48
49
50
51
52
53
54
55
56
57
58
59
60
project:=ms-workspace-demo
ifeq ($(OS),Windows_NT)
CHECKOUT_BIN:=bin/checkout.exe
else
UNAME_S:=$(shell uname -s)
MNAME_S:=$(shell uname -m)
ifeq ($(UNAME_S),Linux)
ifeq ($(MNAME_S),x86_64)
CHECKOUT_BIN:=bin/checkout-linux-intel
endif
ifeq ($(MNAME_S),x86)
CHECKOUT_BIN:=bin/checkout-linux-intel
endif
ifeq ($(MNAME_S),aarch64)
CHECKOUT_BIN:=bin/checkout-linux-arm
endif
CHECKOUT_BIN:=bin/checkout-linux
endif
ifeq ($(UNAME_S),Darwin)
ifeq ($(MNAME_S),x86_64)
CHECKOUT_BIN:=bin/checkout-mac
endif
ifeq ($(MNAME_S),arm64)
CHECKOUT_BIN:=bin/checkout-mac-applesilicon
endif
endif
endif
.PHONY: default
default: update start
.PHONY: start
start:
- ./bin/start.sh
.PHONY: stop
stop:
- ./bin/stop.sh
.PHONY: update
update:
- @${CHECKOUT_BIN}
.PHONY: ps
ps:
- @docker ps -a --format="table {{ .ID }}\\t{{ .Names }}\\t{{ .Status }}\\t{{ .Image }}\\t{{ .Ports }}" -f network=${project}_default
.PHONY: proxystart
proxystart:
docker-compose -p ${project} up -d
.PHONY: proxystop
proxystop:
docker-compose -p ${project} down
.PHONY: logs
logs:
docker-compose -p ${project} logs -t